Giter Club home page Giter Club logo

zsh-interactive-cd's Introduction

zsh-interactive-cd

Demo

demo

Installation

  1. Install fzf by following its installation instruction.

  2. Source zsh-interactive-cd.plugin.zsh in .zshrc.

Fig

Install zsh-interactive-cd with Fig in just one click.

Usage

Press tab for completion as usual, it'll launch fzf automatically. Check fzf’s readme for more search syntax usage.

zsh-interactive-cd's People

Contributors

brendanfalk avatar doronbehar avatar jrwrigh avatar maneren avatar mike182uk avatar mrjohannchang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

zsh-interactive-cd's Issues

.* and *

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

newest version not used my oh-my-zsh

oh-my-zsh plugin using commit 01bfb57
[on Feb 26, 2020]

newest PR to master merged 7bbe02e
[on Apr 26, 2021]

[01bfb57] [on Feb 26, 2020] doesn't support case-insensitive option (and maybe something else?)

I'm not sure if this is a oh-my-zsh issue or can be resolved here?

Work with autocd ?

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.

An option so that you do not have to press <tab> (ever)

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.

would be nice if it works with hashed directories

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.

newb question

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?

doesn't work with BSD sed (assumes GNU sed)

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!

interactive-cd conflicts with cd -<tab>

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.