Hi,
Thanks for your answer
actually I would like to see vim README.txt in status bar when README.txt is edited with vim in the active pane and not just vim *
After posting this message, I have found some .tmux.conf setting that does it:
here it is:
set-option -g status-interval 1
set-option -g automatic-rename on
set-option -g automatic-rename-format "#(ps -f --no-headers --ppid $(tmux display-message -p #{pane_pid}) | awk '{ print substr($0, index($0,$8)) }') "
A few problems though, I have to move cursor within vim window to have status bar updated.
There's no automatic update when there is a change of active pane
When focus switches to a bash pane , I just get "*" and not at least "bash" or "bash * "
And second problem is that I don't understand the syntax following
set-option -g automatic-rename-format in
set-option -g automatic-rename-format "#(ps -f --no-headers --ppid
$(tmux display-message -p #{pane_pid}) | awk '{ print substr($0,
index($0,$8)) }') "
the $(tmux display-message -p #{pane_pid}) make me think command subsitution with $( cmd ) expression is possible but
why put
#(ps -f --no-headers --ppid .... and not
#($( ps -f --no-headers --ppid.... ) ?
Is there a link somewhere to a tutorial explaining how to use shell commands with tmux own scripting language ?
Thanks !