[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #60023] Tab completion gets confused for files
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #60023] Tab completion gets confused for files with hyphens |
Date: |
Tue, 9 Feb 2021 13:27:33 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36 |
Update of bug #60023 (project octave):
Severity: 3 - Normal => 1 - Wish
Priority: 5 - Normal => 3 - Low
Item Group: Performance => Feature Request
Status: None => Confirmed
Operating System: GNU/Linux => Any
_______________________________________________________
Follow-up Comment #1:
This is a known issue. I think it will be difficult to resolve. The typical
UNIX approach is to use underscores rather than hyphens which would resolve
this.
Consider this code
abc = 1;
xyz = 2;
xyz-abc
ans = 1
In this case, the hyphen/minus sign indicates a mathematical operation and a
break between variables (which can't have '-' in them). The 'Tab Completion'
operation has a definition of which characters can be variable or file names
and which are not and therefore indicate a break. In this case, if you type
'xyz-a<TAB>' the Readline library understands that '-' is not part of a name
and therefore it should look for matches beginning with the next character
'a'.
There are ways this could be made to work. If there were different completion
modes, one for variables and functions and one for file names, then each mode
could use a different set of characters for words. This might be possible
with Readline; I'm not sure though.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60023>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/