Re: Suggestion: conditional mappings

2013-04-08 Thread Nicholas Marriott
Hi Can't this be done with if-shell easily enough? if "[ $(tmux display -pF '#{pane_current_command}') = vim ]" "send-keys foo" On Sun, Apr 07, 2013 at 02:47:52PM -0300, Thiago Padilha wrote: > Hi > > It would be nice to have a tmux command that conditonally send keys > based on the program ru

Suggestion: conditional mappings

2013-04-07 Thread Thiago Padilha
Hi It would be nice to have a tmux command that conditonally send keys based on the program running in the focused pane. See a use case with hacky workaround here: https://gist.github.com/tarruda/5158535 In the example, vim-tmux-move.zsh will navigate between tmux panes, but if the current pane