Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: completions quotation style



On Tue, Mar 29, 2016 at 7:52 PM, sergio <mailbox@xxxxxxxxxxxxx> wrote:
>
>
> ok,
>
> % ls '/tmp/a/<TAB>
>
> works, but it's not what mean.

---------- Forwarded message ----------
From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
Date: Mon, Oct 24, 2011 at 9:40 AM
Subject: Re: Completed filenames quoted instead of escaped?
To: zsh-users@xxxxxxx


On Oct 23,  5:39pm, Peter Stephenson wrote:
} Subject: Re: Completed filenames quoted instead of escaped?
}
} On Sat, 22 Oct 2011 17:25:43 +0000 (UTC)
} Daniel <quite@xxxxxxxx> wrote:
} > I would like completed and expanded filenames to generally "be quoted"
} > instead\ of\ escaped. Would that be possible? If find that more readable.
}
} If you type " before a filename, it will be completed in double quotes
} and (when possible) another " added at the end.  It's not possible to
} configure it to add a double quote in front only when needed.

I seem to recall writing a widget that would insert a quote, then do
completion, and then if nothing changed remove the quote again.  Oh,
yes:

    Functions/Zle/quote-and-complete-word

Search the zsh-users archives for "completion;quote" and you should
find a couple of threads from 2010 discussing this.



Messages sorted by: Reverse Date, Date, Thread, Author