[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44095] readline configuration - tab autocompl
From: |
Libor Morkovsky |
Subject: |
[Octave-bug-tracker] [bug #44095] readline configuration - tab autocompletion of paths |
Date: |
Fri, 17 Jul 2015 07:59:16 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.132 Safari/537.36 |
Follow-up Comment #5, bug #44095 (project octave):
The rebased version looks good to me.
I created the patch with git, because I used the tarball as source - had some
checkout issues with hg, and I'm more familiar with git..
My suggested commit message, I tried to be concise:
directory commands can autocomplete across slash (bug #44095)
* libinterp/corefcn/input.cc (dir_word_breaker) Add a context sensitive
function returning word delimiters for GNU readline, limiting the
character set to only space, tab and newline for directory commands
- currently 'ls' and 'cd'.
(generate_completion) Register the dir_word_breaker function with
current command_editor.
* liboctave/util/cmd-edit.cc (gnu_readline::*, command_editor::*) Add
word break callback setter mimicking the structure of other callbacks.
* liboctave/util/cmd-edit.h (command_editor::*) Add word break callback
setter mimicking the structure of other callbacks.
* liboctave/util/oct-rl-edit.c (octave_rl_set_word_break_function) Add a
function that sets GNU readline variable rl_completion_word_break_hook.
* liboctave/util/oct-rl-edit.h Add a type definition and setter function
for GNU readline variable rl_completion_word_break_hook.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44095>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/