mrjohannchang / zsh-interactive-cd Goto Github PK
View Code? Open in Web Editor NEWFish like interactive tab completion for cd in zsh
License: Mozilla Public License 2.0
Fish like interactive tab completion for cd in zsh
License: Mozilla Public License 2.0
May I ask how to make the demo GIF. it helps me a lot.
Would it be possible for the menu to pop up as soon as you wrote "cd "
? And then stay until the whole path is completed. Each time you press the next popup appears. If you press backspace the prompt disappears and you can delete the path as normal.
for example, if I have an alias cl:
alias cl='cd $@; ls -a'
how can I apply the same functionality to 'cl', i.e. fzf pops up when pressing after $ cl?
Apologies for asking such a simple question, but how do I get this working? I have cloned your repo into my dotfiles folder, and have sourced the file, but this does not work. Am I doing something wrong?
When running on MacOS, the sed commands fail with:
sed: illegal option -- -
usage: sed script [-Ealnru] [-i extension] [file ...]
I believe this is because MacOS ships with BSD sed and this assumes GNU sed.
I fixed this by installing gnu-sed and setting up PATH so that sed
resolves to GNU sed, but I guess it'd be nice to have this code handle BSD sed properly, perhaps by sticking to just the subset of the interface that is common across all of POSIX, or at least detect the problem and issue a nice error message.
Details on some of the differences:
https://unix.stackexchange.com/questions/13711/differences-between-sed-on-mac-osx-and-other-standard-sed
Thanks a lot for this code!
Typing cd -
and pressing Tab
lists all paths you went in the current shell, which is very useful to jump back last used folders. It seems interactive-cd breaks it.
I have some abbreviations for some directories that I create with hash -d ( e.g. hash -d downloads=/the/path/to/downloads). It would be nice if the interactive cd would also work with these. E.g. cd ~downloads/[TAB] should list the things in that directory.
If I am exploring a new directory for the first time, or I am looking for some sort of completion for both dot- and non-dot-files, I expect there to be some sort of functionality that allows me to search for both. I am not extremely familiar with globbing in zsh, but it might have something to do with that (?). I just find it odd that cd
tab doesn't complete all files; rather, it only completes either non-"hidden" files or "hidden" files.
Even cd (D)
doesn't work (zsh "D" globbing qualifier) ... although I suppose that there could be a file named \(D\)
.
It would be nice to be able to press ctrl+
h and get hidden files (either mixed with all results or maybe even just toggle from non-hidden to hidden and vice versa).
Thanks for cool fzf plugin though!
dylnmc
Hi tehre, I have installed fzf thru arch and I am using Oh my zsh with zplug.
any suggestion on how to go about this.
It'd be awesome if this also worked when setopt autocd
was turned on, tab completing on just the directories themselves with no preceding cd
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.