You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
set -g @modal-keybindings-conf ~/.tmux/conf/keybindings.conf
set -g @modal-commands-conf ~/.tmux/conf/commands.conf
in ~/.tmux/conf/keybindings.conf, in addition to the defaults, I have added
## Rename window.
KBD_WIN_RENAME=,
## Search within windows, only visible part, ignores case.
KBD_WIN_SEARCH='/'
##q Pane command prefix (same bindings as KBD_WIN but without the prefix).
I've tried both / and '/' as the values for KBD_WIN_SEARCH and neither seem to be bound. They don't do anything and list-keys doesn't have an entry for them. I've installed using tpm and when I add bind -T ktm-window '/' command-prompt -p "Search for:" "find-window -Zi %%" below run '~/.tmux/plugins/tpm/tpm' the keybind works, so there's a workaroubut otherwise it doesn't. I would think that any key that works with tmux bind-key should work in the config file. Any ideas why this isn't working?
The text was updated successfully, but these errors were encountered:
Adding new commands are unfortunately not supported. Only the ones already specified in commands.conf can be customized.
However, adding support for custom commands is maybe something we should add. I guess many would want this (and maybe bind stuff from other plugins). That's actually a really good idea!
Just designing it quickly on top of my head, I'm thinking we should have a "template" CMD_$KT_CUSTOM_*, where $KT is an existing key table. Users can then add whatever they want, e.g. in your case
This way we can identify and separate custom commands and their keybindings. Thanks for the idea! I'll see if I have time to cook something up this week.
Hi,
I have added the following to my
.tmux.conf
:in
~/.tmux/conf/keybindings.conf
, in addition to the defaults, I have addedand in
~/.tmux/conf/commands.conf
(context included to indicate position)
I've tried both
/
and'/'
as the values for KBD_WIN_SEARCH and neither seem to be bound. They don't do anything andlist-keys
doesn't have an entry for them. I've installed usingtpm
and when I addbind -T ktm-window '/' command-prompt -p "Search for:" "find-window -Zi %%"
belowrun '~/.tmux/plugins/tpm/tpm'
the keybind works, so there's a workaroubut otherwise it doesn't. I would think that any key that works withtmux bind-key
should work in the config file. Any ideas why this isn't working?The text was updated successfully, but these errors were encountered: