Search addon: Support "find as you type"
See original GitHub issueIt would be nice to have a browser-style “find-as-you-type” logic. I think it would work if a couple functions were added:
findCurrentOrNext(needle)
findCurrentOrPrevious(needle)
These would expand the current selection if the
needle
is present at the 0-index of the current selection; otherwise they’d do a normalfindNext
orfindPrevious
.
Plan issue: #705
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Type-ahead-find
Overview. Find text or links as you type. Type-ahead-find [1] is an accessibility feature to search links and text faster on a webpage....
Read more >Keyboard Feature: Find As You Type - Mozilla
Type / before your string to search all text. You can use the text search field to get to buttons, text boxes and...
Read more >6 Chrome Extensions to Search for Multiple Words on a ...
Multi Search and Multi Jump is a Chrome browser extension. It lets you enter multiple words and will find all of them on...
Read more >9 Browser Extensions to Help You Search the Web Better
These add-ons strip out the junk to help you find what you're ... bar in Chrome or Edge—just type "wiki" followed by your...
Read more >brandon1024/find: A find-in-page extension for Chrome and ...
{find+} is a powerful find-in-page extension for Chrome and Firefox that allows you to search for content in a web page or document...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This may just be a matter of starting the search at the current cursor position, rather than the next line (or at the end of the search term). In that case maybe this makes more sense as an option?
https://github.com/xtermjs/xterm.js/blob/005785b84df3b6e88059bee4da43f7a16db54180/src/addons/search/Interfaces.ts#L24-L28
Yes, it makes sense. In case if user hits
enter
we perform regular search, in case if new symbol is readable we are updating the search term and reruning a whole routine. Now the goals are clear, thank you 😃