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

Added support for searching by regular expression #1666

Merged
merged 4 commits into from Sep 8, 2018

Conversation

alexr00
Copy link
Contributor

@alexr00 alexr00 commented Sep 7, 2018

Fixes #1656

Copy link
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of the test cases I would expect to work don't seem to:

  • /al*ex to search ~/dev/alexr00/...
  • ^~, ^[~], ^\~ to search ~/dev
  • test$ to search for a line ending in "test", we want this to be aware of wrapped text so $ should only find the the end of a wrapped sequence (with whitespace at the end trimmed off)

src/addons/search/SearchHelper.ts Outdated Show resolved Hide resolved
@Tyriar Tyriar added this to the 3.8.0 milestone Sep 8, 2018
@Tyriar
Copy link
Member

Tyriar commented Sep 8, 2018

Looks good, just made a few tweaks such that you can pass in an incomplete ISearchOptions (so we don't break the API) and also made sure the tests didn't lose typing information.

@Tyriar Tyriar merged commit 520daca into xtermjs:master Sep 8, 2018
@alexr00 alexr00 deleted the alexr00/searchRegex branch September 13, 2018 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants