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: anonymous
Subject: [Octave-bug-tracker] [bug #44095] readline configuration - tab autocompletion of paths
Date: Mon, 22 Jun 2015 20:38:00 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.124 Safari/537.36

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

I'm attaching a patch - it's against 3.6.2, because that's what we're using.
But it should be quite easy to port it to newer versions. 

The change is very simple - it uses the existing infrastructure of recognizing
if 'is_completing_dirfns()', and if so, it limits the word splitting
characters of GNU readline to minimum (space, tab, newline) using
'rl_completion_word_break_hook'. 

I did not test/think much about how weird things can people do with their
paths, so maybe some other reduced set of word breakers would be more
appropriate. 

But it works for sensible paths, and can be extended further. That's probably
what most users need.

liborm

(file #34298)
    _______________________________________________________

Additional Item Attachment:

File name: octave-3.6.2-directory-commands-can-autocomplete-across-slash.patch
Size:7 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]