mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-14 05:33:59 -04:00
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:
parent
61cabdac13
commit
aee5045395
3 changed files with 187 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue