aboutsummaryrefslogtreecommitdiff
path: root/search.c (follow)
Commit message (Collapse)AuthorAgeLines
* search: map ctrl+b/f to move cursor single character backward/forwardDaniel Eklöf2019-08-30-2/+6
|
* search: ctrl+s searches forwardDaniel Eklöf2019-08-30-0/+18
|
* search: make search-direction configurableDaniel Eklöf2019-08-30-7/+23
|
* search: fix distance to prev word calculation when final cursor was 0Daniel Eklöf2019-08-30-1/+1
|
* search: implement move cursor word backward/forwardDaniel Eklöf2019-08-30-0/+18
|
* search: implement delete word backward/forwardDaniel Eklöf2019-08-30-2/+18
|
* search: utility functions distance_{next,prev}_word()Daniel Eklöf2019-08-30-0/+56
| | | | | These functions calculate the distance from the current cursor to the next/previous word.
* Revert "search: for now, reset search match state whenever the buffer changes"Daniel Eklöf2019-08-29-9/+0
| | | | This reverts commit 9c6ece747ed328b0e922597ec52646c00bb68c8c.
* search: for now, reset search match state whenever the buffer changesDaniel Eklöf2019-08-29-0/+9
|
* search: call render_search_box() from search_inptu()Daniel Eklöf2019-08-29-3/+1
|
* search: add basic cursor navigation supportDaniel Eklöf2019-08-29-2/+45
|
* search: insert new characters at cursor, not at the end of the bufferDaniel Eklöf2019-08-29-2/+7
|
* search: search_cancel: reset cursor positionDaniel Eklöf2019-08-29-0/+1
|
* search: turn info log to a debug logDaniel Eklöf2019-08-29-1/+1
|
* search: remove INFO log (that really was a debug log)Daniel Eklöf2019-08-29-1/+0
|
* search: don't destroy/recreate search (sub)surfaceDaniel Eklöf2019-08-29-27/+2
| | | | | | Create the sub-surface once, at startup. Then, instead of destroying it when committing/cancelling a search, unmap it (by attaching a NULL buffer to it).
* search: move render() function to the 'render' moduleDaniel Eklöf2019-08-29-80/+4
|
* search: move wayland surface variables into the term structDaniel Eklöf2019-08-29-24/+23
|
* search: use a sub-surface to render the search bufferDaniel Eklöf2019-08-29-14/+135
|
* search: cancel existing selection when starting a new searchDaniel Eklöf2019-08-28-0/+1
|
* search: log search buffer at INFO levelDaniel Eklöf2019-08-28-1/+1
| | | | ... until we actually render the search buffer somehow
* search: fix start/end row in selectionDaniel Eklöf2019-08-28-2/+16
|
* search: start search in current view, rather than from end-of-outputDaniel Eklöf2019-08-28-2/+4
|
* search: match case insensitiveDaniel Eklöf2019-08-27-2/+2
|
* search: sort includesDaniel Eklöf2019-08-27-1/+1
|
* search: disable log outputDaniel Eklöf2019-08-27-1/+1
|
* search: loop through the *entire* scrollback bufferDaniel Eklöf2019-08-27-2/+7
|
* search: cancel selection and clear match stats when we don't matchDaniel Eklöf2019-08-27-0/+5
|
* search: 'len' is unused in release builds (it's only used in an assert)Daniel Eklöf2019-08-27-1/+1
|
* search: return early after committing a searchDaniel Eklöf2019-08-27-0/+1
| | | | | This fixes an issue where the selection was finalized, but then cleared.
* search: search_update() is always called at end of search_input()Daniel Eklöf2019-08-27-1/+0
|
* search: don't create a new selection when match start coords haven't changedDaniel Eklöf2019-08-27-2/+8
|
* search: wip: initial search matchingDaniel Eklöf2019-08-27-1/+168
| | | | | | | | * 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.
* search: wip: re-direct input while searching, and build a search bufferDaniel Eklöf2019-08-27-0/+107
This adds a new state, 'is_searching'. While active, input is re-directed, and stored in a search buffer. In the future, we'll use this buffer and search for its content in the scrollback buffer, and move the view and create a selection on matches. When rendering in 'is_searching', everything is dimmed. In the future, we'll render the current search buffer on-top of the dimmed "regular" terminal output.