Giter Club home page Giter Club logo

Comments (8)

kislyuk avatar kislyuk commented on July 1, 2024

To be honest, I don't recall the exact reason why I started using nospace and whether it still holds. I'll need to play around with it and see if anything breaks...

from argcomplete.

redstreet avatar redstreet commented on July 1, 2024

Sorry about the multiple commits. I'm new to git and github. But what I submitted seems to work fine under both bash and zsh. The bash version I used is 4.2.37 (also listed in the log for f6c89aa).

Thanks for looking in to this!

from argcomplete.

kislyuk avatar kislyuk commented on July 1, 2024

See #55, thanks

from argcomplete.

kislyuk avatar kislyuk commented on July 1, 2024

As mentioned in #82, removing -o nospace interferes with the ability to return singleton completions that may be partial (e.g. a directory name followed by a slash, which the user might choose to use as is or expand to the directory's contents). Re-titling the bug to concern zsh specifically.

from argcomplete.

evanunderscore avatar evanunderscore commented on July 1, 2024

Does it make sense to have "singleton completions that may be partial"? In the case of a directory name followed by a slash, should you not also return the contents of that directory? For example, if you return dir/ and expect the user could use something in that directory, why not also return dir/subdir/, dir/file, etc?

from argcomplete.

kislyuk avatar kislyuk commented on July 1, 2024

Yes, it does. Try completing a path of several directories in bash. Even if there is a unique completion, each <TAB> will yield just one directory completion at a time. That's an intentional UX design, and I'd like to conform to it.

from argcomplete.

kislyuk avatar kislyuk commented on July 1, 2024

More generally, we can't reasonably return all completions in a tree hierarchy.

from argcomplete.

evanunderscore avatar evanunderscore commented on July 1, 2024

What I had assumed was happening is that when a directory would be returned as the only match, it also returned the contents of that directory, eg dir/ and dir/subdir (but not dir/subdir/file or any deeper in the hierarchy), which would cause dir/ to be filled in as the common prefix. However you are correct - even when show-all-if-ambiguous is turned on, bash will not display the contents of a directory until tab is pushed a second time.

from argcomplete.

Related Issues (20)

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.