aboutsummaryrefslogtreecommitdiff
path: root/mode-key.c
Commit message (Collapse)AuthorAge
...
| * Detect backspace by looking at termios VERASE and translate it into \177 (whichNicholas Marriott2009-07-26
| | | | | | | | | | | | 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.Nicholas Marriott2009-07-23
| |
| * Tidy up keys: use an enum for the key codes, and remove the macros which justNicholas Marriott2009-07-21
| | | | | | | | wrap flag sets/clears/tests.
| * Add a "back to indentation" key in copy mode to move the cursor to the firstNicholas Marriott2009-07-12
| | | | | | | | | | non-whitespace character. ^ with vi and M-m with emacs key bindings. Another from Kalle Olavi Niemitalo, thanks.
| * Import tmux, a terminal multiplexor allowing (among other things) a singleNicholas Marriott2009-06-01
| | | | | | | 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
* Sync OpenBSD patchset 1167:Tiago Cunha2012-08-31
| | | | | | | | Instead of requiring a prompt to enter all numbers >10, go back to 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.
* Sync OpenBSD patchset 1156:Tiago Cunha2012-08-12
| | | | | | | Instead of numbering choose mode items 0-9a-z and then nothing, number them all and if there are more than 10 use a prompt when 0-9 is pressed. From Thomas Adam.
* Sync OpenBSD patchset 1039:Tiago Cunha2012-03-07
| | | | | Add A and I keys for vi status line editing.
* Sync OpenBSD patchset 1008:Tiago Cunha2012-01-21
| | | | | Use RB trees not SPLAY.
* Sync OpenBSD patchset 998:Tiago Cunha2012-01-20
| | | | | Add space movement keys for vi mode in the status line from Ben Boeckel.
* Sync OpenBSD patchset 986:Tiago Cunha2011-12-06
| | | | | | | | Support "jump to" like vi in copy mode using t and T keys. Also add x and X for delete in edit mode. From Ben Boeckel, thanks.
* Sync OpenBSD patchset 984:Tiago Cunha2011-12-06
| | | | | Add home and end keys for command prompt, from Matthias Lederhofer.
* Sync OpenBSD patchset 982:Tiago Cunha2011-11-25
| | | | | | Add word movement and editing command for command prompt editing, from Ben Boeckel.
* Sync OpenBSD patchset 945:Tiago Cunha2011-08-21
| | | | | | Add up/down/left/right keys in vi edit mode. From "livibetter" SF bug 3385651.
* Expand the Id keyword. Tiago Cunha2011-07-09
|
* Sync OpenBSD patchset 913:Tiago Cunha2011-05-18
| | | | | | Add three new copy-mode commands - select-line, copy-line, copy-end-of-line. From Dave Disser and Randy Stauner a while back.
* |PatchSet 881Nicholas Marriott2011-04-06
| | | | | | | | | | |Date: 2011/04/05 19:55:38 |Author: nicm |Branch: HEAD |Tag: (none) |Log: |Bind C-u to delete-line in vi mode like ksh does, suggested by thib.
* Sync OpenBSD patchset 823:Tiago Cunha2011-01-03
| | | | | Sprinkle a little more const.
* Jump-forward, jump-backward in copy mode, based on vi's F and f commands.Micah Cowan2010-03-16
|
* Sync OpenBSD patchset 658:Tiago Cunha2010-03-08
| | | | | | | | 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.
* Sync OpenBSD patchset 644:Tiago Cunha2010-02-18
| | | | | | Add "N" key to search the opposite way from the last search (reverse of "n"), from Micah Cowan.
* Sync OpenBSD patchset 636:Tiago Cunha2010-02-08
| | | | | Rectangle copy support, from Robin Lee Powell.
* Sync OpenBSD patchset 634:Tiago Cunha2010-02-05
| | | | | | | | | 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.
* Sync OpenBSD patchset 629:Tiago Cunha2010-02-02
| | | | | Add scroll-up/scroll-down for choose/more mode, from Micah Cowan.
* Sync OpenBSD patchset 623:Tiago Cunha2010-01-28
| | | | | Actually bind the new key to e.
* Sync OpenBSD patchset 621:Tiago Cunha2010-01-28
| | | | | | Alter next-word to have vi-like movement behaviour, and add next-word-end with the existing emacs behaviour. From Micah Cowan.
* Sync OpenBSD patchset 617:Tiago Cunha2010-01-28
| | | | | Top/bottom of history mode keys, diff from Micah Cowan, tweaked by me.
* Sync OpenBSD patchset 613:Tiago Cunha2010-01-25
| | | | | Use C-e and C-y for scrolling in vi mode, from Micah Cowan.
* Sync OpenBSD patchset 581:Tiago Cunha2009-12-04
| | | | | | | 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...
* Sync OpenBSD patchset 533:Tiago Cunha2009-11-13
| | | | | Zap unused functions, prompted by deraadt.
* Sync OpenBSD patchset 407:Tiago Cunha2009-10-15
| | | | | | 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).
* Sync OpenBSD patchset 365:Tiago Cunha2009-10-07
| | | | | | Support J and K for scroll up and scroll down in copy mode with vi keys, suggested by martynas.
* Sync OpenBSD patchset 361:Tiago Cunha2009-10-06
| | | | | | | 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).
* Sync OpenBSD patchset 358:Tiago Cunha2009-10-05
| | | | | | Get / and ? the right way round in vi mode, and use : for goto line rather than g.
* Sync OpenBSD patchset 355:Tiago Cunha2009-10-05
| | | | | C-v and M-v too.
* Sync OpenBSD patchset 354:Tiago Cunha2009-10-05
| | | | | Support C-n/C-p with emacs keys in choice mode, also fix a comment.
* Sync OpenBSD patchset 307:Tiago Cunha2009-09-02
| | | | | | Add a transpose-chars command in edit mode (C-t in emacs mode only). From Kalle Olavi Niemitalo.
* Sync OpenBSD patchset 265:Tiago Cunha2009-08-20
| | | | | | 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.
* Sync OpenBSD patchset 264:Tiago Cunha2009-08-20
| | | | | | | | | | | | 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.
* Sync OpenBSD patchset 261:Tiago Cunha2009-08-16
| | | | | | | | | 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.
* Sync OpenBSD patchset 260:Tiago Cunha2009-08-16
| | | | | | | | | 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 :-)).
* Sync OpenBSD patchset 207:Tiago Cunha2009-07-30
| | | | | Plug some memory leaks.
* Sync OpenBSD patchset 194:Tiago Cunha2009-07-28
| | | | | | Final pieces of mode key rebinding: bind-key and unbind-key now accept a -t argument to modify a table.
* Sync OpenBSD patchset 192:Tiago Cunha2009-07-28
| | | | | | | | 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).
* Sync OpenBSD patchset 190:Tiago Cunha2009-07-28
| | | | | | Remove an unused entry in the mode keys command enum and rename MODEKEYCOPY_QUIT to _CANCEL to match the others.
* Sync OpenBSD patchset 189:Tiago Cunha2009-07-28
| | | | | | | | | 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.
* Sync OpenBSD patchset 188:Tiago Cunha2009-07-28
| | | | | Get rid of empty mode_key_free function.
* Sync OpenBSD patchset 187:Tiago Cunha2009-07-28
| | | | | | | | Add a key to delete to end of line at the prompt (^K in emacs mode, C/D in vi). From Kalle Olavi Niemitalo.
* Sync OpenBSD patchset 184:Tiago Cunha2009-07-28
| | | | | | | | 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.
* Sync OpenBSD patchset 169:Tiago Cunha2009-07-23
| | | | | C-d is delete as well in emacs mode.