summaryrefslogtreecommitdiffstats
path: root/mode-key.c
AgeCommit message (Collapse)Author
2016-03-18Instead of reusing MouseUp at the finish of a drag, add a new keynicm
MouseDragEnd. It can be useful to bind them separately in copy mode.
2016-03-01When a mouse drag is finished, fire a MouseUp key press, instead ofnicm
doing the drag end in code. From Stephen Coakley.
2016-01-19I no longer use my SourceForge address so replace it.nicm
2015-11-12Support UTF-8 key bindings by expanding the key type from int tonicm
uint64_t and converting UTF-8 to Unicode on input and the reverse on output. (This allows key bindings, there are still omissions - the largest being that the various prompts do not accept UTF-8.)
2015-05-08mode_key_entry can go into mode-key.c; also a few spaces->tabs.nicm
2015-04-19Rewrite of tmux mouse support which was a mess. Instead of havingnicm
options for "mouse-this" and "mouse-that", mouse events may be bound as keys and there is one option "mouse" that turns on mouse support entirely (set -g mouse on). See the new MOUSE SUPPORT section of the man page for description of the key names and new flags (-t= to specify the pane or window under mouse as a target, and send-keys -M to pass through a mouse event). The default builtin bindings for the mouse are: bind -n MouseDown1Pane select-pane -t=; send-keys -M bind -n MouseDown1Status select-window -t= bind -n MouseDrag1Pane copy-mode -M bind -n MouseDrag1Border resize-pane -M To get the effect of turning mode-mouse off, do: unbind -n MouseDrag1Pane unbind -temacs-copy MouseDrag1Pane The old mouse options are now gone, set-option -q may be used to suppress warnings if mixing configuration files.
2014-11-06Add V for select line with vi(1) keys. From Juho Pohjala.nicm
2014-08-11No need to repeat other-end more than once, from Juho Pohjala. Also addnicm
it to the commands list while here.
2014-05-13Add a copy mode key binding to copy to a named buffer. From J Raynor.nicm
2014-03-31Add setb -a to append and a copy mode append command, from J Raynor withnicm
minor changes.
2014-03-31Add start-of-list, end-of-list, top-line and bottom-line in choice mode,nicm
from madmaverick9 at roxxmail dot eu, similar diff a few days later from Marcel Partap.
2014-02-14Make C-j the same as C-m, from Simon Nicolussi.nicm
2013-10-23Key to swap to other end of selection (bound to o with vi keys), from Jnicm
Raynor.
2013-07-05Whitespace nits, from Ben Boeckel.Nicholas Marriott
2013-03-22Add copy-pipe mode command to copy selection and also pipe to a command.Nicholas Marriott
2013-03-21Fix a couple of memory leaks, from Romain Francoise.Nicholas Marriott
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.