Up Next:
+* Status line should omit characters from beginning of path to make file path fit
* clipboard does not persist after exit
* Run commands in the background and don't block the main thread.
* Make Fn keys execute nth command in the tags buffer
Straight-up Bugs:
-* ctrl+space selects too large of a word in some cases (function names followed by paren)
+* tab inserts dont coalesce like one would expect
* off by one error on scrolling up with wrapped lines
* Ctrl+u with a selection clears to bol *before* selected text
-* tab inserts dont coalesce like one would expect
The Future:
static void complete(void) {
View* view = win_view(FOCUSED);
- view_selword(view, SIZE_MAX, SIZE_MAX);
+ buf_getword(&(view->buffer), risword, &(view->selection));
+ view->selection.end = buf_byrune(&(view->buffer), view->selection.end, RIGHT);
PickTagCmd[1] = "print";
PickTagCmd[3] = view_getstr(view, NULL);
char* pick = cmdread(PickTagCmd, NULL);
size_t remlen = sizeof(status_bytes) - strlen(status_bytes) - 1;
strncat(status, path, remlen);
win_settext(STATUS, status_bytes);
+ win_view(STATUS)->selection = (Sel){0,0,0};
+
/* calculate and update scroll region */
View* view = win_view(EDIT);