Questions tagged [tab-completion]

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.

359 questions
0
votes
0 answers

Brew completion doesn't work when it is aliased

I have alias:alias br="env PATH=${PATH/\/Users\/${USER}\/\.pyenv\/shims:?/} brew" and also compdef _brew br But it only suggests the files and directories. How can I get the brew options completion? I tried compdef br=brew and compdef _brew br=brew…
0
votes
1 answer

sublime text 3 and emmet not completing

I have sublime text 3 and emmet and am trying to use Emmet but a few things are broken/ I am using completion. ul+< tab > gives
Also input:text outputs inupt:
Is sublime hijacking the the completion.
LeBlaireau
  • 17,133
  • 33
  • 112
  • 192
0
votes
1 answer

Vim YouCompleteMe Python subclasses are not detected on TAB-completion in Arch Linux

I can TAB-complete current open file variables, paths & globals, but my python subclasses are not detected on TAB completion. For instance, import os # os is built-in library. os. # ycm does not complete members of this…
binarytrails
  • 516
  • 4
  • 14
0
votes
1 answer

Suppress filename/directory completion in fish shell

I am writing a completion script for Hub. This being my first completion script, I have run into some problems. Taking inspiration from git.fish completion script, here is what I have till now: # statement starting with 'hub' function…
Hasit Mistry
  • 329
  • 1
  • 4
  • 18
0
votes
2 answers

Can I get zsh-style path interpolation/completion in windows git bash?

On my Linux machine I have used a nice zsh feature to complete multipart paths with a single tab press: $ cd /h/p -> $ cd /home/plato I am currently developing in a Windows environment, using Git Bash. Is there any way I can replicate this…
Plato
  • 10,812
  • 2
  • 41
  • 61
0
votes
1 answer

When using tab completion what is the fastest way to end your line of code?

When I am coding and using tab/auto completion one thing that slows down my flow is at the end of each line adding something like a semi-colon. I am using the | (pipe) in my examples below to show my cursor location. For example, lets say my…
BitBug
  • 669
  • 2
  • 17
  • 35
0
votes
1 answer

ZSH + Prezto: CD Tab Completion Issue

I've been thinking about switching over to zsh and prezto for some time now, but there are some nuisances that I'd like to solve first. Biggest of these is the fact that it seems like the tab completion for 'cd' is messed up somehow. For instance,…
Xaldew
  • 560
  • 5
  • 18
0
votes
0 answers

Tab completion and parsing of command line options in python under Mac OS X

I am on OS X Mavericks running a python script that requires a filename as command line argument like this python name_of_my_script -i /path/to/input_file/file_name Navigating to the directory containing the input file works by using tab completion…
marc
  • 81
  • 1
  • 5
0
votes
1 answer

How to limit the subset of git commands that zsh will auto-complete (with tab)?

I have a combination of: autoload -Uz compinit compinit and autoload -Uz vcs_info It actually allows for a great amount of integration between git and zsh's tab completion. Too much in fact. How do I limit the set of commands, so that git che(TAB)…
Jordi Bunster
  • 4,886
  • 3
  • 28
  • 22
0
votes
1 answer

temporarily disable bash tab completion

I live by tab completion. However one recurring problem I have is when I want to grep for a tab character. With tab completion enabled, there is no way to type a tab character into the command line without disabling tab completion completely and…
ePhrygian
  • 51
  • 6
0
votes
1 answer

zsh tab completion categories

I'm using this script to improve my tab completion. When I press ntab it now renders out like this: You'll notice it spits out the type of completion at the top. I don't think the categories/types are all supposed to lumped up at the top though; I…
mpen
  • 272,448
  • 266
  • 850
  • 1,236
0
votes
1 answer

Model namespaces in code completion with R - or how to organize R code

This is more of a general code structuring question. At the moment I try to write my code into "namespaces". So for example, I would…
Cookie
  • 12,004
  • 13
  • 54
  • 83
0
votes
2 answers

How do I set environment variable completion in a bash shell on mac

In a bash shell on linux, if I type: echo $DISP and hit tab, it completes to: echo $DISPLAY It doesn't work in bash on OSX 10.5, and I'm using the same .bashrc Is there a shell option or setting I can use to set this.
Julian Mann
  • 6,256
  • 5
  • 31
  • 43
0
votes
1 answer

String options for function input python

I am writing a Python function (2.7) where one of the input parameters is a string. The string value should be one of a few values. i.e. the parameter, in this case "sort" could be any from the list ['first author' 'last author' 'title'] ( the list…
Jimbo
  • 2,886
  • 2
  • 29
  • 45
0
votes
1 answer

Statsmodels 0.5.0, having trouble with TAB completion in IPython

Simple, but really frustrating problem - TAB completion doesn't work with statsmodels package. I've tried different methods of installation (.exe or via pip; easy_install won't work), but no luck. Any suggestions?
uberswag
  • 73
  • 1
  • 2
  • 5
1 2 3
23
24