Age | Commit message (Collapse) | Author |
|
|
|
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.
|
|
Add "N" key to search the opposite way from the last search (reverse of "n"),
from Micah Cowan.
|
|
Rectangle copy support, from Robin Lee Powell.
|
|
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.
|
|
Add scroll-up/scroll-down for choose/more mode, from Micah Cowan.
|
|
Actually bind the new key to e.
|
|
Alter next-word to have vi-like movement behaviour, and add next-word-end with
the existing emacs behaviour. From Micah Cowan.
|
|
Top/bottom of history mode keys, diff from Micah Cowan, tweaked by me.
|
|
Use C-e and C-y for scrolling in vi mode, from Micah Cowan.
|
|
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...
|
|
Zap unused functions, prompted by deraadt.
|
|
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).
|
|
Support J and K for scroll up and scroll down in copy mode with vi keys,
suggested by martynas.
|
|
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).
|
|
Get / and ? the right way round in vi mode, and use : for goto line rather than
g.
|
|
C-v and M-v too.
|
|
Support C-n/C-p with emacs keys in choice mode, also fix a comment.
|
|
Add a transpose-chars command in edit mode (C-t in emacs mode only). From Kalle
Olavi Niemitalo.
|
|
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.
|
|
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.
|
|
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.
|
|
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 :-)).
|
|
Plug some memory leaks.
|
|
Final pieces of mode key rebinding: bind-key and unbind-key now accept a -t
argument to modify a table.
|
|
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).
|
|
Remove an unused entry in the mode keys command enum and rename
MODEKEYCOPY_QUIT to _CANCEL to match the others.
|
|
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.
|
|
Get rid of empty mode_key_free function.
|
|
Add a key to delete to end of line at the prompt (^K in emacs mode, C/D in
vi).
From Kalle Olavi Niemitalo.
|
|
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.
|
|
C-d is delete as well in emacs mode.
|
|
Tidy up keys: use an enum for the key codes, and remove the macros which just
wrap flag sets/clears/tests.
|
|
non-whitespace character. ^ with vi and M-m with emacs key bindings. Another
from Kalle Olavi Niemitalo, thanks.
|
|
the upper paste buffer. Suggested by Dan Colish.
|
|
|
|
|
|
editing. vi or emacs mode is controlled by the session option status-keys.
|
|
|
|
|
|
bound to a key and allow the window or session to be selected from a list.
|
|
window option (xterm-keys) to output xterm key codes including ctrl and, if available, alt and shift.
|
|
|
|
|
|
|
|
|