Bug#648264: rlwrap: tab completion skips words that are prefixes of other words

2011-11-11 Thread Mike Miller
On Fri, Nov 11, 2011 at 4:12 AM, Hans Lub hanslu...@gmail.com wrote:
 Yes, I see your point. Thanks for pointing it out!

 bash, python, ... say: press Enter to accept, press TAB for all completions
 rlwrap says: press Enter to accept, press TAB for all *remaining* 
 completions

 I find rlwrap more helpful, but expectations and muscle memory are to
 be reckoned with, so I will change its behaviour.

 A new rlwrap release (with lots of changes) is pending, and I don't
 think this bug warrants an interim bug-fix release, (though some of
 the other bugs do) This will probably have to wait until the 0.38
 version, sorry!

Hi Hans, thanks again for hearing me out, and for clarifying the
difference.  Let's call it a feature request instead of a bug.  Maybe
add an option to preserve the current, what I would call aggressive
completion, behavior?

CCing to debian bts for the record, downgrading to wishlist, bug will
be fixed in next upstream release.

-- 
mike :: mtmiller at ieee dot org



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#648264: rlwrap: tab completion skips words that are prefixes of other words

2011-11-10 Thread Hans Lub
Hello François
[cc Mike]

 Desired behavior with user input of idtabtabtabtab... is to display
 id ide idea ideas all as possible completions.

That is certainly not the desired or expected behaviour with readline!
Using your words.txt (the one with 'ideas' and all of its prefixes):

[hlub@karpaten] ~  rlwrap -f words.txt cat
iTAB
id     ide    idea   ideas
idTAB
ide    idea   ideas
ideTAB
idea   ideas
ideas (pressing TAB now will only add a space, as there are no more completions)

in the example above, iTABTABTAB is entered by me, the rest is
displayed by readine. For clarity, I have 'set show-all-if-ambiguous
On' in my .inputrc, but this doesn't change readline's completion
behaviour.

If I want i, I press i. rlwrap prints i and I accept it with ENTER
If I want id, I press iTAB. rlwrap prints id and I accept it
with ENTER
If I want ide, I press iTABTAB. rlwrap prints ide etc.

So, indeed, iTABTABTAB yields ideas as the only possible
completion - as it should!

regards

Hans






2011/11/10 Francois Marier franc...@debian.org

 Hi Hans,

 For your information, Mike Miller has filed the bug below on the Debian
 tracker:

  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648264

 Cheers,
 Francois

 - Forwarded message from Mike Miller mtmil...@ieee.org -

 When the word completion list contains two valid words, one of which is a
 prefix of another, typing tab completes the longer word, skipping over the
 shorter.

 Discovered while following the instructions at [0] for configuring rlwrap with
 clojure.  The completion list contains vec, vector, and vector? for
 example.  Entering vetabtabtab yields vector? as the only 
 completion,
 consuming the other valid word completions.

 A simpler artificial example:
 $ cat words.txt
 i
 id
 ide
 idea
 ideas
 $ rlwrap -f words.txt cat

 Repeatedly pressing tab will add one letter at a time until ideas is
 produced, same for the next word, and so on.



 [0] http://en.wikibooks.org/wiki/Clojure_Programming/Getting_Started

 - End forwarded message -



--
Hans Lub                                   tel/fax +31 (0)30 2899249
Dolomieten 74 3524 VH Utrecht (Nederland)            hanslu...@gmail.com




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#648264: rlwrap: tab completion skips words that are prefixes of other words

2011-11-09 Thread Mike Miller
Package: rlwrap
Version: 0.37-1
Severity: normal
Tags: upstream

When the word completion list contains two valid words, one of which is a
prefix of another, typing tab completes the longer word, skipping over the
shorter.

Discovered while following the instructions at [0] for configuring rlwrap with
clojure.  The completion list contains vec, vector, and vector? for
example.  Entering vetabtabtab yields vector? as the only completion,
consuming the other valid word completions.

A simpler artificial example:
$ cat words.txt
i
id
ide
idea
ideas
$ rlwrap -f words.txt cat

Repeatedly pressing tab will add one letter at a time until ideas is
produced, same for the next word, and so on.

Desired behavior with user input of idtabtabtabtab... is to display
id ide idea ideas all as possible completions.

[0] http://en.wikibooks.org/wiki/Clojure_Programming/Getting_Started



-- System Information:
Debian Release: 6.0.3
  APT prefers proposed-updates
  APT policy: (500, 'proposed-updates'), (500, 'stable'), (101, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages rlwrap depends on:
ii  libc6 2.11.2-10  Embedded GNU C Library: Shared lib
ii  libncurses5   5.7+20100313-5 shared libraries for terminal hand
ii  libreadline6  6.1-3  GNU readline and history libraries

rlwrap recommends no packages.

rlwrap suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org