Giter Site home page Giter Site logo

Comments (4)

faho avatar faho commented on June 16, 2024

Yes. completion applies to completions.

The documentation does not conflate completions and suggestions. It takes great pains to discern them and only ever talk about suggestions as suggestions.

I'm afraid I'm chalking this up to a simple misreading.

from fish-shell.

lolbinarycat avatar lolbinarycat commented on June 16, 2024

the complete command does affect suggestions though. if you just pass complete -c foo --no-files, the foo command will no long get file suggestions.

is that behavior not intended?

from fish-shell.

faho avatar faho commented on June 16, 2024

That is the sole way completions affect suggestions.

The suggestions don't run any other code, they just load the completion script to try to see if files are allowed, but after that it's done.

The way suggestions work is that they suggest our one best guess for what might be useful. If it is that's cool and you can pick it, if it isn't just type out what you meant to.

from fish-shell.

lolbinarycat avatar lolbinarycat commented on June 16, 2024

The suggestions don't run any other code, they just load the completion script to try to see if files are allowed, but after that it's done.

yes, my testing revealed as much, and that is exactly the behavior i want documented.

the only relevant line i could find in the docs was this:

It knows about paths and options

if this was documented, it could be used to write higher quality completion scripts

from fish-shell.

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.