libbb/lineedit: implement optional Ctrl-R history search
function old new delta read_line_input 3433 3957 +524 load_string 77 90 +13 input_tab 1086 1069 -17 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 537/-17) Total: 520 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -94,6 +94,14 @@ config FEATURE_EDITING_SAVEHISTORY
|
||||
help
|
||||
Enable history saving in shells.
|
||||
|
||||
config FEATURE_REVERSE_SEARCH
|
||||
bool "Reverse history search"
|
||||
default y
|
||||
depends on FEATURE_EDITING_SAVEHISTORY
|
||||
help
|
||||
Enable readline-like Ctrl-R combination for reverse history search.
|
||||
Increases code by about 0.5k.
|
||||
|
||||
config FEATURE_TAB_COMPLETION
|
||||
bool "Tab completion"
|
||||
default y
|
||||
|
Reference in New Issue
Block a user