Comments (8)
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.
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.
See #55, thanks
from argcomplete.
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.
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.
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.
More generally, we can't reasonably return all completions in a tree hierarchy.
from argcomplete.
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)
- Test failures with Python 3.12.0b2 HOT 1
- How can I suppress unnecessary variables outside of my program? HOT 1
- Typing support HOT 1
- Global completion without bash defaults HOT 1
- zsh test failures on Fedora HOT 12
- Document ephemeral vs. permanent completion activation HOT 13
- zsh: Extra space is added during hierarchy completion (directory or custom) HOT 2
- zsh: external-argcomplete-script does not work on register-python-argcomplete HOT 2
- Messes with default zsh completion for redirects. HOT 4
- Generate zsh completion functions HOT 2
- zsh does behave weird if choice contains colon HOT 2
- `argcomplete` adds entries to `.bash_completion`, even when action is abandoned HOT 1
- installing zsh globally adds paths to completion options introduced in v3.1.4 HOT 1
- Contributing guidelines for argcomplete? HOT 2
- How do I exclude files in the users directory from the tab completion? HOT 2
- Unable to get completion to work for NetExec HOT 2
- zsh: completion fails with script path starting with '~/' HOT 1
- 3.2.2: pytest is failing HOT 1
- Output of `argcomplete.warn` does not show HOT 4
- Generating lazy completion scripts for Bash/Zsh HOT 1
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 argcomplete.