bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Temporarily change completion options


From: Mika Fischer
Subject: Re: Temporarily change completion options
Date: Wed, 19 Mar 2008 12:09:37 +0100
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

* Chet Ramey <chet.ramey@case.edu> [2008-03-18 00:22]:
>> I'd like to know if it is possible to change the options of the
>> programable completion within the completion function.
>
> Not currently.  I'm thinking about a new builtin that would accept the
> same set of -o options as complete/compgen (and probably +o to turn
> them off, as with the `set' builtin).

Yes, something like this would be very useful for the programable
completion.

But in the meantime can you describe what exactly these options do?

My understanding is this:
nospace: No not append a space after a completion even if it's the only
one.
filenames: Quote shell meta-characters and append a / if the sole
completion is a directory
dirnames: Has no effect if the compspec generates no matches?

So probably at least filenames could be emulated by the completion
function, right?

Regards,
 Mika




reply via email to

[Prev in Thread] Current Thread [Next in Thread]