-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can I show pane_current_path as window name? #41
Comments
I managed to find a workaround! Instead of installing the plugin as a plugin I call it from my conf.
mkdir ~/git_apps && cd ~/git_apps && git clone https://github.com/joshmedeski/tmux-nerd-font-window-name.git
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:
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 |
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: 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 #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):
The text was updated successfully, but these errors were encountered: