Daniel
Daniel

Reputation: 1190

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.

Upvotes: 5

Views: 594

Answers (1)

lolesque
lolesque

Reputation: 11960

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"

Upvotes: 1

Related Questions