@@ -156,51 +156,54 @@ In `tmux` status bar, `gitmux` output immediately reflects the changes you make
156
156
157
157
# ## Symbols
158
158
159
- The `symbols` section describes the symbols `gitmux` prints for the various components of the status string.
159
+ The `symbols` section defines the symbols printed before specific elements
160
+ of Git status displayed in `tmux` status string :
160
161
161
162
` ` ` yaml
162
163
symbols:
163
- branch: '⎇ ' # Shown before a branch
164
- hashprefix: ':' # Shown before a Git hash (in 'detached HEAD ' state)
165
- ahead: ↑· # Shown before the 'ahead count' when local and remote branch diverge
166
- behind: ↓· # Shown before the 'behind count' when local/ remote branch diverge
167
- staged: '● ' # Shown before the 'staged' files count
168
- conflict: '✖ ' # Shown before the 'conflicts' count
169
- modified: '✚ ' # Shown before the ' modified' files count
170
- untracked: '… ' # Shown before the ' untracked' files count
171
- stashed: '⚑ ' # Shown before the ' stash' count
172
- insertions: Σ # Shown before the count of insertied lines (stats sections ).
173
- deletions: Δ # Shown before the count of deletions lines (stats sections).
174
- clean: ✔ # Shown when the working tree is clean (empty staging area)
164
+ branch: "⎇ " # current branch name.
165
+ hashprefix: ":" # Git SHA1 hash (in 'detached' state).
166
+ ahead: ↑· # 'ahead count' when local and remote branch diverged.
167
+ behind: ↓· # 'behind count' when local and remote branch diverged.
168
+ staged: "● " # count of files in the staging area.
169
+ conflict: "✖ " # count of files in conflicts.
170
+ modified: "✚ " # count of modified files.
171
+ untracked: "… " # count of untracked files.
172
+ stashed: "⚑ " # count of stash entries.
173
+ insertions: Σ # count of inserted lines (stats section ).
174
+ deletions: Δ # count of deleted lines (stats section).
175
+ clean: ✔ # Shown when the working tree is clean.
175
176
` ` `
176
177
177
178
178
179
# ## Styles
179
180
180
- Styles are tmux format strings used to specify text colors and attributes.
181
- See [`tmux` styles reference](https://man7.org/linux/man-pages/man1/tmux.1.html#STYLES).
181
+ Styles are tmux format strings used to specify text colors and attributes of Git
182
+ status elements.
183
+ See the [`STYLES` section](https://man7.org/linux/man-pages/man1/tmux.1.html#STYLES) of `tmux` man page.
182
184
183
185
` ` ` yaml
184
186
styles:
185
- clear: '#[fg=default]' # Style clearing previous styles (printed before each component)
186
- state: '#[fg=red,bold]' # Style of the special states strings like [rebase], [merge], etc.
187
- branch: '#[fg=white,bold]' # Style of the local branch name
188
- remote: '#[fg=cyan]' # Style of the remote branch name
189
- divergence: "#[fg=yellow]" # Style of the 'divergence' string
190
- staged: '#[fg=green,bold]' # Style of the 'staged' files count
191
- conflict: '#[fg=red,bold]' # Style of the 'conflicts' count
192
- modified: '#[fg=red,bold]' # Style of the 'modified' files count
193
- untracked: '#[fg=magenta,bold]' # Style of the 'modified' files count
194
- stashed: '#[fg=cyan,bold]' # Style of the 'stash' entries count
195
- insertions: '#[fg=green]' # Style of the 'inserted lines ' count
196
- deletions: '#[fg=red]' # Style of the 'deleted lines ' count
197
- clean: '#[fg=green,bold]' # Style of the 'clean' symbol
187
+ clear: '#[fg=default]' # Clear previous style.
188
+ state: '#[fg=red,bold]' # Special tree state strings such as [rebase], [merge], etc.
189
+ branch: '#[fg=white,bold]' # Local branch name
190
+ remote: '#[fg=cyan]' # Remote branch name
191
+ divergence: "#[fg=yellow]" # 'divergence' counts
192
+ staged: '#[fg=green,bold]' # 'staged' count
193
+ conflict: '#[fg=red,bold]' # 'conflicts' count
194
+ modified: '#[fg=red,bold]' # 'modified' count
195
+ untracked: '#[fg=magenta,bold]' # 'untracked' count
196
+ stashed: '#[fg=cyan,bold]' # 'stash' count
197
+ insertions: '#[fg=green]' # 'insertions ' count
198
+ deletions: '#[fg=red]' # 'deletions ' count
199
+ clean: '#[fg=green,bold]' # 'clean' symbol
198
200
` ` `
199
201
200
202
# ## Layout components
201
203
202
- The layout is a list of the components `gitmux` shows, and the order in
203
- which they appear on `tmux` status bar.
204
+ The `layout` section defines what components `gitmux` shows and the order in which
205
+ they appear on `tmux` status bar.
206
+
204
207
205
208
For example, the default `gitmux` layout shows is :
206
209
@@ -223,18 +226,17 @@ the remote branch, etc.
223
226
But you can anyway choose to never show some components if you wish, or to present
224
227
them in a different order.
225
228
226
- This is the list of the possible components of the `layout` :
229
+ This is the list of the possible keywords for `layout` :
227
230
228
- | Layout component | Description | Example |
231
+ | Layout keywords | Description | Example |
229
232
| :-------------- : | :------------------------------------------------- | :------------------: |
230
233
| `branch` | local branch name | `main` |
231
234
| `remote-branch` | remote branch name | `origin/main` |
232
235
| `divergence` | divergence local/remote branch, if any | `↓·2↑·1` |
233
236
| `remote` | alias for `remote-branch` followed by `divergence` | `origin/main ↓·2↑·1` |
234
237
| `flags` | Symbols representing the working tree state | `✚ 1 ⚑ 1 … 2` |
235
- | `stats` | Insertions/deletions (lines). Disabled by deafult | `Σ56 Δ21` |
236
- | any string `foo` | Any other string is directly shown | `foo` |
237
-
238
+ | `stats` | Insertions/deletions (lines). Disabled by default | `Σ56 Δ21` |
239
+ | any string `foo` | Non-keywords are shown as-is | `hello gitmux` |
238
240
239
241
240
242
Some example layouts :
0 commit comments