Questions tagged [completion]
250 questions
7
votes
1 answer
How to extend bash-completion with the already exist completion in another file?
For example, there is bash-completion for rar on linux, I want to extend, make more completions for the same command - rar, maybe for my own filename extension, but I don't want to touch the already existing completion script, how to start…

user3620613
- 151
- 1
- 7
6
votes
3 answers
How to return the value instead of key by completing-read
(completing-read
"Complete a foo: "
'(("foobar1" "~/foobar1/") ("barfoo" "/usr/barfoo/") ("foobaz" "/hello/")))
As shown above, I would like to prompt for "foobar1","barfoo", and "foobaz" but getting the paired directory in return.
Moverover, if…

tom
- 1,302
- 1
- 16
- 30
6
votes
1 answer
Faster multi-file keyword completion in Vim?
While searching for my python completion nirvana in vim, I have come to really love : "keywords in the current and included files". This almost always gets me a long nasty name from another module completed, which is…

gravitation
- 1,939
- 2
- 21
- 26
5
votes
1 answer
git advanced alias completion
I have advanced alias's in my .gitconfig file that I would like to support tab completion.
For example, this simple alias allows for tab completion of refs (assuming the git completions have been sourced):
[alias]
co = checkout
However, this does…

scott
- 141
- 5
5
votes
1 answer
ZSH: Completion aliases for subcommands, e.g. "compdef foo='git log'"
I have a bunch of tools that pass all arguments to an internal invocation of e.g. "git log". A trivial example might look like:
#!/usr/bin/env zsh
git log --since='1 year ago' "$@"
I know that I can have completion aliases by doing e.g.:
compdef…

Zach Riggle
- 2,975
- 19
- 26
5
votes
1 answer
Elasticsearch Completion Suggester doesn't return documents on searches that match input
I have a weird problem with Elasticsearch 6.0.
I have an index with the following mapping:
{
"cities": {
"mappings": {
"cities": {
"properties": {
"city": {
"properties": {
"id": {
…

whites11
- 12,008
- 3
- 36
- 53
5
votes
0 answers
Autocomplete in Enums for Eclipse?
EDIT: Turns out this is a long-standing bug with Eclipse and enums / array initializers, which is really unfortunate.
In Eclipse, I'm finding that I don't have access to any kind of code completion inside of enums. Here's a WIP, of course, snippet…

SolarLune
- 1,229
- 3
- 12
- 14
5
votes
1 answer
Swift Async completion to return an Array in custom class
I'm going to try to explain this as best as I can.
I am using Parse.com and returning data from a Parse database class. I want to put this parse.com call in its own function in a custom class. The problem I am having is the completion. Where does it…

AppDever
- 687
- 1
- 7
- 17
5
votes
1 answer
Return Boolean from Block in Swift
I am trying to use Parse written with Swift. I am able to log in without any trouble but I am struggling with telling my app that the user is logged in.
I am using logInWithUsernameInBackground and I simply want to return a boolean if the log in…

AppDever
- 687
- 1
- 7
- 17
5
votes
1 answer
Bash completion to make 'cd' command complete working directories from other running shells?
I'm trying to write a bash completion that will let me complete directory names that other shells are in.
For example, suppose I have another shell open in /very/long/path/name, and I'm currently in a directory that contains subdirs foo and bar.…

Thomas
- 174,939
- 50
- 355
- 478
4
votes
0 answers
bash completion after a multiline string
I bumped into this problem regarding bash completion, can't find reference to it.
When doing
$ echo foo "bar" /tm
I got /tm expanded to /tmp/ that is indeed correct.
But if I do
$ echo foo "bar
more bar" /tm
No completion is done. My…

Phi
- 735
- 7
- 22
4
votes
1 answer
Firestore call setData will not enter completion block after signOut and signIn firebase auth on iOS
In iOS (swift) with Firebase SDK
Using Firebase (4.10.0)
Using FirebaseAuth (4.4.4)
Using FirebaseCore (4.0.16)
Using FirebaseFirestore (0.10.2)
Problem happen when
signIn (anonymous or with credential)
signOut
signIn
call…

saranpol
- 2,177
- 1
- 23
- 22
4
votes
1 answer
using wildcards in expand-file-name in elisp?
Is it possible to use wildcards such as * in elisp to expand filenames?
For example, I saw that
(expand-file-name "~/.emacs.d/elpa/babel-repl-20160504.1501")
expands to /home/username/.emacs.d/elpa/babel-repl-20160504.1501.
Is there a function to…

thor
- 21,418
- 31
- 87
- 173
4
votes
2 answers
Is it possible to have separate bash completion functions for separate commands which happen to share the same name?
I have two separate scripts with the same filename, in different paths, for different projects:
/home/me/projects/alpha/bin/hithere and /home/me/projects/beta/bin/hithere.
Correspondingly, I have two separate bash completion scripts, because the…

Jeremy
- 1,049
- 1
- 15
- 28
4
votes
1 answer
How to make emacs ignore some specific file names, for completion?
In emacs, when im typing the begining of a file name, and then press tab for autocompletion, here's what i get :
Possible completions are:
dummy.cmi dummy.cmx
dummy.ml dummy.o
I want emacs to ignore object files (.o, .cmx, .cmi) and directly…

ghilesZ
- 1,502
- 1
- 18
- 30