summaryrefslogtreecommitdiffstats
path: root/mode-key.c
AgeCommit message (Collapse)Author
2012-11-19Add halfpage commands to mode command string table (missed by accident),Nicholas Marriott
from Thomas Adam.
2012-10-09Add tree keys to vi mode too, missed by accident.Nicholas Marriott
2012-10-02Allow session tree (C-b s) to expand and collapse sessions withNicholas Marriott
left/right/space keys. From Thomas Adam.
2012-08-27Instead of requiring a prompt to enter all numbers >10, go back toNicholas Marriott
0-9a-z and add A-Z and enter the prompt when M-0 to M-9 are pressed (like in copy mode). Prompted by request from mcbride@, help from Thomas Adam.
2012-08-11Instead of numbering choose mode items 0-9a-z and then nothing, numberNicholas Marriott
them all and if there are more than 10 use a prompt when 0-9 is pressed. From Thomas Adam.
2012-03-04Add A and I keys for vi status line editing.Nicholas Marriott
2012-01-21Use RB trees not SPLAY.Nicholas Marriott
2012-01-20Add space movement keys for vi mode in the status line from Ben Boeckel.Nicholas Marriott
2011-12-04Support "jump to" like vi in copy mode using t and T keys. Also add xNicholas Marriott
and X for delete in edit mode. From Ben Boeckel, thanks.
2011-12-01Add home and end keys for command prompt, from Matthias Lederhofer.Nicholas Marriott
2011-11-15Add word movement and editing command for command prompt editing, fromNicholas Marriott
Ben Boeckel.
2011-08-16Add up/down/left/right keys in vi edit mode. From "livibetter" SF bugNicholas Marriott
3385651.
2011-05-18Add three new copy-mode commands - select-line, copy-line,Nicholas Marriott
copy-end-of-line. From Dave Disser and Randy Stauner a while back.
2011-04-05Bind C-u to delete-line in vi mode like ksh does, suggested by thib.Nicholas Marriott
2011-01-01Sprinkle a little more const.Nicholas Marriott
2010-03-22Add vi-style "jump" commands for copy mode, from Micah Cowan.Nicholas Marriott
2010-03-02Permit keys in copy mode to be prefixed by a repeat count, entered withNicholas Marriott
[1-9] in vi mode, or M-[1-9] in emacs mode. From Micah Cowan, tweaked a little by me.
2010-02-11Add "N" key to search the opposite way from the last search (reverse of "n"),Nicholas Marriott
from Micah Cowan.
2010-02-06Rectangle copy support, from Robin Lee Powell.Nicholas Marriott
2010-02-04vi-style B, W and E keys in copy mode to navigate between words treating onlyNicholas Marriott
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-01Add scroll-up/scroll-down for choose/more mode, from Micah Cowan.Nicholas Marriott
2010-01-27Actually bind the new key to e.Nicholas Marriott
2010-01-27Alter next-word to have vi-like movement behaviour, and add next-word-end withNicholas Marriott
the existing emacs behaviour. From Micah Cowan.
2010-01-25Top/bottom of history mode keys, diff from Micah Cowan, tweaked by me.Nicholas Marriott
2010-01-23Use C-e and C-y for scrolling in vi mode, from Micah Cowan.Nicholas Marriott
2009-12-03Massive spaces->tabs and trailing whitespace cleanup, hopefully for the lastNicholas Marriott
time now I've configured emacs to make them displayed in really annoying colours...
2009-11-13Zap unused functions, prompted by deraadt.Nicholas Marriott
2009-10-13Add mode keys to move the cursor to the top, middle and bottom of the screen.Nicholas Marriott
H/M/L in vi mode and M-R/M-r in emacs (bottom of screen not bound in emacs).
2009-10-07Support J and K for scroll up and scroll down in copy mode with vi keys,Nicholas Marriott
suggested by martynas.
2009-10-06Make C-Up and C-Down in copy mode scroll the screen up and down one lineNicholas Marriott
without moving the cursor, like Up and Down in scroll mode (which will shortly disappear).
2009-10-04Get / and ? the right way round in vi mode, and use : for goto line rather thanNicholas Marriott
g.
2009-10-04C-v and M-v too.Nicholas Marriott
2009-10-04Support C-n/C-p with emacs keys in choice mode, also fix a comment.Nicholas Marriott
2009-09-02Add a transpose-chars command in edit mode (C-t in emacs mode only). From KalleNicholas Marriott
Olavi Niemitalo.
2009-08-18Add a "delete line" key when editing in the status line or the search up/downNicholas Marriott
prompt. C-u with emacs keys, d with vi.
2009-08-18Add (naive) searching and goto line in copy mode. Searching is C-r and C-s withNicholas Marriott
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-13Switch the prompt code to return an empty string when the user enters noNicholas Marriott
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-13vi(1)-style half page scroll in copy and scroll modes. Move the vi full pageNicholas Marriott
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-30Plug some memory leaks.Nicholas Marriott
2009-07-28Final pieces of mode key rebinding: bind-key and unbind-key now accept a -tNicholas Marriott
argument to modify a table.
2009-07-28Next step towards customisable mode keys: build each default table of keys intoNicholas Marriott
a named tree on start and use that for lookups. Also add command to string translation tables and modify list-keys to show the the mode key bindings (new -t argument).
2009-07-27Remove an unused entry in the mode keys command enum and renameNicholas Marriott
MODEKEYCOPY_QUIT to _CANCEL to match the others.
2009-07-27Change mode key bindings from big switches into a set of tables. Rather thanNicholas Marriott
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-27Get rid of empty mode_key_free function.Nicholas Marriott
2009-07-27Add a key to delete to end of line at the prompt (^K in emacs mode, C/D in vi).Nicholas Marriott
From Kalle Olavi Niemitalo.
2009-07-26Detect backspace by looking at termios VERASE and translate it into \177 (whichNicholas Marriott
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-23C-d is delete as well in emacs mode.Nicholas Marriott
2009-07-21Tidy up keys: use an enum for the key codes, and remove the macros which justNicholas Marriott
wrap flag sets/clears/tests.
2009-07-12Add 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-06-01Import tmux, a terminal multiplexor allowing (among other things) a singleNicholas Marriott
terminal to be switched between several different windows and programs displayed on one terminal be detached from one terminal and moved to another. ok deraadt pirofti