Comments (4)
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.
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.
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.
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)
- fish_history corrupted with NUL bytes HOT 1
- Oh, I have to pass the argument with quotes, I see. But this one is not working for me HOT 1
- fish_variables has too large size make fish has a significant delays during startup HOT 1
- Different descriptions of Universal variables in the documentation HOT 1
- Transient prompt doesn't work on recent git master builds
- Terminal protocols spew a *lot* of output
- Android install tutorial in README.md HOT 1
- Alias escaping HOT 1
- Feat: In commands such as `edit_command_buffer` set an environment variable to let the editor config setup custom behaviour HOT 3
- Paging command output as if it was written to a terminal HOT 2
- fish became slow because checking two tools HOT 9
- Not able to `ctrl+c` out of `fzf`
- fish hangs in futex() during start in VS Codeβs integrated terminal HOT 8
- Flatpak completions include the author of the application preceded by a bunch of spaces HOT 6
- completions/git: Handle git restore for unmerged file better
- Confusing "highlighting" when path argument contains >1 `**` HOT 6
- Variable scope-local to for loop gets carried over loop iteration
- Any hook of pre-execution or post-execution for commands? HOT 1
- Wildcard expansion blocks normal completion
- Prompt is arbitrarily(?) redrawn while typing HOT 4
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 fish-shell.