Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

zsh completion inside quoted strings

Is it possible to configure zsh to suggest filenames (or anything else) inside of a quoted string?

I've seen this thread on bash: Bash TAB-completion inside double-quoted string But I'm not sure whether that solution is compatible between shells.

like image 491
Daniel Avatar asked Nov 13 '22 17:11

Daniel


1 Answers

No problem for tab completion inside quotes.

$ touch "spaces in a filename"
$ ls
spaces in a filename
$ ls sp[TAB]
gives ->
$ ls spaces\ in\ a\ filename

$ ls "sp[TAB]
gives ->
$ ls "spaces in a filename"
like image 138
lolesque Avatar answered Dec 20 '22 03:12

lolesque