History recall "!" feature improvement: add a "No match" message. Implement a selection list
@sgougeon)
Reported by Samuel GOUGEON (BUG DESCRIPTION:
----------------
The history recall mechanism triggered by using "!" as the very first character in the Java console is very useful.
However, it could be improved in two ways:
* when no match is found in the history, nothing happens. For people who does not know the feature
(or who has forgotten that it is available), this could be easily puzzling and felt as a bug.
=> when no match is found, Scilab shall print a message "No match found in history"
* A listbox listing matches could be displayed, to select the only entry searched for.
This might be done in two ways :
- either typing "!" + one char as the very first characters would enter a
completion mode based on the history, with matches listed in a listbox
as described hereabove
- or this could be done only after validating with <enter>, or CTRL+space
as for the completion feature (but here targeted to the history with the leading "!")
If a completion mode is implemented, then the message "no match found in history"
could be displayed in the listbox instead of in the console (note that the general
completion feature triggered with CTRL+space displays nothing when no match is found).
HOW TO REPRODUCE THE BUG:
-------------------------
!not_yet_in_the_history // <= enter this : nothing happens. Nothing is displayed.
OTHER INFORMATION:
------------------
Theses propositions were posted here:
https://www.mail-archive.com/users@lists.scilab.org/msg07492.html
Edited by Vincent COUVERT