bind key to complete filename wherever the context is in Zsh
Posted
by lilydjwg
on Stack Overflow
See other posts from Stack Overflow
or by lilydjwg
Published on 2010-04-17T13:43:17Z
Indexed on
2010/04/17
19:43 UTC
Read the original article
Hit count: 178
zsh
|completion
Sometimes I want a filename instead of what zsh guesses for me. For example, I have a PNG file without a proper .png
suffix, which makes zsh think it isn't a picture and won't list it when I type Tab
to complete arguments of display
.
I am wondering if there is a key sequence that completes for a filename wherever the context is, like ^XC
for _correct_filename
, or how to configure zsh to do the thing?
© Stack Overflow or respective owner