[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Feature Request: Add option to make completed values always become p
From: |
konsolebox |
Subject: |
Re: Feature Request: Add option to make completed values always become properly escaped |
Date: |
Fri, 25 Feb 2022 08:29:29 +0000 |
On Mon, Feb 21, 2022 at 4:32 PM Chet Ramey <chet.ramey@case.edu> wrote:
> What does `properly quoted' mean here and how does it differ from the
> quoting you get when you force complete to treat the completions as
> filenames with `complete -o filenames'?
I realized that a "quote all ' option is not what I want since I need
to rely on nospace and manual adding of space when a single result is
valid. Having "quote all" enabled backslash escapes the space as
well. What I need more is an option that allows replacing the current
word including the quote (', ", or $') that begins it with the result
as is rather than appending the result to the quote. Maybe a method
that can prevent space from being added on a specific completion
result can be added instead too.
I also tried using the filenames option (which I remembered using
before) but it adds a slash to the result when the result matches a
directory. For example, "test" which refers to a task becomes
"test/".
--
konsolebox