search: wip: initial search matching

* match search buffer against scrollback content
* adjust view to ensure matched content is visible
* create selection on a successful match
* finalize selection when user presses enter (to "commit" the search)
* ctrl+r searches for the next match. Needs more work though.
This commit is contained in:
Daniel Eklöf 2019-08-27 19:33:19 +02:00
parent 61cabdac13
commit aee5045395
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 187 additions and 3 deletions

View file

@ -336,6 +336,11 @@ struct terminal {
wchar_t *buf;
size_t len;
size_t sz;
int original_view;
bool view_followed_offset;
struct coord match;
size_t match_len;
} search;
struct grid normal;