Questions tagged [autocomplete]
A feature provided by interactive programs such as shells and text editors that inserts text to complete a word or phrase that the user is likely intending to compose.
866 questions
0votes
1answer
33views
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: ...
0votes
1answer
15views
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 '#{...
3votes
1answer
105views
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. ...
1vote
1answer
35views
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 ...
1vote
1answer
48views
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 ...
2votes
1answer
32views
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). ...
1vote
2answers
266views
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 ...
1vote
0answers
22views
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/{...
0votes
0answers
32views
zsh: conda environment name auto-completion not working even after installing conda-zsh-completion
I'm trying to set up auto-completion for conda environment names in zsh on WSL. I've followed these steps: Cloned conda-zsh-completion: mkdir -p ~/zsh-plugins cd ~/zsh-plugins git clone https://...
0votes
0answers
23views
bash-completion doesn't work in Mignight Commander shell
Normal Ubuntu 22.04 install, bash-completion is installed and works in a normal shell. For example, if I type "docker " and press TAB, it will show a list of Docker subcommands. If I now ...
1vote
1answer
53views
Zsh’s autocompletion options from variable
General overview I have to set a values auto-completion in zsh for a command (in the following minimal example, I will show it with testcmd). So my current code work quiet well with hardcoded values: ...
4votes
0answers
109views
Is it possible to tab complete by whole word in Bash
Suppose I have filenames as follows on my Linux system: $ ls -1 file-index-00012.txt file-index-00345.txt question.txt I start typing, where "|" represents the cursor: $ cat fil| If I ...
1vote
0answers
30views
How to make zsh's ssh autocompletion complete "Host" instead of "Hostname" [duplicate]
With the following entry in ~/.ssh/config: Host server Hostname server.example.com Port 1234 ssh s<tab> doesn't complete server, but completes server.example.com. How can I make it ...
0votes
1answer
98views
How can I disable the "You have new mail in..." message in bash complete?
I have cron tasks logging messages to the system mail periodically. Mail check is enabled, but I don't want to see these messages when I hit TAB in the middle of typing a command. Is there any way to ...
0votes
1answer
65views
Disable autocomplete but keep suggestions in Bash
I want disable autocomplete (pressing to Tab to complete my command automatically) on my Bash on Linux, but keep the double-Tab shortcut for showing suggestions, so that I can type the rest of the ...