Skip to content
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

Commits on Dec 18, 2019

  1. 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.
    BridgeAR committed Dec 18, 2019
    Configuration menu
    Copy the full SHA
    e997e86 View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2019

  1. 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.
    BridgeAR committed Dec 19, 2019
    Configuration menu
    Copy the full SHA
    be0fe19 View commit details
    Browse the repository at this point in the history
  2. readline: small refactoring

    This just removes some redundant work and some other small things.
    BridgeAR committed Dec 19, 2019
    Configuration menu
    Copy the full SHA
    4a41ffc View commit details
    Browse the repository at this point in the history
  3. 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.
    BridgeAR committed Dec 19, 2019
    Configuration menu
    Copy the full SHA
    7f38f0a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    415d5a1 View commit details
    Browse the repository at this point in the history
  5. fixup: add big todo comment

    BridgeAR committed Dec 19, 2019
    Configuration menu
    Copy the full SHA
    19ded67 View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2019

  1. fixup: address comments

    BridgeAR committed Dec 20, 2019
    Configuration menu
    Copy the full SHA
    29fcab9 View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2019

  1. Configuration menu
    Copy the full SHA
    f3387ad View commit details
    Browse the repository at this point in the history