aboutsummaryrefslogtreecommitdiff
path: root/key-bindings.c
Commit message (Collapse)AuthorAge
* Replace %% in command lists (by copying them) for template arguments ,nicm2021-08-27
| | | | | this means they can be used with {} as well. Also make argument processing from an existing vector preserve commands. GitHub issue 2858.
* Validate command argument types (string or command list) and give morenicm2021-08-25
| | | | useful error messages.
* Fix a few memory leaks.nicm2021-08-23
|
* Use new syntax for default key bindings.nicm2021-08-21
|
* Add pipe variants of the line copy commands. While here make the commandnicm2021-08-11
| | | | list less unreadable. GitHub issue 2813.
* Change copy-line and copy-end-of-line not to cancel and add -and-cancelnicm2021-08-09
| | | | variants, like the other copy commands. GitHub issue 2799.
* Add -F for command-prompt and use it to fix "Rename" on the window menu,nicm2021-06-10
| | | | GitHub issue 2699.
* Add different command historys for different types of promptsnicm2021-06-10
| | | | ("command", "search" etc). From Anindya Mukherjee.
* Add another couple of keys needed for extended keys, GitHub issue 2658.nicm2021-06-10
| | | | Handle modifier 9 as Meta, GitHub issue 2647.
* Fix note for "previous-window" default key binding, from Sebastiannicm2020-10-13
| | | | Falbesoner.
* Allow -N without a command to change or add a note to an existing key.nicm2020-09-08
|
* d and D keys to reset to default in customize mode.nicm2020-06-16
|
* Make paste -p the default for ], GitHub issue 2248.nicm2020-06-03
|
* Fix a couple more places where the key flags need to be masked off.nicm2020-05-20
|
* Separate key flags and modifiers, log key flags, make the "xterm" flagnicm2020-05-16
| | | | more explicit and fix M- keys with a leading escape.
* Add a mark in copy mode. Set with set-mark command (bound to 'X') bynicm2020-05-16
| | | | | | | | 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.
* Add a customize mode where keys and options may be browsed and changed,nicm2020-05-16
| | | | | includes adding a brief description of each option. Bound to "C" by default.
* Add -W and -T flags to command-prompt to only complete a window and anicm2020-05-16
| | | | target, also complete aliases.
* Add a copy-command option and change copy-pipe and friends to pipe to itnicm2020-04-17
| | | | | if used without arguments, allows all copy key bindings to be changed to pipe with one option.
* When adding a list of commands to the queue, instead of automaticallynicm2020-04-13
| | | | | | | 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).
* Move cmdq_state into cmd-queue.c.nicm2020-04-13
|
* Rename cmdq_shared to cmdq_state which will better reflect what it isnicm2020-04-13
| | | | (going to be) used for.
* Also move cmdq_item and cmdq_list into cmd-queue.c (this is to make itsnicm2020-04-13
| | | | use more clearly defined and preparation for some future work).
* Make struct cmd local to cmd.c and move it out of tmux.h.nicm2020-04-13
|
* Change copy mode to make copy of the pane history so it does not need tonicm2020-04-06
| | | | | | freeze updates (which does not play nicely with some applications, a longstanding problem) and will allow some other changes later. From Anindya Mukherjee.
* Add a W position to display-menu -y to use the line above (or below) thenicm2020-04-02
| | | | | status line containing the window list. Leave S meaning above (or below) all status lines. GitHub issue 2145.
* Apply same menu items to view mode like copy mode.nicm2020-03-20
|
* Similarly, disable zoom if only one pane.nicm2020-03-20
|
* Put swap down back in the right place.nicm2020-03-20
|
* Disable swap entries if nothing to swap with.nicm2020-03-20
|
* Still want the per-mode menus outside copy mode.nicm2020-03-20
|
* Oops, typo in key binding.nicm2020-03-20
|
* Make the mouse_word and mouse_line formats work in copy mode and enablenicm2020-03-20
| | | | the default pane menu in copy mode.
* Tidy up the default mouse key bindings and:nicm2020-03-12
| | | | | | | | | | | | | - 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.
* Add support for adding a note to a key binding (with bind-key -N) andnicm2020-01-27
| | | | | | | | | | | | 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.
* Common function to free key bindings.nicm2020-01-05
|
* When adding a list with multiple commands to the queue, the next item tonicm2019-12-19
| | | | | insert after needs to be the last one added, not the first. Reported by Jason Kim in GitHub issue 2023.
* Remove client menu, I don't think it adds anything.nicm2019-12-02
|
* Add default # and * binding with vi(1) keys.nicm2019-11-26
|
* Do not check the client readonly flag when there is no client, GitHub issue ↵nicm2019-11-20
| | | | 1980.
* Up and Down are already used, use < and > instead.nicm2019-09-18
|
* Change menu key bindings to Up and Down and also close it on any mousenicm2019-09-16
| | | | press if opened by key.
* Set up format tree for %if, GitHub issue 1896.nicm2019-09-10
|
* Change the default right click pane to open the menu if not in a modenicm2019-05-28
| | | | and no application mouse.
* Add key bindings to open the window and pane menus (C-m and M-m for now).nicm2019-05-28
|
* Allow menu items to be disabled by putting a - at the start of theirnicm2019-05-28
| | | | | name, rather than just including #[dim] which still allowed them to be chosen.
* Change display-menu from taking a single string to a set of arguments,nicm2019-05-28
| | | | which is much easier to work with. Based on a diff from Avi Halachmi.
* Add an additional {} syntax for defining strings in the configurationnicm2019-05-27
| | | | | | | file, making it much tidier to define commands that contain other tmux or shell commands (like if-shell). Also tweak bind-key to expect a string if it is only given one argument, so {} can be used with it as well. From Avi Halachmi.
* Replace the split parser code (cfg.c and cmd-string.c) with a singlenicm2019-05-23
| | | | | | | | | | | | | | | | | | | | | | | | | | parser using yacc(1). This is a major change but is clearer and simpler and allows some edge cases to be made more consistent, as well as tidying up how aliases are handled. It will also allow some further improvements later. Entirely the same parser is now used for parsing the configuration file and for string commands. This means that constructs previously only available in .tmux.conf, such as %if, can now be used in string commands (for example, those given to if-shell - not commands invoked from the shell, they are still parsed by the shell itself). The only syntax change I am aware of is that #{} outside quotes or a comment is now considered a format and not a comment, so #{ is now a syntax error (notably, if it is at the start of a line). This also adds two new sections to the man page documenting the syntax and outlining how parsing and command execution works. Thanks to everyone who sent me test configs (they still all parse without errors - but this doesn't mean they still work as intended!). Thanks to Avi Halachmi for testing and man page improvements, also to jmc@ for reviewing the man page changes.
* Add simple menus to tree, client, buffer modes.nicm2019-05-12
|