Questions tagged [auto-completion]

Anything related to automatic completion of path/file/folder names or commands such as the ones provided by bash-completion package

Filter by
Sorted by
Tagged with
2
votes
0answers
28 views

Tab completion for pdf files with spaces in path

I want to open the pdf file ~/dir1\ with\ spaces/dir2/file.pdf from the command line. I type evince ~/dir1\ with\ spaces/ and hit TAB twice for autocomplete. But I won't get offered dir2. After adding ...
0
votes
0answers
35 views

Python autocomplete ubuntu

How to configure atom for autocomplete-python package? It doesn`t work for me. Maybe helpfully information is that I am using venv, but not in atom. I just created virtual enviroment via terminal and ...
0
votes
1answer
29 views

auto suggested text intermittently changes what I have typed

This is difficult to describe because it is intermittent. But sometimes when I type in Firefox on Ubuntu, the suggested text in the drop-down box will overwrite what I have typed. This doesn't seem to ...
4
votes
1answer
1k views

What tool do I need to install to make my terminal show the autocompletion of the command that I'm writing?

I use Ubuntu on a daily basis, recently I've seen that the terminal on Kali Linux behaves differently from the terminal on Ubuntu... I can see the end of the command that I'm typing based on the ...
1
vote
0answers
161 views

Ubuntu 18.04 Bash autocomplete slow/freezing

Bash autocomplete seems slow/freezes at times. The cursor stops blinking for 1-2 seconds and then the autocomplete prints. It happens for some directories. For eg I have a projects directory cd ~/proj ...
1
vote
0answers
23 views

'$ git' autocomplete seems to print colour code

When typing $ git in my CLI and pressing tab stop for autocompletion, I get the following sugestions, which look like having extra colour highlighting for bash text. $ git ^[[01;31m^[[K ...
1
vote
0answers
27 views

bash autocomplete personal command : cannot autocomplete the argument after the option

I wrote the autocomplete function for my command, but it is not autocomplete the argument after the option flag function _qpdm_complete() { local cur prev options my_list COMPREPLY=() ...
0
votes
0answers
39 views

Why autocompletion in terminal converts $ENVAR to \$ENVAR? (Ubuntu 20.04)

I recently installed Ubuntu 20.04. When I pressed the tab key for auto-completion of an environment variable, let say ENVAR, which contains directory information, it suddenly converted the '$' to '$' ...
0
votes
0answers
24 views

TAB does't work properly with `cp` command when using environment variables [duplicate]

Question When using cp command with environment variables, why pressing TAB for auto-complete doesn't work properly? Description I have a directory $HOME/Music; I want to copy a file from within this ...
1
vote
1answer
113 views

Make annoying executable invisible to bash tab completion (cd-it8 etc)

When using the command line, cd is one of the most frequently used shell commands. I've gotten used to the ability to type cd, pressing tab, and then pressing tab again to see what directories there ...
2
votes
0answers
86 views

Gedit: how to disable auto-completion in search/replace window

I am using Gedit 3.28.1 on Ubuntu 18.04 64bit as my favourite script editor. Gedit not only stores some of my newest search/replace strings so that I can select them from the drop-down list in the ...
2
votes
3answers
6k views

Jupyter Notebook autocomplete not working

I am using Ubuntu 20.04 I installed Jupyter Notebook in a virtual environment I created in a folder. It's all working fine, but clicking on TAB after a dot isn't showing me the methods available. Is ...
1
vote
0answers
76 views

Autocompletion doesn't work without sudo

When I try to Tab the way like /etc/freeradius/3.0/sites-available Tab doesn't show me variants of files that are inside the directory and also doesn't allow me to autocomplete this way. How can I ...
0
votes
0answers
34 views

Xnee failed to set the

I want to have auto key/mouse macro record , so i have seen this post and installed cnee,xnee and gnee, but when try to record in cnee like this get this error: i have this report: so@so-notebook:~/...
0
votes
0answers
66 views

zsh auto-completion is not as good as bash auto-completion

I recently switched from bash to zsh and it was so great until i found some problems in it. Here is one of theme that I want to show you. Zsh has a powerful tab-autocompletion, but it doesn't work ...
1
vote
1answer
106 views

Tab autocomplete in bash does not work for directories but does work for programs Ubuntu 16.04

I'm getting the same message each time I try and [TAB] to autocomplete into a directory: test being the directory within var/www/html # hitting [TAB] after typing 'test' $ ll test-bash: cannot create ...
0
votes
1answer
125 views

How can I use the output suggestion by apt and other terminals use?

Have you ever had to run a command which is not found on your system, but apt suggests you to install it running command? Do you know if it would be possible to autocomplete the terminal prompt with ...
2
votes
1answer
236 views

How to create Bash script to complete my email address?

I am trying to write a bash script to auto-complete my email address. So my goal is whenever I type foo in terminal and hit tab it completes it with foo.bar@gmail.com. So far I read these links: ...
3
votes
2answers
792 views

How do I enable zsh package suggestions as in Ubuntu bash?

I'm slowly transitioning to zsh from bash and am loving almost every part of it, but there are two things I'm really missing. One of them is snap completions, see here: Enable snap TAB-completion for ...
2
votes
1answer
113 views

bash-completion: how to select among different alternatives

In bash, how can I select an option from a list displayed by TAB? Ex. Suppose vim <TAB> shows different possibilities txt1 txt2 txt3. How can I select the first one (txt1)? EDIT: let me be ...
0
votes
2answers
127 views

No history and path/bash completion on some systems

For some reason, I don't have a history of commands in the terminal and neither can I complete paths or commands. Pressing arrows also show symbols like ^[[D and ^[[C. The shell is bash and .bashrc ...
2
votes
0answers
385 views

Terminal Autocomplete and History does not work

I am a Mac user who has recently switched to Lubuntu on my personal laptop. The issue I'm facing is that my terminal does not do any sort of autocomplete or show history. Pressing Tab just adds a tab ...
6
votes
1answer
5k views

Why doesn't auto complete work in my shell?

I am not so into Linux and I have the following doubts: a client provided me an Ubuntu 18.04.3 LTS virtual machine which I access via SSH. (I am using MobaxTerm as SSH client but it should not be the ...
1
vote
2answers
898 views

How should I install my own bash completion script?

I've written some software that includes it's own Bash completion script. This script works fine when I source it manually, but I'm trying to figure out how best to install on Ubuntu 18.04. There ...
2
votes
1answer
212 views

Ubuntu 19.04 word prediction / suggestion / autocomplete

I have moved to Ubuntu 19.04 from Windows 10 and I noticed that Ubuntu predicts the words I am about to type, based on my previously typed words. I liked it at first, but now, a few months later, I ...
2
votes
1answer
1k views

How do I apply tab completion on a script from any directory?

I have a bash autocompletion function _customcomplete that I want to apply on a script called run.sh. If I call complete -F _customcomplete ./run.sh, then the autocompletion script works fine as long ...
2
votes
0answers
120 views

How can I get usernames to tab complete again in 19.04 server when using su?

One of my servers was originally running Ubuntu Server 18.04 (Bionic) and a very common task would be to substitute user, eg. su like this: su someusername Usually I would use tab completion to ...
1
vote
0answers
98 views

Bash Autocomplete for Non-Neighboring Directories

I recently wrote a program that can instantly switch to a directory if it has a unique name with respect to some given baseline. For example, if I have a directory: ~/Documents/foo and foo is a ...
1
vote
0answers
434 views

Enable snap TAB-completion for zsh

Does anybody have an idea how to get the TAB-completion for zsh working for the snap command? According to the answer in How can I enable auto-completion for the snap command? it should be working ...
1
vote
0answers
222 views

bash filename autocomplete - does it have to use so much screen space?

I have a vague memory of this working in the past, but can't find any info now. Using TAB in bash to show available filename completions lists them on the line(s) below the command and then reprints ...
1
vote
1answer
227 views

How does ubuntu terminals autocomplete work?

How does it know what arguments a command expects and whether it is expecting file as input? How does it know what commands are available?
0
votes
0answers
695 views

apt install - can't autocomplete package names (Docker)

It's the same error as in several other posts, but none of the solutions work for me. I'm typing apt-get install ar<TAB><TAB> and there's not auto-completion. I'm using an Ubuntu-...
1
vote
1answer
322 views

Autocomplete dotfiles without typing the leading dot

I've been getting close to bash on finding the really nice features of Bash-it. I want to be able (or so I think) to key ls file, and on pressing Tab ↹, i get a list of dotfiles, or the single one ...
0
votes
1answer
211 views

Is it possible to achieve autocomplete to predifined text in gnome-terminal?

I have started learning Ubuntu since 1 year.. During this 1 year period I typed a lot of these below texts in gnome-terminal sudo -H nautilus /foo1/foo2/foo3/foo4/ sudo -H gedit /foo1/foo2/foo3/foo4/ ...
4
votes
2answers
1k views

Word Prediction like Android “keyboard”

Is there a way to get word prediction like on android? Like on this screenshot: This would improve the speed of typing on Ubuntu a lot. I need it here: thunderbird Browser textarea gedit Required ...
1
vote
0answers
79 views

How do I get prompt colours and auto-complete on 18.04 for a new user created with useradd?

I use Tilix, which is imo one of the best VTE based terminal emulators for Linux. If I create an Ubuntu 16.04 image on DigitalOcean, connect to it via SSH and then configure a new user (as below), ...
0
votes
0answers
147 views

chaning git checkout behaviour in zsh

I'm follwing this link on how to use git checkout auto-completion for only local branches. I first used it on my bash shell as follows (Used this link as a reference. Also, commented out the original ...
2
votes
1answer
74 views

What can mess up the order of the tab completion

I am experiencing a difference of behavior between my previous OS (Ubuntu Xenial) and my current one (Ubuntu Bionic). The short story is this: When using tab completion with cd, the order of the tab ...
0
votes
1answer
573 views

Git completion fails after updating to Ubuntu 18.10 Cosmic Cuttlefish

I recently updated to Ubuntu 18.10 and after that my git completion has been failing. Bash is able to complete the first command successfully, for example (I'll use ↬ to indicate TAB was used) $ ala↬...
0
votes
1answer
845 views

How to configure auto completion on docker-compose alias

I installed docker-compose, set up auto completion which works as its supposed to. However it does not work on aliases. Any ideas how to solve this?
8
votes
1answer
450 views

How do I control when bash auto-completion shows a paged list of completions?

In my previous linux installations the bash auto-completion has always worked without problems. If I wanted to do anything to files, giving a prefix of the filename and pressing tabulator listed all ...
0
votes
1answer
160 views

file name auto completion works for ls but not for vi

How come the filename auto-completion works for ls command but not for vi in my Ubuntu 16.04.5 LTS? (Xfce4, bash). I think it used to work but not now. From Matthieu's answer, I tried the example ...
1
vote
0answers
689 views

Tab auto-completion doesn't work for argument for a non root user on Ubuntu 18.04.1

For an ordinary user on Ubuntu 18.04.1 the tab key doesn't work for a command argument. For example, entering systemctl sta and pressing the tab doesn't produce a match for "start status". It works ...
3
votes
1answer
1k views

How to setup AutoKey for text auto-completion

How do I setup AutoKey to get the following result? I type a word like ubu in a text editor A window opens with the suggestion ubuntu I can select ubuntu through TAB-key ubu gets replaced with ubuntu
1
vote
1answer
136 views

Prompt has been changed after upgrade to 18.04.1 after using “su” to change user

Just updated to 18.04.1 I use Terminal only. When I do an su to one my users that runs a game, I only get a $ and no name of the user and does not show current location. Also, tab autocomplete ...
3
votes
1answer
296 views

Bash auto_complete .out error

I am using a customized dotfiles from a github repo. When I am trying to execute a c++ executable named a.out and try to use TAB Key after a.out (for arguments), I get the following error: bash: a....
0
votes
0answers
216 views

TextSuggest Universal Autocomplete Installation Error

I followed the instructions to install the autocomplete tool TextSuggest but now I'm stuck at this part: Run the command textsuggest-server in the background, and set it to run on startup. ...
2
votes
2answers
1k views

Autocomplete options for certain command in ubuntu terminal

I am running Ubuntu 18.04, and do most of my code editing using VisualStudio Code. To open a file from the terminal, I run the command code fileName.java Once I have compiled the java code, there is ...
1
vote
0answers
62 views

How to filter out selected records from /etc/hosts file from terminal prompts for ssh command

I have a problem with hints for the ssh command. When I press the tab key, the terminal displays all records from the /etc/host file in prompts. I use add-ons to block spam and advertisements in my ...
2
votes
1answer
550 views

Is there a way to make the bash auto-complete show a list with line for each entry?

when I want to see the content of a dir I use ~/ + Tab and it shows me .bashrc.swp .gitconfig .local/ ... Is there a way to make the results separated by newlines? i.e. ....