Closed louis-hsu closed 1 year ago
@louis-hsu - I think the issue may be with the 'tmux-prefix-highlight' plugin, I tried another official plugin 'tmux-plugins/tmux-cpu' and this worked fine when I added it to @nova-segments-0-right with "cpu whoami"
Sadly, the prefix plugin is no longer maintained.
Perhaps @o0th you could add this feature into tmux-nova directly using the newer syntax. I'm not comfortable enough on the changes required to make this work for a PR sorry. Best left to the experts 😄
Hi @louis-hsu, thank you for opening this issue! Apparently, tmux-prefix-highlight
is incompatible with tmux-nova
. I could make it work by changing a few lines in the plugin source code, but I was not too fond of the general behavior.
@arrrgi: I think it is possible to have a similar implementation without touching the source code tmux-nova
and without writing a plugin
set -g @nova-segment-action-prefix "#{?client_prefix,^B,}#{?#{==:#{pane_mode},copy-mode}, ^C,}#{?#{==:#{pane_mode},view-mode}, ^V,}"
Let me know what you think about it!
Thanks @o0th
set -g @nova-segment-action-prefix "#{?client_prefix,^B,}#{?#{==:#{pane_mode},copy-mode}, ^C,}#{?#{==:#{pane_mode},view-mode}, ^V,}"
worked.
I wonder if you also know how I get the status to show if the panes are in sync mode with this? (currently I have this bound as Prefix + Ctrl X)
Adding #{?synchronize-panes,^S,}
to the @nova-segment-action-prefix
will do :)
Thanks, worked great!
Hi @o0th and @arrrgi , thanks for the help and it works! Nevertheless, found anothe symptom after following suggestion to set new right segment for prefix (with minor tweaks):
prefix
Esc
) to enter Copy mode
prefix
again
The similar symptom for synchronization mode
I tried to trace tmux-prefix-highlight source code to see how to reload the segment correctly but no clue yet...
Hi @louis-hsu, sorry for the waiting time; I could not dedicate time to this till now. You could try this:
set -g @nova-segment-action-prefix "#{?client_prefix,^B,#{?#{==:#{pane_mode},copy-mode},^C,}#{?#{==:#{pane_mode},view-mode},^V,}#{?synchronize-panes,^S,}}"
Hi @o0th, it works! Thanks a lot!
Hi, the theme is simple and elegant with versatile customization capability. Nevertheless encounter one issue when applying one 3rd tmux plugin.
Setup in .tmux.conf
Use TPM for tmux plugin management/installation and configure nova theme as
And the result shown as:
Then install 'tmux-prefix-highlight' and add to right segment
Symptom
Click
prefix
+ I to install the pluging/configuration via TPM, the segment shows:Click
prefix
+ U to update the plugin/reload configuration via TPM, the segment restores to original presentation:Type
tmux source ~/.tmux.conf
in the session, the segment doesn't change.Click
prefix
, the expected 'prefix-highlight' segment doesn't show upQuit tmux session, kill tmux server and restart a new session, the right segment shows as original one and no 'prefix-highlight' segment shows up when clicking
prefix
Please let me know if futher test/info required, and thanks for your assistance.