Merge branch 'main' of github.com:ajeetdsouza/zoxide into nushell
This commit is contained in:
commit
5bc8dc8112
|
|
@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- Retain ownership of database file.
|
||||
- Elvish: upgrade to new try-catch syntax, upgrade minimum supported version to
|
||||
v0.18.0.
|
||||
- `zoxide query --interactive` should not conflict with `--score`.
|
||||
|
||||
## [0.8.0] - 2021-12-25
|
||||
|
||||
|
|
|
|||
|
|
@ -68,8 +68,8 @@ _arguments "${_arguments_options[@]}" \
|
|||
'(-l --list)--interactive[Use interactive selection]' \
|
||||
'(-i --interactive)-l[List all matching directories]' \
|
||||
'(-i --interactive)--list[List all matching directories]' \
|
||||
'(-i --interactive)-s[Print score with results]' \
|
||||
'(-i --interactive)--score[Print score with results]' \
|
||||
'-s[Print score with results]' \
|
||||
'--score[Print score with results]' \
|
||||
'-h[Print help information]' \
|
||||
'--help[Print help information]' \
|
||||
'-V[Print version information]' \
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ pub struct Query {
|
|||
pub list: bool,
|
||||
|
||||
/// Print score with results
|
||||
#[clap(long, short, conflicts_with = "interactive")]
|
||||
#[clap(long, short)]
|
||||
pub score: bool,
|
||||
|
||||
/// Exclude a path from results
|
||||
|
|
|
|||
|
|
@ -101,20 +101,18 @@ end
|
|||
{%- match cmd %}
|
||||
{%- when Some with (cmd) %}
|
||||
|
||||
# Remove definitions.
|
||||
function __zoxide_unset
|
||||
set --erase $argv >/dev/null 2>&1
|
||||
abbr --erase $argv >/dev/null 2>&1
|
||||
builtin functions --erase $argv >/dev/null 2>&1
|
||||
function {{cmd}}
|
||||
__zoxide_z $argv
|
||||
end
|
||||
|
||||
__zoxide_unset {{cmd}}
|
||||
alias {{cmd}}=__zoxide_z
|
||||
abbr --erase {{cmd}}
|
||||
complete -c {{cmd}} -e
|
||||
complete -c {{cmd}} -f -a '(__zoxide_z_complete)'
|
||||
|
||||
__zoxide_unset {{cmd}}i
|
||||
alias {{cmd}}i=__zoxide_zi
|
||||
function {{cmd}}i
|
||||
__zoxide_zi $argv
|
||||
end
|
||||
abbr --erase {{cmd}}i
|
||||
complete -c {{cmd}}i -e
|
||||
|
||||
{%- when None %}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue