[feat] Change stuff around for nushell and neovim

This commit is contained in:
Uttarayan
2024-01-19 16:52:49 +05:30
parent 14178b59d9
commit d2590b1e56
7 changed files with 26 additions and 39 deletions

View File

@@ -28,14 +28,14 @@ def --env __zoxide_z [...rest:string] {
let path = if (($rest | length) <= 1) and ($arg0 == '-' or ($arg0 | path expand | path type) == dir) {
$arg0
} else {
(zoxide query --exclude $env.PWD -- $rest | str trim -r -c "\n")
(zoxide query --exclude $env.PWD -- ...$rest | str trim -r -c "\n")
}
cd $path
}
# Jump to a directory using interactive search.
def --env __zoxide_zi [...rest:string] {
cd $'(zoxide query --interactive -- $rest | str trim -r -c "\n")'
cd $'(zoxide query --interactive -- ...$rest | str trim -r -c "\n")'
}
# =============================================================================

View File

@@ -7,7 +7,7 @@ let fish_completer = {|spans|
}
let carapace_completer = {|spans: list<string>|
carapace $spans.0 nushell $spans
carapace $spans.0 nushell ...$spans
| from json
| if ($in | default [] | where value =~ '^-.*ERR$' | is-empty) { $in } else { null }
}