Most shells provide tab completion where a user can type part of a command or file name, and then press tab to make the shell complete the command. This saves greatly on the number of key presses needed when working on the command line.
Questions tagged [tab-completion]
359 questions
1
vote
1 answer
Executing a second completion when pressing tab twice when tab is bound to menu-complete in bash
The Setup
The title might be a little obtuse, but I couldn't think of a better way to describe it.
I have a bash function that will navigate up an arbitrary number of directories, so this: up 2 would navigate cd up the directory structure 2…

Nate Cavanaugh
- 1,137
- 1
- 9
- 15
1
vote
0 answers
zsh completion: _arguments not accepting the option '--no-fsck'
I am trying to write a zsh completion function for an internal script, and one of the script's options is --no-fsck. This is the abbreviated version of what i'm doing in the completion file:
_arguments \
'--no-fsck[skips e2fsck]' \
&& return…

kine
- 3,451
- 2
- 15
- 8
1
vote
2 answers
tcsh auto-complete for the 2nd argument
For example, for the command
cp src_file dst_file
my tcsh can complete for src_file if I type src then press TAB, but it does not try to complete for dst_file if I type dst then press TAB.
Output of complete cp (per @shx2's request):
% complete…

Yorkwar
- 1,204
- 1
- 11
- 27
1
vote
2 answers
ruby Fail to load readline
I intend to use Tab Completion, then I try to load readline using the following command:
$ irb -r irb/completion
However, irb throws an error message shown below:
/usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require':LoadError:…

dj199008
- 1,739
- 3
- 18
- 27
1
vote
2 answers
How can I use tab completion in bash based on different attributes of the string I am searching?
Right now, I am in the directory migrate in my current Rails project, and have the following migrations:
20140206000143_create_users.rb 20140206032051_create_comments.rb
20140209232521_create_login.rb 20140206031331_create_photos.rb …

jamescranston
- 57
- 6
1
vote
0 answers
using pyparsing with readline tab completion
Using pyparsing is it possible to get the results of the parse up until the point when a ParseException was thrown? I would like to use pyparsing to generate a list of appropriate readline tab completions for user input so expect to have a…

vorpal
- 268
- 4
- 17
1
vote
1 answer
Forcing automatic parentheses in ipython loses tab completion
In ipython (version 0.8.1 on Ubuntu 8.04, version 1.1.0 on Ubuntu 12.04) when forcing automatic parentheses by starting the function name with / will make useless the TAB…

Robert T.
- 1,620
- 2
- 13
- 20
1
vote
1 answer
Tab completion, rlcompleter in Emacs
I have a Python program which uses rlcompleter to provide custom Tab-completion. The completion works when it is run under a bash terminal. However, it does not work under emacs, in shell mode, nor in eshell mode.
I noticed that Tab is really bound…

ealfonso
- 6,622
- 5
- 39
- 67
1
vote
2 answers
IPython in Emacs py-shell: TAB completion not working & windows get killed
I've switched from ipython 0.10-11.1 to 1.1.0
Now, using Emacs together with the new ipython version I run into the following two problems:
1) Tab completion in Emac's ipython py-shell (C-c !) stopped working for me. Say, if I try to complete 'pl'…

Mark
- 439
- 1
- 5
- 18
1
vote
1 answer
How do I get tab-completion to work in emacs shell after using a symlink?
When I'm in Shell mode and cd to a directory through a symlink, tab-completion of the cd command stops working. Is there a fix? I'm on Fedora Core 18 and using Emacs 24.2.1.

bug
- 515
- 1
- 5
- 17
1
vote
1 answer
PyDev Remote Debugger and Tab Completion in Eclipse
This might be a limitation of the PyDev debugger but would anyone know how to enable tab completion and history like in a plain Python shell in the Eclipse debug Console window?
Pressing tab or the arrow keys just jumps/moves the cursor. PyDev…

Daniel Sokolowski
- 11,982
- 4
- 69
- 55
1
vote
1 answer
sublime text 2 plugin to enter auto-license comment line with specific format
I am trying to set up a snippet in Sublime Text 2 that will expand to the following:
/**
* @version $Id: ${1:current_file_name.extension} ${2:random_4_digit_number} ${3:YYYY-MM-DD} ${4:time_in_UTC_24} ${5:current_logged-in_user} $
* @author …

Ali Samii
- 1,672
- 4
- 28
- 49
1
vote
1 answer
Remapping tab completions in vim
I've got a crazy little challenge. I'd like to remap tab and shift + tab to the basic tab completions in vim. Here's where I started:
set completeopt=
inoremap
inoremap
That didn't have any effect at all, and I also…

Costa Michailidis
- 7,691
- 15
- 72
- 124
1
vote
1 answer
don't emacs completion and cedet semantic completion use same tag file
I thought that both of emacs default completion an semantic completions does their job based on the same tag file but now I see sth else:
this is the result of emacs default completion via ESC + TAB:
and this is the result of semantic…

Pooya
- 992
- 2
- 10
- 31
1
vote
1 answer
Python Cmd module enabling tab-completion inside a double-quoted string
I'm currently writing an application using the Cmd/Cmd2 module.
For a certain command, I need quoted strings to delimit certain argument values.
(Cmd) command "This is an argument" argument 04
However, I can't seem to get tab-complete working with…

jaka
- 155
- 1
- 2
- 10