diff options
| author | Lucas Trzesniewski <lucas.trzesniewski@gmail.com> | 2026-02-12 01:06:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-11 16:06:11 -0800 |
| commit | 6076b6b36bf1faffee41e958acdfc0a00bf3ecc3 (patch) | |
| tree | ae9c3e4458aabbfb09872d30488a4162a4e05ad4 /docs/mkdocs.yml | |
| parent | chore: update changelog (diff) | |
| download | atuin-6076b6b36bf1faffee41e958acdfc0a00bf3ecc3.zip | |
feat: `switch-context` (#3149)
This PR lets you change the current search context to the one of the
currently selected command, which lets you easily see the surrounding
commands of its session.
It adds the following:
- `switch-context` and `clear-context` actions
- A `has-context` condition
- `CTX:` and `C>` prefixes to show we're in another context
The `switch-context` behavior is as follows:
- The selected command defines the new context
- The filter mode is automatically switched to SESSION
- The search input is cleared, which gives you a full overview of the
other commands executed in the same session
- The command which triggered this mode keeps being selected to get a
clear overview
- The filter mode can be changed to modes such as DIRECTORY, but not to
GLOBAL or SESSION+ as IMO those would be confusing in this mode
This lets you easily navigate between modes and commands the way you
prefer, for instance by switching the context through selected commands
or switching back to the default mode with the same key.
This could certainly still be improved (the docs are missing for
instance), and if you have any feedback I can change the behavior as you
see fit. I can add the docs when you'll approve the new names.
Closes #2784
## Checks
- [x] I am happy for maintainers to push small adjustments to this PR,
to speed up the review cycle
- [x] I have checked that there are no existing pull requests for the
same thing
---------
Co-authored-by: Ellie Huxtable <ellie@elliehuxtable.com>
Diffstat (limited to '')
| -rw-r--r-- | docs/mkdocs.yml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index 1cbbf30d..4ca51c60 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -63,6 +63,7 @@ nav: - Setting up sync: guide/sync.md - Import existing history: guide/import.md - Basic usage: guide/basic-usage.md + - Advanced usage: guide/advanced-usage.md - Deleting history: guide/delete-history.md - Syncing dotfiles: guide/dotfiles.md - Theming: guide/theming.md |
