aboutsummaryrefslogtreecommitdiff
path: root/mode-key.c
Commit message (Collapse)AuthorAge
* Bad merge.Nicholas Marriott2017-01-25
|
* Drop the edit mode key tables and just use fixed key bindings for thenicm2016-10-12
| | | | command prompt.
* Some other stuff that can be local to one file.nicm2016-10-11
|
* Fundamental change to how copy mode key bindings work:nicm2016-10-11
| | | | | | | | | | | | | | | | | | | | | | | | | 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-10
|
* Allow repeat count to be specified in mode key tables with bind-key -R,nicm2016-09-12
| | | | | and set the default repeat count to 5 for WheelUp and WheelDown in copy-mode.
* Add next/previous paragraph, from J Raynor.nicm2016-04-27
|
* Instead of reusing MouseUp at the finish of a drag, add a new keynicm2016-03-18
| | | | 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-01
| | | | doing the drag end in code. From Stephen Coakley.
* I no longer use my SourceForge address so replace it.nicm2016-01-19
|
* Support UTF-8 key bindings by expanding the key type from int tonicm2015-11-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-08
|
* Rewrite of tmux mouse support which was a mess. Instead of havingnicm2015-04-19
| | | | | | | | | | | | | | | | | | | | | | | | | 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-06
|
* No need to repeat other-end more than once, from Juho Pohjala. Also addnicm2014-08-11
| | | | it to the commands list while here.
* Add a copy mode key binding to copy to a named buffer. From J Raynor.nicm2014-05-13
|
* Add setb -a to append and a copy mode append command, from J Raynor withnicm2014-03-31
| | | | minor changes.
* Add start-of-list, end-of-list, top-line and bottom-line in choice mode,nicm2014-03-31
| | | | | 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-14
|
* Key to swap to other end of selection (bound to o with vi keys), from Jnicm2013-10-23
| | | | Raynor.
* Whitespace nits, from Ben Boeckel.Nicholas Marriott2013-07-05
|
* Add copy-pipe mode command to copy selection and also pipe to a command.Nicholas Marriott2013-03-22
|
* Fix a couple of memory leaks, from Romain Francoise.Nicholas Marriott2013-03-21
|
* Add halfpage commands to mode command string table (missed by accident),Nicholas Marriott2012-11-19
| | | | from Thomas Adam.
* Add tree keys to vi mode too, missed by accident.Nicholas Marriott2012-10-09
|
* Allow session tree (C-b s) to expand and collapse sessions withNicholas Marriott2012-10-02
| | | | left/right/space keys. From Thomas Adam.
* Instead of requiring a prompt to enter all numbers >10, go back toNicholas Marriott2012-08-27
| | | | | | 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, numberNicholas Marriott2012-08-11
| | | | | 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.Nicholas Marriott2012-03-04
|
* Use RB trees not SPLAY.Nicholas Marriott2012-01-21
|
* Add space movement keys for vi mode in the status line from Ben Boeckel.Nicholas Marriott2012-01-20
|
* Support "jump to" like vi in copy mode using t and T keys. Also add xNicholas Marriott2011-12-04
| | | | | | and X for delete in edit mode. From Ben Boeckel, thanks.
* Add home and end keys for command prompt, from Matthias Lederhofer.Nicholas Marriott2011-12-01
|
* Add word movement and editing command for command prompt editing, fromNicholas Marriott2011-11-15
| | | | Ben Boeckel.
* Add up/down/left/right keys in vi edit mode. From "livibetter" SF bugNicholas Marriott2011-08-16
| | | | 3385651.
* Add three new copy-mode commands - select-line, copy-line,Nicholas Marriott2011-05-18
| | | | 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.Nicholas Marriott2011-04-05
|
* Sprinkle a little more const.Nicholas Marriott2011-01-01
|
* Add vi-style "jump" commands for copy mode, from Micah Cowan.Nicholas Marriott2010-03-22
|
* Permit keys in copy mode to be prefixed by a repeat count, entered withNicholas Marriott2010-03-02
| | | | | | [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"),Nicholas Marriott2010-02-11
| | | | from Micah Cowan.
* Rectangle copy support, from Robin Lee Powell.Nicholas Marriott2010-02-06
|
* vi-style B, W and E keys in copy mode to navigate between words treating onlyNicholas Marriott2010-02-04
| | | | | | | 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.Nicholas Marriott2010-02-01
|
* Actually bind the new key to e.Nicholas Marriott2010-01-27
|
* Alter next-word to have vi-like movement behaviour, and add next-word-end withNicholas Marriott2010-01-27
| | | | the existing emacs behaviour. From Micah Cowan.
* Top/bottom of history mode keys, diff from Micah Cowan, tweaked by me.Nicholas Marriott2010-01-25
|
* Use C-e and C-y for scrolling in vi mode, from Micah Cowan.Nicholas Marriott2010-01-23
|
* Massive spaces->tabs and trailing whitespace cleanup, hopefully for the lastNicholas Marriott2009-12-03
| | | | | time now I've configured emacs to make them displayed in really annoying colours...
* Zap unused functions, prompted by deraadt.Nicholas Marriott2009-11-13
|