-
-
Notifications
You must be signed in to change notification settings - Fork 663
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
docs: change recommended default config, so that window names are automatically set (#53) #472
base: main
Are you sure you want to change the base?
docs: change recommended default config, so that window names are automatically set (#53) #472
Conversation
Can you point to where in the docs it mentions that the window names match the current directory? |
@@ -160,6 +160,13 @@ set -ag status-right "#{E:@catppuccin_status_session}" | |||
set -ag status-right "#{E:@catppuccin_status_uptime}" | |||
set -agF status-right "#{E:@catppuccin_status_battery}" | |||
|
|||
# automatically set CWD as window name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is #W
the current directory?
@@ -160,6 +160,13 @@ set -ag status-right "#{E:@catppuccin_status_session}" | |||
set -ag status-right "#{E:@catppuccin_status_uptime}" | |||
set -agF status-right "#{E:@catppuccin_status_battery}" | |||
|
|||
# automatically set CWD as window name | |||
set -g @catppuccin_window_default_text "#W" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This option no longer exists
set -g @catppuccin_window_default_text "#W" | ||
set -g @catppuccin_window_current_text "#W" | ||
set -g @catppuccin_window_text "#W" | ||
set-option -g automatic-rename on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why automatic rename if #W
is used? It updates automatically anyway
And please be consistent with set
and set-option
. They are aliases and set
is used everywhere else
set -g @catppuccin_window_current_text "#W" | ||
set -g @catppuccin_window_text "#W" | ||
set-option -g automatic-rename on | ||
set-option -g automatic-rename-format '#I #{b:pane_current_path}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this do?
The docs state that if the recommended default config is applied, tmux windows are automatically renamed according to the CWD. But as discussed in #53, this is currently not the case. This PR updates the recommended default config, to align it with what the docs say.