summaryrefslogtreecommitdiffstats
path: root/docs/config/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/config/README.md')
-rw-r--r--docs/config/README.md29
1 files changed, 15 insertions, 14 deletions
diff --git a/docs/config/README.md b/docs/config/README.md
index f8b27bfd1..1fc4968fe 100644
--- a/docs/config/README.md
+++ b/docs/config/README.md
@@ -2643,26 +2643,27 @@ style = 'bold dimmed green'
## Mercurial Branch
-The `hg_branch` module shows the active branch of the repo in your current directory.
+The `hg_branch` module shows the active branch and topic of the repo in your current directory.
### Options
-| Option | Default | Description |
-| ------------------- | -------------------------------- | -------------------------------------------------------------------------------------------- |
-| `symbol` | `' '` | The symbol used before the hg bookmark or branch name of the repo in your current directory. |
-| `style` | `'bold purple'` | The style for the module. |
-| `format` | `'on [$symbol$branch]($style) '` | The format for the module. |
-| `truncation_length` | `2^63 - 1` | Truncates the hg branch name to `N` graphemes |
-| `truncation_symbol` | `'…'` | The symbol used to indicate a branch name was truncated. |
-| `disabled` | `true` | Disables the `hg_branch` module. |
+| Option | Default | Description |
+| ------------------- | ----------------------------------------- | -------------------------------------------------------------------------------------------- |
+| `symbol` | `' '` | The symbol used before the hg bookmark or branch name of the repo in your current directory. |
+| `style` | `'bold purple'` | The style for the module. |
+| `format` | `'on [$symbol$branch(:$topic)]($style) '` | The format for the module. |
+| `truncation_length` | `2^63 - 1` | Truncates the hg branch / topic name to `N` graphemes |
+| `truncation_symbol` | `'…'` | The symbol used to indicate a branch name was truncated. |
+| `disabled` | `true` | Disables the `hg_branch` module. |
### Variables
-| Variable | Example | Description |
-| -------- | -------- | ------------------------------------ |
-| branch | `master` | The active mercurial branch |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variable | Example | Description |
+| -------- | --------- | ------------------------------------ |
+| branch | `master` | The active mercurial branch |
+| topic | `feature` | The active mercurial topic |
+| symbol | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string