bugGNU Octave - Bugs: bug #34624, Tab completion of multiple...

 
 

bug #34624: Tab completion of multiple directory levels is broken.

Submitted by:  None
Submitted on:  Sun 23 Oct 2011 12:31:39 AM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: DuplicateAssigned to: None
Originator Name: Brooks MosesOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.4.2
Operating System: Other

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Mon 15 Feb 2016 01:39:22 AM UTC, comment #6:

Although this pre-dates the bug #44095 report, that report has a more complete discussion, so I'm marking this as duplicate of it, instead of vice versa.

Lachlan Andrew <lachlan>
Project Member
Sat 12 Sep 2015 09:16:35 PM UTC, comment #5:

There is another patch attached to bug #44095 that has some things in common with this one. I think both patches could be combined to help resolve this long-standing feature request.

Mike Miller <mtmiller>
Project Administrator
Fri 25 Jul 2014 09:39:52 AM UTC, comment #4:

This bug is still present in the latest development versions and release candidates (3.8.2-rc2).

D. Robinson's patch below seems to solve it. I attach to this comment a slightly modified patch that can be applied to recent revisions (files have been moved since then).

Is there a specific reason why this patch has not been considered since feb. 2012 ? This is a VERY annoying bug and I would be happy to help improving the patch if anybody could tell me what needs to be improved.

(file #31775)

Julien Bect <jbect>
Sun 26 Feb 2012 03:37:34 PM UTC, comment #3:

It seems that readline is treating the path separator as a word break character when it does tab completion. This is good for tab completion inside an arithmetic expression, but it's bad for filename completion.

In readline version 5 and later, there is a hook that allows you to set the word break characters when the user hits the TAB key. I'm attaching a possible fix that sets the word break characters to only whitespace and quotes whenever the input line begins with the name of a directory function.

(file #25174)

Daniel Robinson <drobinso42>
Wed 26 Oct 2011 03:10:33 AM UTC, comment #2:

This may also be related to the other reported tab completion bug #34444.

Rik <rik5>
Project Administrator
Sun 23 Oct 2011 02:03:42 AM UTC, comment #1:

Confirmed. Tab completion has other problems that should also be addressed, but this doesn't seem like an easy problem.

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Sun 23 Oct 2011 12:31:39 AM UTC, original submission:

(Note: Operating system is Cygwin; this is the standard Cygwin distribution of Octave.)

Steps to reproduce:

Create a directory tree: $pwd/foo/bar/.

At the Octave command line in $pwd, type "cd f".

Press tab; note that this completes to "cd foo/".

Press tab again.

Expected result:

Completion of the command line to "cd foo/bar/"

Actual result:

Completion to "cd foo/foo/". (Or, more generally, suggestion
of "foo" and other items in $pwd.)

This can be repeated ad infinitum, tab-completing to "cd foo/foo/foo/foo/foo" and so forth.

In addition, tab completion for "cd" is providing all items in the current directory, not just subdirectories.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #25174:  tabcompletion.diff added by drobinso42 (8KiB - text/plain)

 

Digest:
   bug dependencies.

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -unavailable- added by lachlan (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by jbect (Updated the item)
  • -unavailable- added by drobinso42 (Updated the item)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by jordigh (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 11 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 22 Feb 2016 01:12:07 AM UTCmtmillerOpen/ClosedOpen=>Closed
    Mon 15 Feb 2016 01:39:22 AM UTClachlanStatusPatch Submitted=>Duplicate
      Dependencies-=>Depends on bugs #44095
    Tue 22 Dec 2015 03:30:12 PM UTCmtmillerDependencies-=>bugs #46402 is dependent
    Sat 12 Sep 2015 09:20:32 PM UTCmtmillerDependencies-=>bugs #42291 is dependent
    Fri 25 Jul 2014 09:08:54 PM UTCjordighStatusConfirmed=>Patch Submitted
    Fri 25 Jul 2014 09:39:52 AM UTCjbectAttached File-=>Added tabCompletion_DRobinson.patch, #31775
    Mon 16 Jun 2014 02:41:31 PM UTCmtmillerDependencies-=>bugs #42570 is dependent
    Sun 26 Feb 2012 03:37:34 PM UTCdrobinso42Attached File-=>Added tabcompletion.diff, #25174
    Wed 26 Oct 2011 03:10:33 AM UTCrik5Dependencies-=>Depends on bugs #34444
    Sun 23 Oct 2011 02:03:42 AM UTCjordighStatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1