Comments (4)
I've added a --list
option to zoxide query
in 89da276, which will print out matching directories in order of their scores. Could you explain your use case for printing out the scores too?
Regarding fzf options, zoxide deliberately uses almost no options to allow the user to customize fzf to their liking. I've added an environment variable $_ZO_FZF_OPTS
in 12e9eab to ease this process.
Automatically cd-ing to the directory if there is only one match can be done by adding the --select-1
flag to $_ZO_FZF_OPTS
.
from zoxide.
You're right, I missed this.
Everything works as expected, thanks for this tool.
from zoxide.
I tried the next
branch and everything is working as expected for me, I am using the command zoxide query -l
.
Also I did not have any use case using scores, sorry for misunderstanding.
I have tried the _ZO_FZF_OPTS
export adding --select-1
and it seems it overrides the flag FZF_DEFAULT_OPTS
, do you think it's useful to merge/concatenate both of them if FZF_DEFAULT_OPTS
is already defined.
On my side, I will be using zoxide query -l | fzf -1 -0 +m
which works great !
Thanks !
from zoxide.
_ZO_FZF_OPTS
intentionally overrides FZF_DEFAULT_OPTS
when set to allow users to completely reset their default fzf options for zoxide if desired. However, it's easy enough to add them back:
export _ZO_FZF_OPTS="$_FZF_DEFAULT_OPTS --select-1"
Hope that helps!
from zoxide.
Related Issues (20)
- WSL installation error: linker `cc` not found HOT 2
- need `z -b` HOT 3
- __zoxide_cd bug HOT 2
- Interactive completions does not work HOT 1
- Manual command to prune the database HOT 3
- Need to source bashrc everytime open in WSL HOT 3
- Can't nevigate to D:\ Drive
- RFE: support a variant of `_ZO_ECHO` that only echoes if zoxide logic kicked in HOT 1
- zoxide completion on "second cd argument" breaks Zsh autocomplete HOT 3
- Ideas on possibly improving matching HOT 1
- zi/cdi not working on zsh HOT 1
- Add support for kornshell HOT 7
- Conflict between zoxide, zsh-autocomplete, and fzf results in erroneous behavior HOT 2
- Support the `--` command-line argument HOT 6
- Interactive mode (space + tab) doesn't appear to be working on macOS HOT 5
- Interactive expansion doesn't work as expected when it matches a single entry then echos command 3 times HOT 6
- How can I change the shortcuts in zi?
- zoxide: no match found on startup HOT 11
- Possible to get a list of previous dirs by time?
- feasibility integrate with vscode cli(`code`) HOT 3
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.