summaryrefslogtreecommitdiffstats
path: root/key-bindings.c
AgeCommit message (Collapse)Author
2023-08-15Add meta bindings for status line menus as well as the existing pane onenicm
for terminals which steal the mouse menu button.
2023-02-02Tweak note for D key binding, from Clark Wang.nicm
2022-08-23Add scroll-middle copy mode command to make cursor line in the middle,nicm
from Varun Kumar E in GitHub issue 3307.
2022-08-15Add some const, from Markus F X J Oberhumer.nicm
2022-08-11vi(1) Home/End bindings, from Markus F X J Oberhumer.nicm
2022-07-06Support hyperlinks with capture-pane -e and add a mouse_hyperlinknicm
format, GitHub issue 3247 from Jeff Chiang.
2022-02-03Add a key in copy mode to toggle position indicator.nicm
2021-08-27Replace %% in command lists (by copying them) for template arguments ,nicm
this means they can be used with {} as well. Also make argument processing from an existing vector preserve commands. GitHub issue 2858.
2021-08-25Validate command argument types (string or command list) and give morenicm
useful error messages.
2021-08-23Fix a few memory leaks.nicm
2021-08-21Use new syntax for default key bindings.nicm
2021-08-11Add pipe variants of the line copy commands. While here make the commandnicm
list less unreadable. GitHub issue 2813.
2021-08-09Change copy-line and copy-end-of-line not to cancel and add -and-cancelnicm
variants, like the other copy commands. GitHub issue 2799.
2021-06-10Add -F for command-prompt and use it to fix "Rename" on the window menu,nicm
GitHub issue 2699.
2021-06-10Add different command historys for different types of promptsnicm
("command", "search" etc). From Anindya Mukherjee.
2021-06-10Add another couple of keys needed for extended keys, GitHub issue 2658.nicm
Handle modifier 9 as Meta, GitHub issue 2647.
2020-10-13Fix note for "previous-window" default key binding, from Sebastiannicm
Falbesoner.
2020-09-08Allow -N without a command to change or add a note to an existing key.nicm
2020-06-16d and D keys to reset to default in customize mode.nicm
2020-06-03Make paste -p the default for ], GitHub issue 2248.nicm
2020-05-20Fix a couple more places where the key flags need to be masked off.nicm
2020-05-16Separate key flags and modifiers, log key flags, make the "xterm" flagnicm
more explicit and fix M- keys with a leading escape.
2020-05-16Add a mark in copy mode. Set with set-mark command (bound to 'X') bynicm
default and the mark and cursor position are swapped with 'jump-to-mark' (bound to M-x). The line containing the mark is shown in copy-mode-mark-style with the horizontal position in reverse. From Anindya Mukherjee in GitHub issue 2209.
2020-05-16Add a customize mode where keys and options may be browsed and changed,nicm
includes adding a brief description of each option. Bound to "C" by default.
2020-05-16Add -W and -T flags to command-prompt to only complete a window and anicm
target, also complete aliases.
2020-04-17Add a copy-command option and change copy-pipe and friends to pipe to itnicm
if used without arguments, allows all copy key bindings to be changed to pipe with one option.
2020-04-13When adding a list of commands to the queue, instead of automaticallynicm
creating a new state for each group of commands, require the caller to create one and use it for all the commands in the list. This means the current target works even with list with multiple groups (which can happen if they are defined with newlines).
2020-04-13Move cmdq_state into cmd-queue.c.nicm
2020-04-13Rename cmdq_shared to cmdq_state which will better reflect what it isnicm
(going to be) used for.
2020-04-13Also move cmdq_item and cmdq_list into cmd-queue.c (this is to make itsnicm
use more clearly defined and preparation for some future work).
2020-04-13Make struct cmd local to cmd.c and move it out of tmux.h.nicm
2020-04-06Change copy mode to make copy of the pane history so it does not need tonicm
freeze updates (which does not play nicely with some applications, a longstanding problem) and will allow some other changes later. From Anindya Mukherjee.
2020-04-02Add a W position to display-menu -y to use the line above (or below) thenicm
status line containing the window list. Leave S meaning above (or below) all status lines. GitHub issue 2145.
2020-03-20Apply same menu items to view mode like copy mode.nicm
2020-03-20Similarly, disable zoom if only one pane.nicm
2020-03-20Put swap down back in the right place.nicm
2020-03-20Disable swap entries if nothing to swap with.nicm
2020-03-20Still want the per-mode menus outside copy mode.nicm
2020-03-20Oops, typo in key binding.nicm
2020-03-20Make the mouse_word and mouse_line formats work in copy mode and enablenicm
the default pane menu in copy mode.
2020-03-12Tidy up the default mouse key bindings and:nicm
- Add double and triple click bindings to copy a word or line outside copy mode. The text is selected for a short period to show what has been copied. This is in line with the existing mouse selection where the text is copied and the selection is cleared when the mouse button is released. - Change the existing double and triple click bindings in copy mode to behave in the same way. - Add a button 2 binding to paste the top buffer.
2020-01-27Add support for adding a note to a key binding (with bind-key -N) andnicm
use this to add descriptions to the default key bindings. A new -N flag to list-keys shows key bindings with notes rather than the default bind-key command used to create them. Change the default ? binding to use this to show a readable summary of keys. Also extend command-prompt to return the name of the key pressed and add a default binding (/) to show the note for the next key pressed Suggested by Alex Tremblay in GitHub issue 2000.
2020-01-05Common function to free key bindings.nicm
2019-12-19When adding a list with multiple commands to the queue, the next item tonicm
insert after needs to be the last one added, not the first. Reported by Jason Kim in GitHub issue 2023.
2019-12-02Remove client menu, I don't think it adds anything.nicm
2019-11-26Add default # and * binding with vi(1) keys.nicm
2019-11-20Do not check the client readonly flag when there is no client, GitHub issue ↵nicm
1980.
2019-09-18Up and Down are already used, use < and > instead.nicm
2019-09-16Change menu key bindings to Up and Down and also close it on any mousenicm
press if opened by key.
2019-09-10Set up format tree for %if, GitHub issue 1896.nicm