Questions tagged [completion]

250 questions
4
votes
2 answers

emacs + comint-dynamic-complete-filename after '='

Editing a Bash script I want to assign a filename to a variable. E.g. inputfile=foo.txt With std. settings I can't complete the filename without first inserting a space after the '='. Is there any solution to this?
jogeba
  • 107
  • 4
4
votes
1 answer

Elasticsearch completion suggester context for nested fields

I'm working on simple search app with completion feature. I need to somehow secure those suggestions so I figured out that simplest way to do so would be to add context to completion suggester. My problem is that I don't know how to use suggester…
sop3k
  • 101
  • 2
  • 8
4
votes
1 answer

Easy way to "inherit" Bash completion

I'm looking for an easy way to "inherit" Bash completion functions from a program into a script. Say there's a program foo that provides its own Bash completion, such that $ foo sub completes to $ foo subcommand. Now I want to write a script…
darkfeline
  • 9,404
  • 5
  • 31
  • 32
3
votes
1 answer

Elasticsearch completion suggester issue

Issue - completion suggester with custom keyword lowercase analyzer not working as expected. We can reproduce the issue with following steps. Not able to understand whats causing issue here. However, if we search for "PRAXIS CONSULTING AND…
3
votes
1 answer

is it possible to do tab completion in elm repl?

I am currently starting to use elm for web development. Using the repl it sems that there is no tab completion for common built functions, except for user defined. Is this really the case or am I missing something here? for example, in the example…
3
votes
1 answer

bash completion: description text when pressing TAB (sort of heredoc for autocompletion)

I created a beautiful autocompletion for my script. One thing though: when the argument is left for the user to decide (for example, the first argument is the name of the new project), I'd like to display a little line describing what is…
Bibelo
  • 221
  • 2
  • 8
3
votes
2 answers

zsh completion : suggestion of multiples directory and how to choose one without knowing the content of this directory

I have a simple issue with zsh. Sometimes, I am in a directory with multiples sub-directories. So, when I do a $ ls[TAB] or $cd[TAB], I list all these sub-directories. But how to accept one of the suggestions for sub-directories? Is there a short…
user1773603
3
votes
1 answer

Git bash completion does not complete git commands as expected

After setting up bash completion support for git (version 2.14.5 on Slackware Linux 14.2) using the file contrib/completion/git-completion.bash from the git master repository as described and already did for other commands, I expected to get git…
Nero
  • 33
  • 4
3
votes
1 answer

Emacs and company autocompletion. Add a header directory globally

I'm trying to add a header files path to company-mode but I can't do it. I did it with flycheck as follow: (defun include-paths () (setq flycheck-clang-include-path (list (expand-file-name "../include")))) (add-hook 'c++-mode-hook…
class_OpenGL
  • 185
  • 1
  • 10
3
votes
3 answers

How to write a bash completion script for all executables on path?

I've had this use case come up for a couple of different scripts I've written or modified. Essentially, I want bash completion for option '-x' to complete executables on the PATH. This is sort of two questions wrapped in one. So far I've had…
Six
  • 5,122
  • 3
  • 29
  • 38
3
votes
1 answer

zsh completion for custom script

I wrote a small script that runs the whole system rsync from https://wiki.archlinux.org/index.php/full_system_backup_with_rsync which takes a few command line options and the hostname of the system as arguments. I'd like to give this the type of…
Dan Hadley
  • 31
  • 1
2
votes
0 answers

How to limit ZSH autocomplete to the current directory

I'm having a base zsh + oh-my-zsh install on a WSL2 Ubuntu. Zsh's autocomplete system (maybe coupled with oh-my-zsh's setup) by default completes anything from a path lookup, so when I'm in a folder, and I type a few letters, it annoyingly gives me…
sarimarton
  • 151
  • 1
  • 7
2
votes
1 answer

How to delete trigger character when using vscode api completion feature?

I'm creating a vscode extension that requires some custom completion for json files. Is it possible to not show the trigger character when using autocompletions. Here is what I mean : Let's say the trigger character is '.' In your json file you type…
2
votes
1 answer

do a animation with 3 actions in swift

I want my swift code to do a animation with the separate and different actions. That are in sequential order. The first 2 animations work however when I add the 3rd animation it does not work anymore and causes a compile error. You can see the 3rd…
Sam Burns
  • 65
  • 1
  • 10
2
votes
1 answer

Calling consecutive animations in Swift with completion handler

I'm making an app that will show animations of chemical reactions. Each atom is an SCNSphere and is animated with SCNActions. I'm trying to use the completion handler in runAction() to call the next animation after the current action is finished…
Gabe R
  • 82
  • 8
1 2
3
16 17