All Questions
Tagged with auto-complete or autocomplete
871 questions
14
votes
1
answer
639
views
How is bash autocompletion for Inkscape tied to dbus and how can I stop it?
Recently i noticed that when i try to "tab-tab" complete a filename for some gtk applications (i do not use gnome) i get dbus errors. for example:
$ inkscape pu (tab-tab, to complete the ...
1
vote
1
answer
86
views
Why doesn’t zsh autocomplete .java source files when using java MyFile.java?
Since Java 10 as I recall, we can run Java source files directly from the command line:
bash
$ java Math.java
The JVM compiles and executes the file automatically.
However, in zsh, tab autocompletion ...
-4
votes
2
answers
174
views
Why is arch linux bash better than Ubuntu bash?
Both of them use bash, but the one used on arch linux has way better auto-completion. But why is that? Both of them claim to use normal Bash, so how can that be true?
I forgot to clarify that what I ...
2
votes
1
answer
249
views
Debian: bash-completion does not work with "sudo bash" and "su"
After installing bash-completion on Debian testing (nearly Debian 13), completion works without any additional configuration in my normal user account. This is because of /etc/profile.d/...
1
vote
0
answers
51
views
Disable command+filename completion in bash readline
I'm trying to use "read -e" to implement a user prompt with custom commands. For this I must disable the default command+filename completion. I tried this:
complete -W 'cmd1 cmd2 cmd3' -D
...
1
vote
0
answers
29
views
Display all commands matching a glob [duplicate]
How can I get Bash to list the first (or all) commands that match a given glob?
For example, let's say I'm looking for a command called cat. I can do
type cat
and it will search $PATH and tell me ...
4
votes
1
answer
208
views
Change zsh autocompletion for rsync version 3.2.4 and newer
rsync changed how it escapes arguments in version 3.2.4 (released 15 Apr 2022), and zsh doesn't comply with the new behaviour. For example, if I have a file named "my test file.txt", ...
0
votes
1
answer
64
views
No space after option with bash completion
I'm trying to filter bash-completion suggestions. Here awf-gtk2 -s abc.png [TAB] display -h --help -s --screenshot (it's ridiculous) / and awf-gtk2 -s[TAB] add a space after -s (perfect), with:
...
0
votes
1
answer
35
views
create a completion function for tmux-manager
Here is my script:
#!/usr/bin/env bash
kill-all-sessions() {
tmux kill-server
}
kill-other-sessions() {
tmux kill-session -a
}
kill-unattached-sessions() {
tmux list-sessions -F '#{...
4
votes
1
answer
475
views
Why does tab autocomplete sometimes not work?
In bash (Ubuntu 24.10, but I guess this would apply to other versions/distributions) when you type in a console a command you can use TAB to autocomplete the filenames of the current directory. ...
1
vote
1
answer
136
views
How can I make Zsh autocomplete in the middle of a word (like Bash)?
In Bash, when I press in the middle of a word, it suggests completions based on the text up to the cursor, and if I select one, it replaces the current word rather than appending to it or leaving any ...
1
vote
1
answer
108
views
What is the use case of the `compadd -Q` flag in zsh completions?
When making a custom zsh completion, the compadd function has the -Q option.
The zsh documentation describes the -Q option as follows:
-Q This flag instructs the completion code not to quote any ...
2
votes
1
answer
124
views
Vanilla tab behaviour with zsh-autocomplete
I’m using zsh-autocomplete (https://github.com/marlonrichert/zsh-autocomplete) and trying to keep my Tab completion “vanilla” (i.e., expand-or-complete instead of selecting the top suggestion). ...
1
vote
2
answers
287
views
How to get a file quicker in TAB:menu-complete binding?
In bash, when binding TAB with menu-complete, I can cycle through the current files in the lexicographical or alphabetic order.
What if the file that I want is the last file in the order? How can I ...
1
vote
0
answers
34
views
zsh - autocomplete with braces in the middle of a directory
Suppose I have the following directory structure:
folder/
aaa/
f.txt
bbb/
f.txt
I want to compare the file f.txt as it is common to both directories. So in zsh I type this:
% diff folder/{...