Comments (12)
Sorry for late response and I got it.
I'll investigate it and fix soon! Please wait a sec
from enhancd.
Did you install fzf? and did you specify export ENHANCD_FILTER=fzf
in your rc file?
from enhancd.
Yes I have fzf installed. No I haven't specify ENHANCD_FILTER
variable cause I noticed that it is set by default to fzy:fzf-tmux:fzf:peco:percol:gof:pick:icepick:sentaku:selecta
.
Like I said it works when:
cd <enter>
But doesn't work when:
cd <tab>
@b4b4r07 Could you point me into some direction how can I change this behavior, so the completion will be listed on key, like it works in https://github.com/changyuheng/zsh-interactive-cd ?
from enhancd.
This has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
from enhancd.
Sorry for late response and I got it.
I'll investigate it and fix soon! Please wait a sec
I finally understood your motivation and what you wanted to say!
I tried to use https://github.com/changyuheng/zsh-interactive-cd and I found its feature but enhancd doesn't have that feature. So,
So I noticed that it works when I press enter after typing cd, is this a desired behavior? Is there an option to change the action it to key?
I can answer this with yes for now.
@b4b4r07 Could you point me into some direction how can I change this behavior, so the completion will be listed on key, like it works in https://github.com/changyuheng/zsh-interactive-cd ?
But I can also answer with yes by implementing this feature. I'm interested in this feature, so I'll implement this soon. Please wait for a while!
from enhancd.
@b4b4r07 Great, thanks!
from enhancd.
Done. Please try it and give me feedbacks! Thank you.
from enhancd.
Hi @b4b4r07, I tried the latest version and it doesn't work as expected. Maybe we misunderstood each other ;)
But I know now how to show you more precisely what I have in mind.
If you change L136 in completion.zsh
from
__enhancd::completion::complete ${tokens[2,${#tokens}]/#\~/$HOME}
to
__enhancd::sources::argument
you will have almost the behavior I want. The issue with that is that when you hit enter after such completion the enhancd
will fire again.
from enhancd.
Ah, I forgot to mention how to enable this feature...
You need to set this before typing Tab key in your command line:
$ export ENHANCD_COMPLETION_BEHAVIOR=history
It defaults to default
. It's previous behavior. If you want to use zsh-interactive-cd's one, please set it to history
!
Is my understanding correct?
from enhancd.
I like the behavior when setting ENHANCD_COMPLETION_BEHAVIOR=history
. Thanks!
The problem I'm running in to is with the zsh-auto-suggestions package, which I also really like.
Unfortunately, with the "history" completion behavior, the interactively-selected directory just gets inserted on the command line.
In other words, I type cd
, and thanks to zsh-auto-suggestions, I see:
cd /usr/local/bin
(where "/usr/local/bin" is in light gray, as a suggestion, based on my history). At this point, I could press Ctrl-E
to jump to the end and execute that command, if that's what I wanted.
But... if I press tab
at this point to see a list of recent directories, and select, say, /home
(via fzy
), I end up with:
cd /home//usr/local/bin
and the suggestion portion has become part of the command.
Any idea how to avoid this behavior?
from enhancd.
For me it only looks like it is going to be appended to command but if you execute this cd command you will see that it worked as supposed (the appended path through auto-completion doesn't affect the command) at least for me. Although it would be great if hadn't been appended at the first place :)
from enhancd.
Thank you for using this app! I’m glad to hear that.
About your comment, I’m not sure how to avoid it now... Now I haven’t used zsh-auto-suggestions app. So I cannot say about it.. Anyway I’ll use it and then gonna reproduce your problem when I have time. Please let us know when you find some solutions or something. Thanks
from enhancd.
Related Issues (20)
- cd .. fails to switch to parent folder when parent folder contains non-alphanumerics like "+" character HOT 1
- Fish cd to non-existent directory changes current working directory to $HOME HOT 3
- Allow for hooking into enhancd HOT 1
- Changing ENHANCD_COMMAND overwrites ENHANCD_DOT_ARG and ENHANCD_HYPHEN_ARG HOT 2
- fish shell pipe to cd fix HOT 2
- How to disable when I run `cd -` HOT 1
- native cd completion HOT 9
- Gnu awk (gawk) related errors are printed on invocation HOT 3
- Getting error after last update HOT 8
- command not found: compdef HOT 1
- tab completion not working HOT 9
- Going to existing directory is still showing the filter HOT 11
- How to use fd HOT 6
- Strange output "No such file or directory" HOT 6
- Command not found: fd on Ubuntu HOT 1
- How to install in win10 windows terminal in git bash (git for windows)?
- cd 'single dot' returns nothing when `ENHANCD_USE_ABBREV` is enabled
- How do I uninstall?
- Error while entering a directory from a directory with spaces on the name HOT 1
- alias cat="bat --color='always'" breaks output
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 enhancd.