Comments (3)
Damn, fixed before I'd hit brew update this morning 😆
Gonna close this then as it's all in hand
from zoxide.
So I ran into this issue this morning as well, I think I have something that works but it's ugly:
# Jump to a directory using only keywords.
def --env __zoxide_z [...rest:string] {
let arg0 = ($rest | append '~').0
# Expand the path first
let arg_path = ($arg0 | path expand)
# First check if the path exists before checking it's a directory
let path = if (($rest | length) <= 1) and ($arg0 == '-' or (($arg_path | path exists) and ($arg_path | path type) == dir)) {
$arg0
} else {
(zoxide query --exclude $env.PWD -- ...$rest | str trim -r -c "\n")
}
cd $path
}
from zoxide.
Looks like there's already a fix in place.
from zoxide.
Related Issues (20)
- `zi` doesn't work HOT 2
- `zoxide` does not work HOT 3
- no match found HOT 3
- Easier flow for bumping path to be top result for query
- Add support for bash autocd option HOT 1
- Support regexp HOT 1
- Ability to disable cd-like behavior HOT 3
- Folder Alias not properly supported on macOS HOT 1
- Using --cmd cd in Fish Shell does not work HOT 4
- `zoxide edit` broken with `fzf` >=0.54 and `-1, --select-1` HOT 1
- Symlinks unable to resolve HOT 1
- [Feature Request] Confirmation for changing location, when file with same name is found
- [BUG] zoxide no match found loop HOT 1
- [Feature Request] navigation only within git repo (or other configured "project" tree)
- zoxide can't access it's datase (when exportet to server) HOT 1
- eval "$(zoxide init bash)" breaks command history in prompt HOT 2
- doesn't see correct directory when inside symlink directory
- Add configurable location to "go home" to HOT 1
- Doesn't match parent directories HOT 5
- Z alias conflict with Zypper on OpenSuse HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zoxide.