Commit Graph

232 Commits

Author SHA1 Message Date
Daniel Micay 87da2c8359 make search part of selection mode 2012-07-11 03:38:07 -04:00
Daniel Micay 3780b89749 add yank binding to selection mode 2012-07-11 02:06:40 -04:00
Daniel Micay 605237703b draw the selection cursor when entering the mode 2012-07-11 00:01:00 -04:00
Daniel Micay 3bdfd30e0f cursor has to be redrawn when exiting visual mode 2012-07-10 19:12:26 -04:00
Daniel Micay fd08745d2b move selection code out of callbacks section 2012-07-10 00:47:35 -04:00
Daniel Micay 9d8cfcef84 termite.c: cleanup 2012-07-10 00:02:55 -04:00
Daniel Micay 66f0ef35aa update for new vte_terminal_select_text API 2012-07-09 22:27:17 -04:00
Daniel Micay b9ea216495 temporary hack: use selection as a cursor 2012-07-09 21:13:27 -04:00
Daniel Micay 02d7e42037 add bindings for jumping to first/last row 2012-07-09 19:42:25 -04:00
Daniel Micay 6d4f833f03 clamp cursor_row between first/last rows 2012-07-09 19:29:22 -04:00
Daniel Micay 70da200dd9 move the scrollback with the selection cursor 2012-07-09 16:57:09 -04:00
Daniel Micay ae51cb0e98 get rid of useless end_row and end_col variables 2012-07-09 16:16:41 -04:00
Daniel Micay d9a2e7e42a update_selection doesn't modify select_info 2012-07-09 16:07:08 -04:00
Daniel Micay 46b739c9d6 update_selection: SELECT_OFF check not needed 2012-07-09 03:24:44 -04:00
Daniel Micay 458087627d add some polish to visual mode switching
* switching between visual modes should not reset the begin row/col
* selection should be updated as soon as the mode is switched
2012-07-09 03:19:48 -04:00
Daniel Micay 131cb20584 keyboard-select with scrollback support
note: currently doesn't draw a visible selection cursor
2012-07-09 03:10:08 -04:00
Daniel Micay eefb56f24c put code for moving cursor to EOL in a function 2012-07-08 05:39:37 -04:00
Daniel Micay 34f209634a wrap vte_terminal_feed for null-terminated strings 2012-07-08 03:37:45 -04:00
Daniel Micay a5b0e77c99 use const in more places 2012-07-08 01:48:39 -04:00
Daniel Micay 1e2114aa57 minor reorganization in cursor_moved_cb 2012-07-08 01:32:30 -04:00
Daniel Micay 5045c6beb0 reduce scope of begin/end to normal visual mode 2012-07-08 01:16:09 -04:00
Daniel Micay 1a21165a48 simplify visual line mode selection 2012-07-08 01:15:00 -04:00
Daniel Micay 711fc059e4 simplify visual block mode selection 2012-07-08 01:14:46 -04:00
Daniel Micay ac2585297c add $ (EOL) and ^ (BOL) bindings to selection mode 2012-07-07 00:11:46 -04:00
Daniel Micay 62c62ab254 clear selection when leaving selection mode 2012-07-06 22:56:47 -04:00
Daniel Micay 115e466615 support visual block mode 2012-07-06 22:46:00 -04:00
Daniel Micay 7443b8fb8b add visual line mode 2012-07-06 20:38:46 -04:00
Daniel Micay 603c99acc7 pick the right selection starting point 2012-07-06 20:16:48 -04:00
Daniel Micay 8bb2c476df AtkText -> vte_terminal_select_text
vte requires a patch to expose this for now, but it's the only way to do
this since AtkText is completely broken
2012-07-06 20:05:20 -04:00
Daniel Micay 7b1760d1ad use the cursor-moved event to fix visual mode 2012-07-05 22:59:14 -04:00
Daniel Micay 124979d812 move #define to the top 2012-07-05 22:59:14 -04:00
Daniel Micay 284e170321 sizeof -> strlen 2012-07-05 22:59:14 -04:00
Daniel Micay 41b39d8d71 remove_selection -> vte_terminal_select_none 2012-07-05 22:59:14 -04:00
Daniel Micay 7c76a8fc01 rm unused include 2012-07-05 22:59:14 -04:00
Daniel Micay ad3f6b3144 use the actual cursor for selection mode 2012-07-05 22:59:13 -04:00
Daniel Micay d2e627e10a add arrow key bindings for selection 2012-07-05 22:59:13 -04:00
Daniel Micay e667bb9d9d begin is set when entering visual mode 2012-07-05 22:59:13 -04:00
Daniel Micay ca7cb0c3ed set the begin point when entering visual mode 2012-07-05 22:59:13 -04:00
Daniel Micay 6e6a255c7e implement toggling visual mode 2012-07-05 22:59:13 -04:00
Daniel Micay f8c8c748f0 initial implementation of keyboard selection 2012-07-05 22:59:13 -04:00
Daniel Micay 9c8d7c3490 expose option for wrapping scrollback search 2012-07-04 23:41:53 -04:00
Daniel Micay 7a3e1991c5 set WINDOWID in the child's environment 2012-07-01 13:44:30 -04:00
Daniel Micay 88f7d39b5e silence -Wconversion warnings 2012-06-26 21:30:34 -04:00
Daniel Micay 34c041b6f3 consistent brace style 2012-06-25 16:08:53 -04:00
Daniel Micay f89df13e5a allow configuration of the whole palette 2012-06-25 16:05:23 -04:00
Daniel Micay cdc4ad4433 expose both the bold and dim foreground colors 2012-06-25 15:37:06 -04:00
Daniel Micay 169d970ad1 use const for filename 2012-06-25 03:13:09 -04:00
Daniel Micay b71dd341b1 make colors array const 2012-06-25 03:04:31 -04:00
Daniel Micay eb5bf78048 make url_regex const 2012-06-25 03:00:18 -04:00
Daniel Micay e39418eaca set_colors before foreground/background/dim 2012-06-25 02:18:12 -04:00