[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tab completion and ':'s
From: |
Chet Ramey |
Subject: |
Re: Tab completion and ':'s |
Date: |
Sun, 16 Nov 2014 17:56:57 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 |
On 11/14/14 4:57 PM, Vadim Berezniker wrote:
> > If the completer had a way to tell readline (through Bash) where the
> > completion should be inserted that would allow a workaround for this
> issue
> > without requiring any actions from the user.
>
> It's not only that, but the text that would have to be removed from the
> buffer (the `previous' word) before inserting any possible completions,
> and making sure that text isn't removed from the line inappropriately.
>
>
> Correct. Is that feasible? It looked doable from my look through the bash &
> readline code, but I don't have a lot of familiarity with intricacies of
> shells/terminals.
> Would there be interest in a patch that would implement such a feature?
Sure, it's feasible. I don't have any plans to do it anytime soon, though,
which is why I suggested the approach leveraging what's available today.
I'd be glad to look at a patch that added this functionality to the
completion code.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/