Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

1 vote
0 answers
52 views

How can I complete individual command line phrases / do partial completion with fzf?

With fzf I can press CTRL-R to search my command history but it completes the whole command. What I'd like is to just complete the current argument, the next phrase before the next space. Can this be ...
Oneechan69's user avatar
1 vote
2 answers
2k views

How do I resolve a keybinding conflict with coc for vim?

Just as a preface, I'm not a programmer, but I've written a bit of shell to automate things. This is on MacOS Mojave, but it shouldn't make too big of a difference since neovim's configs should carry ...
wildwestrom's user avatar
3 votes
0 answers
92 views

How to use tab for text auto complete system wide?

Mac OS suggests completions of some text in some instances. A particular example would be when writing an email. The default way to choose the suggested text is to use the downward arrow to highlight ...
Omar Alamoudi's user avatar
0 votes
1 answer
339 views

Enable all defined bash completion after a custom command

I have a custom script called oEd which basically runs any bash command following it and opens the output in my favorite Editor. Is it possible to enable all defined bash completion (supported by my ...
Porcupine's user avatar
  • 473
4 votes
1 answer
231 views

Why does a value '-' (hyphen) in "tag-order" style prevent matching of the "executables" tag even if that tag is explicitly specified?

With the code below, everything works as expected: When I write c and hit the TAB key, I get the appropriate completions in correct order. When I write ./ and hit the TAB key, I get the ...
Iskustvo's user avatar
  • 300
1 vote
0 answers
250 views

How to customize the look of currently selected(highlighted) completion in zsh?

Main question I would like to add powerline characters at the start and at the end of the selected completion, like this: Started the completion menu by inserting a c and pressing the TAB key. ...
Iskustvo's user avatar
  • 300
5 votes
2 answers
3k views

Bash Autocomplete Subdirectory for Custom Command

I have tried for hours to get this working and feel like I've not come anywhere close. I am trying to shorten our workflow by tab-completing directory names from the Mac OS X Terminal. We have an ...
Gedrick Wilson's user avatar
1 vote
0 answers
767 views

ZSH auto-completion help not triggering for custom command options beginning with "--"

I often use the gencomp command with RobSis's zsh-completion-generator to generate ZSH completion definitions, and it works great for the most part! There is, however, one small caveat that I have ...
blizzrdof77's user avatar
2 votes
1 answer
1k views

Run command on tab completion in zsh

I'm trying to set up a zsh function that will take me back to the top level git directory with an optional argument to move relative to that directory. I've currently got this which works: alias ...
Josh Sherick's user avatar
4 votes
1 answer
544 views

zsh autocomplete results from function

I've been searching and searching and unable to find a clear way to do this: Slightly contrived example to hide details: Say I want to autocomplete tmux session names with a command that will open ...
alecbz's user avatar
  • 348
1 vote
1 answer
597 views

history-search-backward ignores search text after first space character?

I use a lot of git commands and since they are mostly 2-word command names, matching doesn't find the closest match. For example: # type in some commands git checkout - git status mvn test # try to ...
Sridhar Sarnobat's user avatar
3 votes
2 answers
665 views

Completion when pasting Bash command beginning with tabs

I'm writing a Dockerfile which I'm formatting using tabs (which I usually use everywhere). But I've copied a multi-line command where the second line begins with two tab characters, i.e.: apt-get -y ...
lucasvc's user avatar
  • 222
1 vote
1 answer
997 views

SublimeText XML completions file

I apparently can't get autocompletion to work in my XML files. Here is my xml.sublime-completions file, which I added to the User folder: { "scope": "text.xml", "completions": [ { "...
Alexei Danchenkov's user avatar
1 vote
1 answer
214 views

Make emacs autocomplete cpp files over binary files

My question is similar to this one, except for emacs instead of vim. The issue is that I have a cpp file that I want to open and when I type f[TAB] it autocompletes to foo the binary file foo instead ...
gsgx's user avatar
  • 1,043
4 votes
1 answer
526 views

How do I get zsh tab completion to "vi **/foo<TAB>" to match and complete the first file matching "foo*" anywhere under the current directory?

How do I get zsh tab completion to cat **/foo<TAB> to match and complete the first file matching foo* in any subdirectory under the current directory? For example, do this while inside a fresh ...
Mike Morearty's user avatar

15 30 50 per page