mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
command-prompt now accepts a single argument, a template string. Any occurrences of %% in this string are replaced by whatever is entered at the prompt and the result is executed as a command. This allows things like (now bound by default):
bind , command-prompt "rename-window %%" Or my favourite: bind x command-prompt "split-window 'man %%'"
This commit is contained in:
5
TODO
5
TODO
@ -93,9 +93,6 @@
|
||||
move-pane (to window)
|
||||
>2 panes per window
|
||||
- would be nice if tmux could be the shell
|
||||
- some sort of extension to command prompt so can do eg
|
||||
bind m command-prompt 'split "man %%"'
|
||||
bind r command-prompt 'renamew "%%"'
|
||||
which then asks for a string, substitutes %% in command and executes it
|
||||
- command-prompt should accept an argument to specify the prompt
|
||||
- fix rxvt cursor fg issue (text under cursor has non-white fg)
|
||||
- key handling sucks a bit and needs to be reworked
|
||||
|
Reference in New Issue
Block a user