You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the nice idea! (and the patches) But why stop at just repeating the previous input? What I would like to make possible is to guess it: If I enter one, two and threerlwrap should suggest four (and not just repeat three). Or, less far-fetched: only repeat the previous input if it ends with a space, or if the previous two input lines were identical.
This is the kind of flexibility that is made possible by filters. Currently, rlwrap doesn't allow a filter to suggest the next input, but $filter->handle_input() could be made to return two values: the re-written input line, and a suggestion for the next input line. There already are more filter types that return multiple values (like the hotkey and completion filters), so the machinery for that is in place.
We could even add a Boolean erase_on_keypress return value that determines whether the suggested input should disappear when a non-arrow key is hit.
Hello!
I'd like rlwrap to have an option
--retain
to retain the last typed command. It should work like prompt, except it should be editable by the user.Inputting a command and then pressing enter again
n
times would cause the same command to be sentn+1
times in total.Ideally, starting typing would erase whatever's in the previous input buf without needing any backspacing / ctrl-u.
The text was updated successfully, but these errors were encountered: