A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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.

Filter by
Sorted by
Tagged with
0
votes
0answers
35 views

Auto-completing bash command options in vim

When I am writing shell scripts inside of vim, I often myself looking at manpages for the command options the script will use. Is there any way to retrieve the auto-complete wordlist for a command ...
0
votes
0answers
55 views

autocomplete with tar and .xz

When I wish to unpack a certain file with tar, I type tar followed by my chosen parameters. Then I type the first(s) letter of the file name and then press the tab key, as to let the autocomplete ...
0
votes
0answers
48 views

npm autocomplete broken if prefixed by double dash (--)

I notice this when using a command that accepts additional args after a double-dash, for example: npm test -- spec/blah-spec.js In a raw, clean, ZSH v5.3 install, tab-completion works properly: npm ...
0
votes
1answer
53 views

email address completion in zsh

This is an extract from the zsh shell's manual: The completion system in zsh is programmable. For example, the shell can be set to complete email addresses in arguments to the mail ...
0
votes
0answers
25 views

Trying for infix bash completion

I'm trying to make a bash-completion function that will match infix like this: candidates: Ay Axy Axx Bx $ x<tab> Should suggest Axx Axy Bx. So far, I've come up with this: f1 () { local ...
0
votes
0answers
27 views

gnome terminal text-input stutters

Operating on Debian 4.19.37-5, a Buster 10.0 with a gnome 3(.30?) as GUI, I do experience annoying, from time to time even destructive behaviour, that does originate from the gnome terminal, I think. ...
0
votes
1answer
36 views

Complete something not according to the context in zsh

I use zsh with the “new” completion system (compinit). Sometimes I want to restrict completion to a subset of what is possible, to cut down on ambiguity. This is a user choice, not a configuration ...
0
votes
0answers
40 views

distinguish absolute from relative paths in zsh completion function

I have a command that can accept absolute and relative paths (just like ls) as first argument # absolute mycommand $HOME/.local mycommand /tmp/ # relative mycommand ../build mycommand file_in_cwd.txt ...
0
votes
0answers
18 views

Bash, autocompletion run commands with parameter

I have bash script kbase for 'cat' and 'grep -A10' from specified files for specific word with arguments. Main part of script. cat ~/bash/kb/*.kb | grep "## $1" | grep $2 | grep $3 One .kb file is ...
0
votes
0answers
22 views

Classic path completion with complete -F

I wrote the function to do a dynamic autocompletion for my tool, for the first argument (for example: mytool <run | delete> --other_opt /media/../../). How can I use the classic path ...
0
votes
0answers
45 views

Add trailing slash in csh

How do I get csh to add a trailing slash at the end of tab autocompletion? eg: \stuff \otherstuff now if I type cd s and press tab, I get: \stuff and not \stuff\
0
votes
0answers
107 views

slow autocomplete for cd in directory with many files

In directory with many files but only a few directories autocomplete is very slow for directories. If I type cd something tab it will take ages to autocomplete. Presumably this is because it is ...
0
votes
1answer
114 views

compgen usage error when attempting to complete “--” flags

I'm attempting to do bash completion for a command, and everything is working as normal with the full word commands, but when I try to complete the "--" flags, with the following code (following by a ...
0
votes
0answers
77 views

bash COMPREPLY with custom colors

Is there a way to have a COMPREPLY return colored output? I can get it to work when readline recognizes the output as a folder when I have bind "set colored-stats on", but I can't make my own colors. ...
0
votes
0answers
31 views

Tab Completion from File in Bash

I was wondering if there is simple way to list tab completions in a file that will be accessed by all commands (e.g. are independent of the command currently on the terminal), if no other completions ...
0
votes
1answer
464 views

Are there system settings that affect command line completion?

I have an application (not my own) that I run on two different CentOS6 machines with 2.6.32-696 kernels. The application is a command line driven (it has its own prompt once started) data analysis and ...
0
votes
1answer
153 views

Where to install bash completion scripts for out of tree packages?

I'm installing ripgrep on Ubuntu. It doesn't exist on the official repository or on private PPA's, so I'm following the project's instructions to install it as an out of tree package: https://github....
0
votes
0answers
153 views

Command complete for a bash script

I want to build a script that permit go fast to a path. I want to know if I can use 'complete' command or other command to autocomplete with the directories under '/var/www/vhosts/'. The script is ...
0
votes
0answers
96 views

Change order of autocompletion loading for ZSH

Trying to implement my own flag completion for java I broke the existing one. :-) What I've done is (among others for sure) unfunction and autoload calls, to see if my module worked. I think it ...
0
votes
0answers
295 views

Setting autocomplete in terminal for NeoVim to behave like Vim

I have the files Test.java and Test.class in the same directory. Something I've noticed is that when I use Vim and type vim T and press tab in terminal, it autocompletes to vim Test.java. But if I ...
0
votes
0answers
275 views

Does zsh support cycling through completion alternatives?

Is it possible for zsh to cycle through bash-completion alternatives, as described in this question - Is it possible for bash completion to cycle through the alternatives? The option I am describing ...
0
votes
0answers
28 views

How can autocompletion for PON (PPTP VPN) command be enabled?

This is my PPTP peers config: $ sudo ls -la /etc/ppp/peers/ total 24 drwxr-s--- 2 root dip 4096 Oct 14 00:20 . drwxr-xr-x 7 root dip 4096 Oct 14 00:18 .. -rw-r--r-- 1 root dip 172 Oct 14 00:20 ...
0
votes
0answers
318 views

How to implement autocomplete function for SVN repository?

I generally use the SVN command line client to access my SVN repositories; however, I find it tedious to have to memorize the exact repository structure or iteratively use svn ls to find what I am ...
0
votes
0answers
424 views

Disable substring filename completion in zsh

In zsh, when I type beginning of a filename, and autocomplete with tab: $ ls gs<tab> if there is no match starting with gs, I might get: $ ls logs Far from being useful, I find this feature ...
0
votes
0answers
38 views

Is there an application that could predict what I type and auto-complete my words and sentences?

I use to type a lot of text (in the browser) repeating the same stuff, using the same words and even same sentences over and over again. It would save me a lot of time if the computer could guess what ...
0
votes
1answer
165 views

Strange directories in /home

There are some strange directories appearing in /home (so far, maybe in other locations too). These directories do not show up in ls but do with bash's tab autocomplete, when doing things like cd. ...
0
votes
1answer
602 views

mksh complete when moving to parent directory

I just installed the mksh and don't know how to solve one litte problem I have. When trying to change directory to the parent directory mksh does not complete when pressing "tab". Let me visualize: $ ...
0
votes
1answer
169 views

When I press tab for autocomplete in bash I get: “Cannot parse arguments: unknown option -r” [duplicate]

My tab key's autocomplete function is not working. Instead, it spits out this error message: Cannot parse arguments: unknown option -r
0
votes
0answers
181 views

vim no tab completion in bash

When in shell, running vim <anything> and pressing tab, doesn't auto complete or show the list of the available files. Although it auto completes for the directory names, but not the file names. ...
0
votes
0answers
419 views

Add slash suffix and not space for folder commands on bash auto-completion

What i expect my bash shell autocompletion to be like, % cd $HOM<TAB> -> cd $HOME/<CURSOR-HERE> What it does to me, % cd $HOM<TAB> -> cd $HOME<SPACE><CURSOR-HERE>...
0
votes
0answers
677 views

My apt-get installer has no autocompletion for some packages

I have installed Kali Linux v1.1.0 (Debian based). Filename completion for sudo was not running at the beginning, so I added: complete -c sudo And everything seems to autocomplete now, except for ...
0
votes
0answers
229 views

Zsh - Modify File Completion w/ Quotes

I've been using Zsh recently, and when I complete a file name within quotes, the completion adds a space after the completed file name. Interestingly, this does not occur when I complete directory ...
0
votes
1answer
1k views

Zsh ssh tab completion not working as expected on OS X

I use Zsh on two different machines (OS X and Ubuntu) and the tab completion for ssh does not work the same way. More specifically hosts specified in the file ~/.ssh/config is NOT used on OS X but it ...
0
votes
0answers
770 views

Unable to autocomplete ONLY when typing a make command

I'm running Ubuntu Linux 10.04. And I have the following in my .bashrc file: if [ -f /etc/bash_completion ] && ! shopt -oq posix; then . /etc/bash_completion fi I'm having a problem ...
0
votes
1answer
910 views

Why is vim offering me spelling suggestions instead of using the completefunc?

I am trying to set up vim for writing email. I have a plugin to provide autocompletion of email addresses (notmuch abook ). If I do :set completefunc it tells me it is CompleteAddressBook as expected....
-1
votes
2answers
44 views

“Filename” vs “Filename-git”

What is the meaning of files that end in -git? For example, I searched in a Terminal for "xcb-imdkit" then pressed tab. xcb-imdkit comes up, as well as "xcb-imdkit-git".