octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #44095] readline configuration - tab autocompl


From: Lachlan Andrew
Subject: [Octave-bug-tracker] [bug #44095] readline configuration - tab autocompletion of paths
Date: Thu, 17 Dec 2015 11:43:12 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0

Follow-up Comment #19, bug #44095 (project octave):

The attached changeset does roughly what jwe was asking for.

Whenever a completion occurs, it looks for file completions as well as
variable or function completions, by looking at the space-delimited tail of
the command line.

It makes a first cut at handling quoted strings, but has lots of rough edges
still.

It uses a hack to detect if a string is a directory -- copying from libgnu-hg.
 Is there an Octave "is_directory" function or some such?

It also needs to remove the check "matches > 0" (i.e., at least one
variable/function is a valid completion) from the code that returns a
non-empty completion.  Will that cause troubles?

(file #35778)
    _______________________________________________________

Additional Item Attachment:

File name: bug_44095.cset                 Size:8 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?44095>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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