summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/mode-key.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fixed keys for choose mode, and remove the last mode keys bits.nicm2017-01-241-261/+0
|
* Drop the edit mode key tables and just use fixed key bindings for thenicm2016-10-121-255/+90
| | | | command prompt.
* Some other stuff that can be local to one file.nicm2016-10-111-2/+8
|
* Fundamental change to how copy mode key bindings work:nicm2016-10-111-390/+173
| | | | | | | | | | | | | | | | | | | | | | | | | The vi-copy and emacs-copy mode key tables are gone, and instead copy mode commands are bound in one of two normal key tables ("copy-mode" or "copy-mode-vi"). Keys are bound to "send-keys -X copy-mode-command". So: bind -temacs-copy C-Up scroll-up bind -temacs-copy -R5 WheelUpPane scroll-up Becomes: bind -Tcopy-mode C-Up send -X scroll-up bind -Tcopy-mode WheelUpPane send -N5 -X scroll-up This allows the full command parser and command set to be used - for example, we can use the normal command prompt for searching, jumping, and so on instead of a custom one: bind -Tcopy-mode C-r command-prompt -p'search up' "send -X search-backward '%%'" command-prompt also gets a -1 option to only require on key press, which is needed for jumping. The plan is to get rid of mode keys entirely, so more to come eventually.
* Loads more static, except for cmd-*.c and window-*.c.nicm2016-10-101-10/+10
|
* Allow repeat count to be specified in mode key tables with bind-key -R,nicm2016-09-121-312/+317
| | | | | and set the default repeat count to 5 for WheelUp and WheelDown in copy-mode.
* Add next/previous paragraph, from J Raynor.nicm2016-04-271-1/+7
|
* Instead of reusing MouseUp at the finish of a drag, add a new keynicm2016-03-181-3/+3
| | | | MouseDragEnd. It can be useful to bind them separately in copy mode.
* When a mouse drag is finished, fire a MouseUp key press, instead ofnicm2016-03-011-1/+3
| | | | doing the drag end in code. From Stephen Coakley.
* I no longer use my SourceForge address so replace it.nicm2016-01-191-2/+2
|
* Support UTF-8 key bindings by expanding the key type from int tonicm2015-11-121-6/+12
| | | | | | 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.)
* mode_key_entry can go into mode-key.c; also a few spaces->tabs.nicm2015-05-081-1/+15
|
* Rewrite of tmux mouse support which was a mess. Instead of havingnicm2015-04-191-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Add V for select line with vi(1) keys. From Juho Pohjala.nicm2014-11-061-1/+2
|
* No need to repeat other-end more than once, from Juho Pohjala. Also addnicm2014-08-111-1/+2
| | | | it to the commands list while here.
* Add a copy mode key binding to copy to a named buffer. From J Raynor.nicm2014-05-131-1/+3
|
* Add setb -a to append and a copy mode append command, from J Raynor withnicm2014-03-311-1/+3
| | | | minor changes.
* Add start-of-list, end-of-list, top-line and bottom-line in choice mode,nicm2014-03-311-1/+16
| | | | | from madmaverick9 at roxxmail dot eu, similar diff a few days later from Marcel Partap.
* Make C-j the same as C-m, from Simon Nicolussi.nicm2014-02-141-1/+7
|
* Key to swap to other end of selection (bound to o with vi keys), from Jnicm2013-10-231-1/+2
| | | | Raynor.
* Whitespace nits, from Ben Boeckel.nicm2013-07-051-5/+5
|
* Implement s, S, C mode switch commands in vi(1) mode, from Ben Boeckel.nicm2013-07-051-4/+11
|
* Add copy-pipe mode command to copy selection and also pipe to a command.nicm2013-03-221-2/+6
|
* Fix a couple of memory leaks, from Romain Francoise.nicm2013-03-211-2/+1
|
* Add halfpage commands to mode command string table (missed by accident),nicm2012-11-191-1/+3
| | | | from Thomas Adam.
* Add tree keys to vi mode too, missed by accident.nicm2012-10-091-1/+5
|
* Allow session tree (C-b s) to expand and collapse sessions withnicm2012-10-021-258/+269
| | | | left/right/space keys. From Thomas Adam.
* Instead of requiring a prompt to enter all numbers >10, go back tonicm2012-08-271-21/+21
| | | | | | 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.
* Instead of numbering choose mode items 0-9a-z and then nothing, numbernicm2012-08-111-1/+25
| | | | | them all and if there are more than 10 use a prompt when 0-9 is pressed. From Thomas Adam.
* Add A and I keys for vi status line editing.nicm2012-03-041-3/+10
|
* Use RB trees not SPLAY.nicm2012-01-211-5/+5
|
* Add space movement keys for vi mode in the status line from Ben Boeckel.nicm2012-01-201-1/+7
|
* Support "jump to" like vi in copy mode using t and T keys. Also add xnicm2011-12-041-1/+9
| | | | | | and X for delete in edit mode. From Ben Boeckel, thanks.
* Add home and end keys for command prompt, from Matthias Lederhofer.nicm2011-12-011-1/+5
|
* Add word movement and editing command for command prompt editing, fromnicm2011-11-151-7/+18
| | | | Ben Boeckel.
* Add up/down/left/right keys in vi edit mode. From "livibetter" SF bugnicm2011-08-161-2/+6
| | | | 3385651.
* Add three new copy-mode commands - select-line, copy-line,nicm2011-05-181-1/+6
| | | | copy-end-of-line. From Dave Disser and Randy Stauner a while back.
* Bind C-u to delete-line in vi mode like ksh does, suggested by thib.nicm2011-04-051-1/+2
|
* Sprinkle a little more const.nicm2011-01-011-6/+6
|
* Add vi-style "jump" commands for copy mode, from Micah Cowan.nicm2010-03-221-1/+14
|
* Permit keys in copy mode to be prefixed by a repeat count, entered withnicm2010-03-021-1/+20
| | | | | | [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"),nicm2010-02-111-1/+4
| | | | from Micah Cowan.
* Rectangle copy support, from Robin Lee Powell.nicm2010-02-061-3/+6
|
* vi-style B, W and E keys in copy mode to navigate between words treating onlynicm2010-02-041-1/+7
| | | | | | | 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.nicm2010-02-011-1/+11
|
* Actually bind the new key to e.nicm2010-01-271-1/+2
|
* Alter next-word to have vi-like movement behaviour, and add next-word-end withnicm2010-01-271-2/+3
| | | | the existing emacs behaviour. From Micah Cowan.
* Top/bottom of history mode keys, diff from Micah Cowan, tweaked by me.nicm2010-01-251-3/+9
|
* Use C-e and C-y for scrolling in vi mode, from Micah Cowan.nicm2010-01-231-1/+3
|
* Massive spaces->tabs and trailing whitespace cleanup, hopefully for the lastnicm2009-12-031-8/+8
| | | | | time now I've configured emacs to make them displayed in really annoying colours...