nicm
993e7a937f
Tweak note for D key binding, from Clark Wang.
2023-02-02 09:06:44 +00:00
nicm
416c27c995
Add scroll-middle copy mode command to make cursor line in the middle,
...
from Varun Kumar E in GitHub issue 3307.
2022-08-23 08:14:19 +00:00
nicm
497021d0db
Add some const, from Markus F X J Oberhumer.
2022-08-15 08:41:13 +00:00
nicm
e139f977b1
vi(1) Home/End bindings, from Markus F X J Oberhumer.
2022-08-11 09:11:26 +00:00
nicm
d0d2c39dec
Support hyperlinks with capture-pane -e and add a mouse_hyperlink
...
format, GitHub issue 3247 from Jeff Chiang.
2022-07-06 07:36:36 +00:00
nicm
5080acc127
Add a key in copy mode to toggle position indicator.
2022-02-03 07:26:43 +00:00
nicm
daec63e5e6
Replace %% in command lists (by copying them) for template arguments ,
...
this means they can be used with {} as well. Also make argument
processing from an existing vector preserve commands. GitHub issue 2858.
2021-08-27 17:25:55 +00:00
nicm
03d173cbd8
Validate command argument types (string or command list) and give more
...
useful error messages.
2021-08-25 08:51:55 +00:00
nicm
4a753dbefc
Fix a few memory leaks.
2021-08-23 11:04:21 +00:00
nicm
63b6eec278
Use new syntax for default key bindings.
2021-08-21 17:41:19 +00:00
nicm
01fd4b997e
Add pipe variants of the line copy commands. While here make the command
...
list less unreadable. GitHub issue 2813.
2021-08-11 20:35:46 +00:00
nicm
be5988457f
Change copy-line and copy-end-of-line not to cancel and add -and-cancel
...
variants, like the other copy commands. GitHub issue 2799.
2021-08-09 13:08:08 +00:00
nicm
1bbdd2aba2
Add -F for command-prompt and use it to fix "Rename" on the window menu,
...
GitHub issue 2699.
2021-06-10 07:52:56 +00:00
nicm
866117636e
Add different command historys for different types of prompts
...
("command", "search" etc). From Anindya Mukherjee.
2021-06-10 07:50:03 +00:00
nicm
e5106bfb96
Add another couple of keys needed for extended keys, GitHub issue 2658.
...
Handle modifier 9 as Meta, GitHub issue 2647.
2021-06-10 07:21:09 +00:00
nicm
4c8706d399
Fix note for "previous-window" default key binding, from Sebastian
...
Falbesoner.
2020-10-13 10:15:23 +00:00
nicm
1fed7e84a3
Allow -N without a command to change or add a note to an existing key.
2020-09-08 10:19:19 +00:00
nicm
1bf9555e4f
d and D keys to reset to default in customize mode.
2020-06-16 08:18:34 +00:00
nicm
3f6af4156f
Make paste -p the default for ], GitHub issue 2248.
2020-06-03 16:35:40 +00:00
nicm
6bde1c1837
Fix a couple more places where the key flags need to be masked off.
2020-05-20 07:11:45 +00:00
nicm
292b335ca5
Separate key flags and modifiers, log key flags, make the "xterm" flag
...
more explicit and fix M- keys with a leading escape.
2020-05-16 16:35:13 +00:00
nicm
ff8dd150e0
Add a mark in copy mode. Set with set-mark command (bound to 'X') by
...
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-16 16:10:28 +00:00
nicm
d67245c734
Add a customize mode where keys and options may be browsed and changed,
...
includes adding a brief description of each option. Bound to "C" by
default.
2020-05-16 16:02:24 +00:00
nicm
463864f5a2
Add -W and -T flags to command-prompt to only complete a window and a
...
target, also complete aliases.
2020-05-16 15:16:36 +00:00
nicm
5aba26f2cb
Add a copy-command option and change copy-pipe and friends to pipe to it
...
if used without arguments, allows all copy key bindings to be changed to
pipe with one option.
2020-04-17 08:03:22 +00:00
nicm
3f86d6d460
When adding a list of commands to the queue, instead of automatically
...
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-13 15:55:51 +00:00
nicm
adb76fd1ce
Move cmdq_state into cmd-queue.c.
2020-04-13 14:46:04 +00:00
nicm
9a65102bfc
Rename cmdq_shared to cmdq_state which will better reflect what it is
...
(going to be) used for.
2020-04-13 14:04:25 +00:00
nicm
04cdd03525
Also move cmdq_item and cmdq_list into cmd-queue.c (this is to make its
...
use more clearly defined and preparation for some future work).
2020-04-13 10:59:58 +00:00
nicm
c20eb0c0ae
Make struct cmd local to cmd.c and move it out of tmux.h.
2020-04-13 08:26:27 +00:00
nicm
77b827f879
Change copy mode to make copy of the pane history so it does not need to
...
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-06 17:51:34 +00:00
nicm
90f4e149c1
Add a W position to display-menu -y to use the line above (or below) the
...
status line containing the window list. Leave S meaning above (or below)
all status lines. GitHub issue 2145.
2020-04-02 05:35:15 +00:00
nicm
1a4e64ba69
Apply same menu items to view mode like copy mode.
2020-03-20 18:35:53 +00:00
nicm
7c25f22074
Similarly, disable zoom if only one pane.
2020-03-20 18:22:37 +00:00
nicm
b66501df0c
Put swap down back in the right place.
2020-03-20 18:20:58 +00:00
nicm
4d6805284b
Disable swap entries if nothing to swap with.
2020-03-20 18:19:22 +00:00
nicm
68cf61aa46
Still want the per-mode menus outside copy mode.
2020-03-20 18:11:56 +00:00
nicm
005cd48620
Oops, typo in key binding.
2020-03-20 18:05:22 +00:00
nicm
06c3079d66
Make the mouse_word and mouse_line formats work in copy mode and enable
...
the default pane menu in copy mode.
2020-03-20 17:59:39 +00:00
nicm
6571dd50f8
Tidy up the default mouse key bindings and:
...
- 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-03-12 13:48:32 +00:00
nicm
d0b8d036be
Add support for adding a note to a key binding (with bind-key -N) and
...
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-27 08:53:13 +00:00
nicm
73b8c2ef3c
Common function to free key bindings.
2020-01-05 20:39:25 +00:00
nicm
1764f66b7d
When adding a list with multiple commands to the queue, the next item to
...
insert after needs to be the last one added, not the first. Reported by
Jason Kim in GitHub issue 2023.
2019-12-19 09:22:33 +00:00
nicm
ec1b8e5f05
Remove client menu, I don't think it adds anything.
2019-12-02 19:25:52 +00:00
nicm
fef8ee23c0
Add default # and * binding with vi(1) keys.
2019-11-26 15:35:56 +00:00
nicm
3c312a9150
Do not check the client readonly flag when there is no client, GitHub issue 1980.
2019-11-20 11:42:51 +00:00
nicm
1ee40307b5
Up and Down are already used, use < and > instead.
2019-09-18 15:09:05 +00:00
nicm
83be3afc54
Change menu key bindings to Up and Down and also close it on any mouse
...
press if opened by key.
2019-09-16 13:27:14 +00:00
nicm
4b7e97ba53
Set up format tree for %if, GitHub issue 1896.
2019-09-10 07:50:33 +00:00
nicm
e0fd295054
Change the default right click pane to open the menu if not in a mode
...
and no application mouse.
2019-05-28 10:27:11 +00:00