tmux-text-macros icon indicating copy to clipboard operation
tmux-text-macros copied to clipboard

[Request] Escape for tmux special-keys

Open opensiriusfox opened this issue 4 years ago • 1 comments

I have a few Macro's I'd like to have newlines. Adding support for escaping tmux special keys would make this possible.

https://stackoverflow.com/questions/19313807/tmux-send-keys-syntax#19330452

opensiriusfox avatar Jul 17 '20 22:07 opensiriusfox

@lrenaud I've just implemented this myself; it's pretty simple while you don't need builtin emojis.

See https://github.com/Str1ker17/tmux-text-macros/commit/dbd4d56293b518ea221a99b174b06abae7f760c3

And define your macro like this:

'debug-mode Enter debug Enter password Enter: Enter debug mode'

The "Enter" word will be processed as Enter key press inside the current pane.

Str1ker17 avatar Jul 02 '21 09:07 Str1ker17