From aee5045395ca2393b60d962e6e9440a59edbfd6e Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 27 Aug 2019 19:33:19 +0200 Subject: 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. --- terminal.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index fbd734bc..5989788a 100644 --- a/terminal.h +++ b/terminal.h @@ -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; -- cgit v1.3