Open
Conversation
Add remark about using `-F` option for `set` when setting the status.
kjnsn
requested changes
Apr 23, 2025
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. |
Collaborator
There was a problem hiding this comment.
nit: tmux calls them "options", so "Note that options are expanded as format strings by placing E: before the option name".
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. |
Collaborator
There was a problem hiding this comment.
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
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. |
Collaborator
There was a problem hiding this comment.
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
More detailed expolanation about expanding options when setting the status
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add remark about using
-Foption forsetwhen setting the status.See #527