diff options
author | Christoph Jabs <98587286+chrjabs@users.noreply.github.com> | 2024-04-03 21:28:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-03 14:28:18 -0400 |
commit | d9496689e29d9aaa1d55ec9ca822d36ef895381d (patch) | |
tree | 1b91ab964a2c171176c1d4aacedaf4ec7a05638a /src/config/clean/app | |
parent | 2392951815447d2f1252fbd6ea7df23542c419cc (diff) |
Zoxide related features (#506)
* make `:z` act more like zoxide
before checking the zoxide database, check if the query is a directory
that can be navigated to as by `:cd`
also interpret `~` and `-` correctly
* optionally track all movement in zoxide
Add new config option `zoxide_update` with default false. When manually
enabled, all directory navigation (via manually navigating or `:cd` and
`:z`) will update the `zoxide` database.
Since navigation via `:z` always updates the database, ensure that it
doesn't update it twice.
* support arguments for zoxide interactive
support for `:zi <args>` where arguments are used to prefilter the
matches provided in the interactive zoxide prompt
* allow command aliases with arguments
note: only aliases that do not contain spaces can be used with arguments
since either the entire command or only the first word are checked
against the aliases
Diffstat (limited to 'src/config/clean/app')
-rw-r--r-- | src/config/clean/app/config.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config/clean/app/config.rs b/src/config/clean/app/config.rs index 3d0be5a..740430a 100644 --- a/src/config/clean/app/config.rs +++ b/src/config/clean/app/config.rs @@ -24,6 +24,7 @@ pub struct AppConfig { pub focus_on_create: bool, pub mouse_support: bool, pub cmd_aliases: HashMap<String, String>, + pub zoxide_update: bool, pub _display_options: DisplayOption, pub _preview_options: PreviewOption, pub _search_options: SearchOption, @@ -90,6 +91,7 @@ impl From<AppConfigRaw> for AppConfig { cmd_aliases: raw.cmd_aliases, focus_on_create: raw.focus_on_create, mouse_support: raw.mouse_support, + zoxide_update: raw.zoxide_update, _display_options: DisplayOption::from(raw.display_options), _preview_options: PreviewOption::from(raw.preview_options), _search_options: SearchOption::from(raw.search_options), |