summaryrefslogtreecommitdiffstats
path: root/mode-key.c
AgeCommit message (Collapse)Author
2010-03-16Jump-forward, jump-backward in copy mode, based on vi's F and f commands.Micah Cowan
2010-03-08Sync OpenBSD patchset 658:Tiago Cunha
Permit keys in copy mode to be prefixed by a repeat count, entered with [1-9] in vi mode, or M-[1-9] in emacs mode. From Micah Cowan, tweaked a little by me.
2010-02-18Sync OpenBSD patchset 644:Tiago Cunha
Add "N" key to search the opposite way from the last search (reverse of "n"), from Micah Cowan.
2010-02-08Sync OpenBSD patchset 636:Tiago Cunha
Rectangle copy support, from Robin Lee Powell.
2010-02-05Sync OpenBSD patchset 634:Tiago Cunha
vi-style B, W and E keys in copy mode to navigate between words treating only spaces as word separators. Also add . to the list of word separators for standard word navigation. From Micah Cowan, tweaked slightly by me.
2010-02-02Sync OpenBSD patchset 629:Tiago Cunha
Add scroll-up/scroll-down for choose/more mode, from Micah Cowan.
2010-01-28Sync OpenBSD patchset 623:Tiago Cunha
Actually bind the new key to e.
2010-01-28Sync OpenBSD patchset 621:Tiago Cunha
Alter next-word to have vi-like movement behaviour, and add next-word-end with the existing emacs behaviour. From Micah Cowan.
2010-01-28Sync OpenBSD patchset 617:Tiago Cunha
Top/bottom of history mode keys, diff from Micah Cowan, tweaked by me.
2010-01-25Sync OpenBSD patchset 613:Tiago Cunha
Use C-e and C-y for scrolling in vi mode, from Micah Cowan.
2009-12-04Sync OpenBSD patchset 581:Tiago Cunha
Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last time now I've configured emacs to make them displayed in really annoying colours...
2009-11-13Sync OpenBSD patchset 533:Tiago Cunha
Zap unused functions, prompted by deraadt.
2009-10-15Sync OpenBSD patchset 407:Tiago Cunha
Add mode keys to move the cursor to the top, middle and bottom of the screen. H/M/L in vi mode and M-R/M-r in emacs (bottom of screen not bound in emacs).
2009-10-07Sync OpenBSD patchset 365:Tiago Cunha
Support J and K for scroll up and scroll down in copy mode with vi keys, suggested by martynas.
2009-10-06Sync OpenBSD patchset 361:Tiago Cunha
Make C-Up and C-Down in copy mode scroll the screen up and down one line without moving the cursor, like Up and Down in scroll mode (which will shortly disappear).
2009-10-05Sync OpenBSD patchset 358:Tiago Cunha
Get / and ? the right way round in vi mode, and use : for goto line rather than g.
2009-10-05Sync OpenBSD patchset 355:Tiago Cunha
C-v and M-v too.
2009-10-05Sync OpenBSD patchset 354:Tiago Cunha
Support C-n/C-p with emacs keys in choice mode, also fix a comment.
2009-09-02Sync OpenBSD patchset 307:Tiago Cunha
Add a transpose-chars command in edit mode (C-t in emacs mode only). From Kalle Olavi Niemitalo.
2009-08-20Sync OpenBSD patchset 265:Tiago Cunha
Add a "delete line" key when editing in the status line or the search up/down prompt. C-u with emacs keys, d with vi.
2009-08-20Sync OpenBSD patchset 264:Tiago Cunha
Add (naive) searching and goto line in copy mode. Searching is C-r and C-s with emacs keys, / and ? with vi; n repeats the search again with either key set. All searching wraps the top/bottom. Goto line is g for both emacs and vi. The search prompts don't have full line editing, just simple append and delete characters. Also sort the mode keys list in tmux.1.
2009-08-16Sync OpenBSD patchset 261:Tiago Cunha
Switch the prompt code to return an empty string when the user enters no response and reserve NULL for an explicit cancel. Change all callbacks to treat them the same so no functional change. Also add cancel key bindings to emacs mode which were missing.
2009-08-16Sync OpenBSD patchset 260:Tiago Cunha
vi(1)-style half page scroll in copy and scroll modes. Move the vi full page scroll key to C-b instead of C-u and use C-u/C-d for half page scrolling with vi keys. In emacs mode, half page scrolling is bound to M-Up and M-Down. Suggested by merdely (about a year ago :-)).
2009-07-30Sync OpenBSD patchset 207:Tiago Cunha
Plug some memory leaks.
2009-07-28Sync OpenBSD patchset 194:Tiago Cunha
Final pieces of mode key rebinding: bind-key and unbind-key now accept a -t argument to modify a table.
2009-07-28Sync OpenBSD patchset 192:Tiago Cunha
Next step towards customisable mode keys: build each default table of keys into a named tree on start and use that for lookups. Also add command to string translation tables and modify list-keys to show the mode key bindings (new -t argument).
2009-07-28Sync OpenBSD patchset 190:Tiago Cunha
Remove an unused entry in the mode keys command enum and rename MODEKEYCOPY_QUIT to _CANCEL to match the others.
2009-07-28Sync OpenBSD patchset 189:Tiago Cunha
Change mode key bindings from big switches into a set of tables. Rather than lumping them all together, split editing keys from those used in choice/more mode and those for copy/scroll mode. Tidier and clearer, and the first step towards customisable mode keys.
2009-07-28Sync OpenBSD patchset 188:Tiago Cunha
Get rid of empty mode_key_free function.
2009-07-28Sync OpenBSD patchset 187:Tiago Cunha
Add a key to delete to end of line at the prompt (^K in emacs mode, C/D in vi). From Kalle Olavi Niemitalo.
2009-07-28Sync OpenBSD patchset 184:Tiago Cunha
Detect backspace by looking at termios VERASE and translate it into \177 (which matches screen's behaviour if not its termcap/terminfo entry). The terminfo kbs cap is often wrong or missing so it can't be used, and just assuming \177 may be wrong.
2009-07-23Sync OpenBSD patchset 169:Tiago Cunha
C-d is delete as well in emacs mode.
2009-07-22Sync OpenBSD patchset 151:Tiago Cunha
Tidy up keys: use an enum for the key codes, and remove the macros which just wrap flag sets/clears/tests.
2009-07-14Add a "back to indentation" key in copy mode to move the cursor to the firstNicholas Marriott
non-whitespace character. ^ with vi and M-m with emacs key bindings. Another from Kalle Olavi Niemitalo, thanks.
2009-05-14Keys in status line (p in vi mode, M-y in emacs) to paste the first line of ↵Nicholas Marriott
the upper paste buffer. Suggested by Dan Colish.
2009-05-04Space trimmage mega-diff.Nicholas Marriott
2009-02-21Allow selection in vi mode.Nicholas Marriott
2009-02-13Redo mode keys slightly more cleanly and apply them to command prompt ↵Nicholas Marriott
editing. vi or emacs mode is controlled by the session option status-keys.
2009-02-13Some extra emacs keys from Christian Weisgerber.Nicholas Marriott
2009-01-21Allow a selection in vi keys mode...Nicholas Marriott
2009-01-15Two new commands, choose-window and choose-session which work only when ↵Nicholas Marriott
bound to a key and allow the window or session to be selected from a list.
2009-01-09Update key handling code. Simplify, support ctrl properly and add a new ↵Nicholas Marriott
window option (xterm-keys) to output xterm key codes including ctrl and, if available, alt and shift.
2009-01-07Introduce nitems() and use it; use bsearch.Nicholas Marriott
2008-07-03emacs mode keys tweaks.Nicholas Marriott
2008-07-02^ for BOL too.Nicholas Marriott
2008-07-02Split emacs/vi keys into seperate tables.Nicholas Marriott