"I. Szczesniak" wrote:
> 
> On 5/11/06, Roland Mainz <roland.mainz at nrubsig.org> wrote:
> > David Korn wrote:
> > > > Roland Mainz wrote:
> > > > Actually it could be done better... attached is a 2nd patch
> > > > ("ksh93_tab_tab_gmacs_completion_try2.diff.txt") which also implements
> > > > TAB-TAB completion like in bash3.
> > > > Single TAB now completes the filename either completely - or if that
> > > > isn't possible it's completed to the point where the filenames start to
> > > > differ. TAB-TAB then displays a list of choices. Additionally in "gmacs"
> > > > mode typing TAB on an empty string will try to do the filename
> > > > completion for the whole directory (and TAB-TAB displays all choices
> > > > then). "emacs" mode still behaves as usual, incl. the ability to enter
> > > > the TAB character.
> > >
> > > The original idea of changing TAB to behave like \E= makes
> > > no sense.
> >
> > Well, it makes sense for beginners as navigational help due lack of
> > better options. But I agree that there are better solutions - that's why
> > I wrote the 2nd patch... :-)
> >
> > > However, the idea of TAB-TAB make sense with the following
> > > modifications:
> > >
> > > 1.      It should work for vi as well as emacs.
> >
> > And "gmacs" ...
> >
> > BTW: Note that users expect that a TAB-TAB following a TAB-TAB
> > redisplays all choices (which means a TAB following a TAB-TAB cannot be
> > used to output a TAB, see below).
> 
> This is not correct. A TAB following a TAB-TAB redisplays the matches.

Yes, this is actually how my patch works (both #005 from today and that
one in
http://mail.opensolaris.org/pipermail/ksh93-integration-discuss/2006-May/000292.html).

Actually bash does not seem to provide a way to enter a TAB character at
all (neither in "vi" nor in "emacs" mode) - and maybe we want to make
"gmacs" behave the same way (in favour of more powerfull TAB completion
which is available all the time ("emacs" and "vi" mode should still
allow people to enter a TAB, I am just thinking loudly how the "gmacs"
mode may have better than it's today)).

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz at nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)

Reply via email to