| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | search: match_to_end_of_word: reset end_col when done with a row | Daniel Eklöf | 2019-12-03 | -0/+2 |
| | | ||||
| * | search: match_to_end_of_word: bug: reset end-col when bumping end-row | Daniel Eklöf | 2019-12-03 | -1/+3 |
| | | | | | | | | | When we calculate the end coords, we must reset end-col when we reach the end of the line and bump the end-row. This fixes an issue where bumping the row once lead to the end row being bumped for *each* remaining match character. | |||
| * | search: bug: restore end-col/end-row adjustment | Daniel Eklöf | 2019-12-03 | -2/+4 |
| | | | | | | Turns out end_col *can* be exactly 0. In this case, we need to adjust the end-row too. | |||
| * | search: bug: re-initialize start-row when attempting a new match | Daniel Eklöf | 2019-12-03 | -4/+4 |
| | | | | | | | When we've already found a partial match (but *not* a complete match), and that match spanned multiple lines, then when we continued with the next start-column we re-used a know-wrong row pointer. | |||
| * | search: map ctrl+shift+w to match to end of word, spaces only | Daniel Eklöf | 2019-12-03 | -4/+7 |
| | | | | | | This works just like ctrl+w, except that the only space separating characters are whitespaces. | |||
| * | search: search_match_to_end_of_word: rename start_{row,col} -> end_{row,col} | Daniel Eklöf | 2019-12-03 | -8/+10 |
| | | ||||
| * | search: split up search_update() into two | Daniel Eklöf | 2019-12-03 | -68/+71 |
| | | | | | | | | | | * search_find_next() searches the scrollback, continuing from the last match. The assumption is that the search buffer has changed. * search_update_selection() updates the selection and moves the view to ensure the selection is visible. Note that it doesn't verify the selection actually matches the search buffer. | |||
| * | search: rename search_update() -> search_find_next() | Daniel Eklöf | 2019-12-03 | -3/+3 |
| | | ||||
| * | search: map ctrl+w to 'extend current selection to end of word' | Daniel Eklöf | 2019-12-03 | -0/+75 |
| | | | | | | | | If the user has started a scrollback search and have some matching text, he can now press ctrl+w to extend that selection (and thus the search criteria too) to the end of the current word, or to the end of the next word if currently at a word separating character. | |||
| * | search: discard canceled compose sequences | Daniel Eklöf | 2019-12-03 | -0/+2 |
| | | ||||
| * | Revert "search: discard canceled compose sequences" | Daniel Eklöf | 2019-12-03 | -4/+0 |
| | | | | | This reverts commit f67733c0e3a4e4ba19e1c70bc36ee78af762868f. | |||
| * | search: discard canceled compose sequences | Daniel Eklöf | 2019-12-03 | -0/+4 |
| | | ||||
| * | search: remove debug log | Daniel Eklöf | 2019-12-03 | -1/+0 |
| | | ||||
| * | search: don't line-wrap unless we actually have a match on the next row | Daniel Eklöf | 2019-12-03 | -4/+6 |
| | | | | | | | | | When matching characters, we moved on to next row directly after matching the last character in a row. This was wrong since if that last character was the last matching character, we tried to create a selection that was on the wrong row. | |||
| * | search: break out search buffer resize code to a new function | Daniel Eklöf | 2019-12-03 | -12/+21 |
| | | ||||
| * | Add missing includes | Daniel Eklöf | 2019-12-01 | -0/+1 |
| | | ||||
| * | search: update xcursor when starting and ending a search | Daniel Eklöf | 2019-11-29 | -0/+2 |
| | | ||||
| * | wayland: implement wayl_init() | Daniel Eklöf | 2019-10-27 | -2/+2 |
| | | | | | Wayland instantiation is now done by the wayland backend, not in main. | |||
| * | term: wayland struct is now not a part of the terminal struct | Daniel Eklöf | 2019-10-27 | -9/+9 |
| | | | | | | | We do however need access to it, so provide a pointer. The difference is that now we can have a *single* wayland instance, but multiple terminal instances. | |||
| * | wayland: change all wayland callbacks to take a wayland pointer | Daniel Eklöf | 2019-10-27 | -1/+1 |
| | | | | | | Instead of passing the terminal to the wayland callbacks, pass a 'struct wayland' pointer. | |||
| * | kbd: move into wayland | Daniel Eklöf | 2019-10-27 | -8/+8 |
| | | ||||
| * | term: move per-window wayland objects from wayland struct to terminal struct | Daniel Eklöf | 2019-10-27 | -2/+2 |
| | | | | | | | | | Short term, we want to break out the wayland backend from the terminal struct. Long term, we might want to support multiple windows. One step towards both the above is separating global wayland objects from per-window objects. | |||
| * | 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. | ||||
