Open worldsayshi opened 3 months ago
I managed to find a workaround!
Instead of installing the plugin as a plugin I call it from my conf.
~/git_apps
):mkdir ~/git_apps && cd ~/git_apps && git clone https://github.com/joshmedeski/tmux-nerd-font-window-name.git
bin/tmux-nerd-font-window-name
executableautomatic-rename-format
option:
set-option -g automatic-rename on
set-option -g automatic-rename-format '#(~/git_apps/tmux-nerd-font-window-name/bin/tmux-nerd-font-window-name #{pane_current_command} #{window_panes}) #{b:pane_current_path}'
~/.config/tmux/tmux-nerd-font-window-name.yml
:
config:
show-name: false
Quite happy with the result: 💯
Interesting, this is a good idea!
I'll experiment with it later this week, thanks for looking into it.
I didn't find this to be significantly faster, perhaps I'm missing something.
I wonder if bash is the culprit.
No it's not supposed to be faster. It's just a way to display <icon> <working dir>
as the tab title. As far as I understood it the plugin doesn't support doing that? But maybe I'm misunderstanding something.
I see! At this point the plugin is very simple: replace the process name with an icon. I think we could support passing other values in the window name. I'd have to look over the available values and determine the best way to make this plugin more flexible.
I came here looking for same exact thing and/or similar option. (FYI This plugin is awesome, excellent work.)
Currently I define the following in my tmux.conf for window naming:
set -gq @catppuccin_window_current_text "#{?#{==:#{b:pane_current_command},zsh},#{b:pane_current_path},#{window_name}}"
What I would like to do is have an option to define a folder icon whenever #{b:pane_current_path} is defined as my window name.
I think it could work to add a variable that can disable automatic window renaming and allow the user to call their own overwrite options in some way.
@worldsayshi would you be interested in opening a PR?
Thanks for a great plugin! It's is almost perfect for me but I'd like the window names to be set to
#{b:pane_current_path}
.This could be a duplicate of https://github.com/joshmedeski/tmux-nerd-font-window-name/issues/14 but I'm not sure if the plugin is working as expected for me.
What I see:
What I'd like to see:
<Icon> <pane_current_path>
I am running this in Windows Terminal and WSL Ubuntu.
Is there some way to configure the plugin to set the title using tmux variables like
pane_current_path
(as seems to be the default in tmux) while still getting the icons?Here's my current tmux.conf (very much WIP because I'm currently learning tmux):