-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
repl: add reverse search #31006
Closed
Closed
repl: add reverse search #31006
Commits on Dec 18, 2019
-
repl: fix preview of lines that exceed the terminal columns
This adds support for very long input lines to still display the input preview correct.
Configuration menu - View commit details
-
Copy full SHA for e997e86 - Browse repository at this point
Copy the full SHA e997e86View commit details
Commits on Dec 19, 2019
-
repl: implement reverse search
Add a reverse search that works similar to the ZSH one. It is triggered with <ctrl> + r and <ctrl> + s. It skips duplicated history entries and works with multiline statements. Matching entries indicate the search parameter with an underscore and cancelling with <ctrl> + c or escape brings back the original line. Multiple matches in a single history entry work as well and are matched in the order of the current search direction. The cursor is positioned at the current match position of the history entry. Changing the direction immediately searches checks for the next entry in the expected direction from the current position on. Entries are accepted as soon any button is pressed that doesn't correspond with the reverse search. The behavior is deactivated for simple terminals. They do not support most ANSI escape codes that are necessary for this feature.
Configuration menu - View commit details
-
Copy full SHA for be0fe19 - Browse repository at this point
Copy the full SHA be0fe19View commit details -
This just removes some redundant work and some other small things.
Configuration menu - View commit details
-
Copy full SHA for 4a41ffc - Browse repository at this point
Copy the full SHA 4a41ffcView commit details -
readline: set null as callback return in case there's no error
The cursor move functions accept a callback. It was possible that `undefined` was returned in case there was no error instead of null.
Configuration menu - View commit details
-
Copy full SHA for 7f38f0a - Browse repository at this point
Copy the full SHA 7f38f0aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 415d5a1 - Browse repository at this point
Copy the full SHA 415d5a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 19ded67 - Browse repository at this point
Copy the full SHA 19ded67View commit details
Commits on Dec 20, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 29fcab9 - Browse repository at this point
Copy the full SHA 29fcab9View commit details
Commits on Dec 21, 2019
-
Configuration menu - View commit details
-
Copy full SHA for f3387ad - Browse repository at this point
Copy the full SHA f3387adView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.