#
e1825d0c |
| 27-Dec-2023 |
nicm <nicm@openbsd.org> |
Only wrap pattern in *s if using a regular expression.
|
#
83a0a8d9 |
| 16-Dec-2022 |
nicm <nicm@openbsd.org> |
Add send-keys -K to handle keys directly as if typed (so look up in key table). GitHub issue 3361.
|
#
bee784fa |
| 21-Aug-2021 |
nicm <nicm@openbsd.org> |
Preserve argument type in command and convert to string on demand.
|
#
a51dead1 |
| 21-Aug-2021 |
nicm <nicm@openbsd.org> |
Add args parsing callback for some future work, currently unused.
|
#
1693b10b |
| 20-Aug-2021 |
nicm <nicm@openbsd.org> |
Hide struct args behind a couple of accessor functions.
|
#
eee51546 |
| 20-Aug-2021 |
nicm <nicm@openbsd.org> |
Add a way to create an empty arguments set.
|
#
b07e26c9 |
| 29-May-2020 |
nicm <nicm@openbsd.org> |
Add -i to find-window to ignore case.
|
#
040343ae |
| 13-Apr-2020 |
nicm <nicm@openbsd.org> |
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).
|
#
90d7ba38 |
| 13-Apr-2020 |
nicm <nicm@openbsd.org> |
Make struct cmd local to cmd.c and move it out of tmux.h.
|
#
cdfe74ad |
| 10-Apr-2020 |
nicm <nicm@openbsd.org> |
Now that copy mode copies the pane content rather than keeping a reference to it, it isn't necessary that the pane in copy mode is the same as the one copying from. Add a -s flag to copy-mode to spec
Now that copy mode copies the pane content rather than keeping a reference to it, it isn't necessary that the pane in copy mode is the same as the one copying from. Add a -s flag to copy-mode to specify a different pane for the source content. This means it is possible to view two places in a pane's history at the same time in different panes, or copy from a pane's history into an editor or shell in the same pane.
From Anindya Mukherjee.
show more ...
|
#
37aad195 |
| 20-Jun-2019 |
nicm <nicm@openbsd.org> |
Add -r to find-window for regex instead of fnmatch.
|
#
f456e8d3 |
| 20-Aug-2018 |
nicm <nicm@openbsd.org> |
Add -Z to find-window as well.
|
#
1b25b157 |
| 31-May-2017 |
nicm <nicm@openbsd.org> |
Shut up a warning.
|
#
a42faf7d |
| 30-May-2017 |
nicm <nicm@openbsd.org> |
Rewrite of choose mode, both to simplify and tidy the code and to add some modern features.
Now the common code is in mode-tree.c, which provides an API used by the three modes now separated into wi
Rewrite of choose mode, both to simplify and tidy the code and to add some modern features.
Now the common code is in mode-tree.c, which provides an API used by the three modes now separated into window-{buffer,client,tree}.c. Buffer mode shows buffers, client mode clients and tree mode a tree of sessions, windows and panes.
Each mode has a common set of key bindings plus a few that are specific to the mode. Other changes are:
- each mode has a preview pane: for buffers this is the buffer content (very useful), for others it is a preview of the pane;
- items may be sorted in different ways ('O' key);
- multiple items may be tagged and an operation applied to all of them (for example, to delete multiple buffers at once);
- in tree mode a command may be run on the selected item (session, window, pane) or on tagged items (key ':');
- displayed items may be filtered in tree mode by using a format (this is used to implement find-window) (key 'f');
- the custom format (-F) for the display is no longer available;
- shortcut keys change from 0-9, a-z, A-Z which was always a bit weird with keys used for other uses to 0-9, M-a to M-z.
Now that the code is simpler, other improvements will come later.
Primary key bindings for each mode are documented under the commands in the man page (choose-buffer, choose-client, choose-tree).
Parts written by Thomas Adam.
show more ...
|
#
5ed50bb3 |
| 29-May-2017 |
nicm <nicm@openbsd.org> |
Add ||, && format operators and C: to search pane content.
|
#
bf0d297e |
| 22-Apr-2017 |
nicm <nicm@openbsd.org> |
Get rid of the extra layer of flags and cmd_prepare() and just store the CMD_FIND_* flags in the cmd_entry and call it for the command. Commands with special requirements call it themselves and updat
Get rid of the extra layer of flags and cmd_prepare() and just store the CMD_FIND_* flags in the cmd_entry and call it for the command. Commands with special requirements call it themselves and update the target for hooks to use.
show more ...
|
#
0e2c9d0f |
| 22-Apr-2017 |
nicm <nicm@openbsd.org> |
Mouse bindings and hooks set up an initial current state when running a command. This is used for the session, window and pane for all commands in the command sequence if there is no -t or -s.
Howev
Mouse bindings and hooks set up an initial current state when running a command. This is used for the session, window and pane for all commands in the command sequence if there is no -t or -s.
However, using it for all commands in the command sequence means that if the active pane or current session is changed, subsequent commands still use the previous state. So make commands which explicitly change the current state (such as neww and selectp) update it themselves for later commands. Commands which may invalidate the state (like killp) are already OK because an invalid state will be ignored.
Also fill in the current state for all key bindings rather than just the mouse, so that any omissions are easier to spot.
show more ...
|
#
68e0a7f2 |
| 16-Oct-2016 |
nicm <nicm@openbsd.org> |
Mass rename struct cmd_q to struct cmdq_item and related.
|
#
dc1f0f5f |
| 10-Oct-2016 |
nicm <nicm@openbsd.org> |
Add static in cmd-* and fix a few other nits.
|
#
98ca8272 |
| 19-Jan-2016 |
nicm <nicm@openbsd.org> |
I no longer use my SourceForge address so replace it.
|
#
8d471e80 |
| 14-Dec-2015 |
nicm <nicm@openbsd.org> |
Instead of combined flags for -c, -s, -t, split into different sets using an enum and simplify the parsing code.
|
#
c057646b |
| 13-Dec-2015 |
nicm <nicm@openbsd.org> |
Use member names in cmd_entry definitions so I stop getting confused about the order.
|
#
3447b427 |
| 13-Dec-2015 |
nicm <nicm@openbsd.org> |
Instead of every command resolving the target (-t or -s) itself, prepare the state (client, session, winlink, pane) for it it before entering the command. Each command provides some flags that tell t
Instead of every command resolving the target (-t or -s) itself, prepare the state (client, session, winlink, pane) for it it before entering the command. Each command provides some flags that tell the prepare step what it is expecting.
This is a requirement for having hooks on commands (for example, if you hook "select-window -t1:2", the hook command should to operate on window 1:2 not whatever it thinks is the current window), and should allow some other target improvements.
The old cmd_find_* functions remain for the moment but that layer will be dropped later.
Joint work with Thomas Adam.
show more ...
|
#
8cbed062 |
| 07-May-2015 |
nicm <nicm@openbsd.org> |
Use a TAILQ not array for find-window.
|
#
f65f2164 |
| 27-Apr-2015 |
nicm <nicm@openbsd.org> |
Rewrite of the target resolution internals to be simpler and more consistent but with much less duplication, but keeping the same internal API. Also adds more readable aliases for some of the special
Rewrite of the target resolution internals to be simpler and more consistent but with much less duplication, but keeping the same internal API. Also adds more readable aliases for some of the special tokens used in targets (eg "{start}" instead of "^"). Some behaviours may have changed, for example prefix matches now happen before fnmatch.
show more ...
|