| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | search: map ctrl+b/f to move cursor single character backward/forward | Daniel Eklöf | 2019-08-30 | -2/+6 |
| | | ||||
| * | search: ctrl+s searches forward | Daniel Eklöf | 2019-08-30 | -0/+18 |
| | | ||||
| * | search: make search-direction configurable | Daniel Eklöf | 2019-08-30 | -7/+23 |
| | | ||||
| * | search: fix distance to prev word calculation when final cursor was 0 | Daniel Eklöf | 2019-08-30 | -1/+1 |
| | | ||||
| * | search: implement move cursor word backward/forward | Daniel Eklöf | 2019-08-30 | -0/+18 |
| | | ||||
| * | search: implement delete word backward/forward | Daniel Eklöf | 2019-08-30 | -2/+18 |
| | | ||||
| * | search: utility functions distance_{next,prev}_word() | Daniel Eklöf | 2019-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öf | 2019-08-29 | -9/+0 |
| | | | | | This reverts commit 9c6ece747ed328b0e922597ec52646c00bb68c8c. | |||
| * | search: for now, reset search match state whenever the buffer changes | Daniel Eklöf | 2019-08-29 | -0/+9 |
| | | ||||
| * | search: call render_search_box() from search_inptu() | Daniel Eklöf | 2019-08-29 | -3/+1 |
| | | ||||
| * | search: add basic cursor navigation support | Daniel Eklöf | 2019-08-29 | -2/+45 |
| | | ||||
| * | search: insert new characters at cursor, not at the end of the buffer | Daniel Eklöf | 2019-08-29 | -2/+7 |
| | | ||||
| * | search: search_cancel: reset cursor position | Daniel Eklöf | 2019-08-29 | -0/+1 |
| | | ||||
| * | search: turn info log to a debug log | Daniel Eklöf | 2019-08-29 | -1/+1 |
| | | ||||
| * | search: remove INFO log (that really was a debug log) | Daniel Eklöf | 2019-08-29 | -1/+0 |
| | | ||||
| * | search: don't destroy/recreate search (sub)surface | Daniel Eklöf | 2019-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' module | Daniel Eklöf | 2019-08-29 | -80/+4 |
| | | ||||
| * | search: move wayland surface variables into the term struct | Daniel Eklöf | 2019-08-29 | -24/+23 |
| | | ||||
| * | search: use a sub-surface to render the search buffer | Daniel Eklöf | 2019-08-29 | -14/+135 |
| | | ||||
| * | search: cancel existing selection when starting a new search | Daniel Eklöf | 2019-08-28 | -0/+1 |
| | | ||||
| * | search: log search buffer at INFO level | Daniel Eklöf | 2019-08-28 | -1/+1 |
| | | | | | ... until we actually render the search buffer somehow | |||
| * | search: fix start/end row in selection | Daniel Eklöf | 2019-08-28 | -2/+16 |
| | | ||||
| * | search: start search in current view, rather than from end-of-output | Daniel Eklöf | 2019-08-28 | -2/+4 |
| | | ||||
| * | search: match case insensitive | Daniel Eklöf | 2019-08-27 | -2/+2 |
| | | ||||
| * | search: sort includes | Daniel Eklöf | 2019-08-27 | -1/+1 |
| | | ||||
| * | search: disable log output | Daniel Eklöf | 2019-08-27 | -1/+1 |
| | | ||||
| * | search: loop through the *entire* scrollback buffer | Daniel Eklöf | 2019-08-27 | -2/+7 |
| | | ||||
| * | search: cancel selection and clear match stats when we don't match | Daniel Eklöf | 2019-08-27 | -0/+5 |
| | | ||||
| * | search: 'len' is unused in release builds (it's only used in an assert) | Daniel Eklöf | 2019-08-27 | -1/+1 |
| | | ||||
| * | search: return early after committing a search | Daniel Eklöf | 2019-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öf | 2019-08-27 | -1/+0 |
| | | ||||
| * | search: don't create a new selection when match start coords haven't changed | Daniel Eklöf | 2019-08-27 | -2/+8 |
| | | ||||
| * | search: wip: initial search matching | Daniel Eklöf | 2019-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 buffer | Daniel Eklöf | 2019-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. | ||||
