-
-
Notifications
You must be signed in to change notification settings - Fork 760
Update status-line.md #528
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
base: main
Are you sure you want to change the base?
Conversation
Add remark about using `-F` option for `set` when setting the status.
docs/reference/status-line.md
Outdated
set -g status-right "#{E:@catppuccin_status_application}#{E:@catppuccin_status_session}" | ||
set -g status-left "" | ||
``` | ||
Note that the status variables are expanded using `E:` before the variable name. Depending on the module used, you may also have to use `set -gF` in order for `set` to expand format, see for example the [CPU](#cpu-module) and [battery](#battery-module) modules below. |
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.
nit: tmux calls them "options", so "Note that options are expanded as format strings by placing E:
before the option 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.
done
docs/reference/status-line.md
Outdated
set -g status-right "#{E:@catppuccin_status_application}#{E:@catppuccin_status_session}" | ||
set -g status-left "" | ||
``` | ||
Note that the status variables are expanded using `E:` before the variable name. Depending on the module used, you may also have to use `set -gF` in order for `set` to expand format, see for example the [CPU](#cpu-module) and [battery](#battery-module) modules below. |
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.
set -gF
worth being specific that F
is the flag that treats the value passed as a format string that is immediately expanded. Also worth linking to the man page
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.
done
docs/reference/status-line.md
Outdated
set -g status-right "#{E:@catppuccin_status_application}#{E:@catppuccin_status_session}" | ||
set -g status-left "" | ||
``` | ||
Note that the status variables are expanded using `E:` before the variable name. Depending on the module used, you may also have to use `set -gF` in order for `set` to expand format, see for example the [CPU](#cpu-module) and [battery](#battery-module) modules below. |
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.
The status line expands format strings in status-{left,right}
anyway before displaying them, so worth explaining why some modules need to their formats fully expanded prior to being added to the status-{left,right}
options
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.
done
More detailed expolanation about expanding options when setting the status
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.
Add remark about using
-F
option forset
when setting the status.See #527