| Commit message (Collapse) | Author | Age |
| ... | |
| |\| |
|
| | |
| |
| |
| |
| |
| | |
the same as normal searching but updates the cursor position and marked
search terms as you type. C-r and C-s in the prompt repeat the search,
once finished searching (with Enter), N and n work as before.
|
| |\| |
|
| | | |
|
| |\| |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
that it is not affected by scrolling. If MouseDragEnd1Pane is bound to
the new "stop-selection" command:
bind -Tcopy-mode MouseDragEnd1Pane stop-selection
A selection made with the mouse will stay as it is after button 1 is
released. (It also works bound to a key.)
From Artem Fokin.
|
| |\| |
|
| | | |
|
| |\| |
|
| | |
| |
| |
| |
| | |
for the prompts in copy mode. Fixes problems with jumping to ' reported
by Theo Buehler.
|
| |\| |
|
| | | |
|
| |\| |
|
| | |
| |
| |
| | |
existing hooks to use notifys instead.
|
| |\| |
|
| | |
| |
| |
| |
| | |
affected session or window when a hook fires. Enable session-created and
session-closed hooks now that that is available.
|
| |\| |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
but there is also now a global command queue. Instead of command queues
being dispatched on demand from wherever the command happens to be
added, they are now all dispatched from the top level server
loop. Command queues may now also include callbacks as well as commands,
and items may be inserted after the current command as well as at the end.
This all makes command queues significantly more predictable and easier
to use, and avoids the complex multiple nested command queues used by
source-file, if-shell and friends.
A mass rename of struct cmdq to a better name (cmdq_item probably) is
coming.
|
| |\| |
|
| | | |
|
| |\| |
|
| | |
| |
| |
| | |
the complicated ones get no hooks for now (more to come).
|
| |\| |
|
| | | |
|
| |\| |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
confusing, particularly trying to automatically figure out what target
hooks should be using. So simplify it:
- drop before hooks entirely, they don't seem to be very useful;
- commands with special requirements now fire their own after hook (for
example, if they change session or window, or if they have -t and -s
and need to choose which one the hook uses as current target);
- commands with no special requirements can have the CMD_AFTERHOOK flag
added and they will use the -t state.
At the moment new-session, new-window, split-window fire their own hook,
and display-message uses the flag. The remaining commands still need to
be looked at.
|
| |\| |
|
| | |
| |
| |
| | |
be done with hooks instead.
|
| |\| |
|
| | | |
|
| |\| |
|
| | | |
|
| |\|
| |
| |
| |
| | |
Conflicts:
paste.c
|
| | | |
|
| | |
| |
| |
| | |
command prompt.
|
| | |
| |
| |
| |
| |
| | |
support line editing and instead executes a command as soon as a
non-number key is pressed. Add a -N flag to command-prompt for the same
in copy mode. Reported by Theo Buehler.
|
| |\|
| |
| |
| |
| |
| | |
Conflicts:
format.c
osdep-openbsd.c
|
| | |
| |
| |
| |
| | |
fired then triple), and use for select-word and select-line in copy
mode. Inspired by a different solution from Omar Sandoval.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The vi-copy and emacs-copy mode key tables are gone, and instead copy
mode commands are bound in one of two normal key tables ("copy-mode" or
"copy-mode-vi"). Keys are bound to "send-keys -X copy-mode-command". So:
bind -temacs-copy C-Up scroll-up
bind -temacs-copy -R5 WheelUpPane scroll-up
Becomes:
bind -Tcopy-mode C-Up send -X scroll-up
bind -Tcopy-mode WheelUpPane send -N5 -X scroll-up
This allows the full command parser and command set to be used - for
example, we can use the normal command prompt for searching, jumping,
and so on instead of a custom one:
bind -Tcopy-mode C-r command-prompt -p'search up' "send -X search-backward '%%'"
command-prompt also gets a -1 option to only require on key press, which
is needed for jumping.
The plan is to get rid of mode keys entirely, so more to come eventually.
|
| |\| |
|
| | | |
|
| |\| |
|
| | |
| |
| |
| |
| | |
and set the default repeat count to 5 for WheelUp and WheelDown in
copy-mode.
|
| |\| |
|
| | |
| |
| |
| | |
than splitting the current cell. From Stephen Kent.
|
| |\| |
|
| | | |
|
| |\| |
|
| | | |
|
| |\| |
|