133 Commits

Author SHA1 Message Date
Jesse Duffield
ae531166c8 add scrollbar 2022-04-16 15:26:59 +10:00
Jesse Duffield
2eb424ce3d honour last character 2022-04-15 10:55:42 +10:00
Jesse Duffield
a826601ada better highlighting logic 2022-04-15 10:02:11 +10:00
Ryooooooga
a90957add6
Fix wide chars and eraseInLineFromCursor 2022-02-28 21:01:18 +09:00
Jesse Duffield
1945d7b9ed brighter highlighted lines 2022-01-08 15:55:21 +11:00
Jesse Duffield
40df0be5a4 move mutex 2021-11-02 21:44:58 +11:00
Jesse Duffield
be3a05cf71 more origin stuff 2021-11-02 20:34:57 +11:00
Jesse Duffield
e4eee64f4d small changes 2021-11-02 19:15:36 +11:00
Jesse Duffield
24baf341da some changes in anticipation of graph feature 2021-11-01 09:32:53 +11:00
Jesse Duffield
681a61c53e fix issue with delta trying to finish the current line with the existing colouring 2021-10-24 15:12:48 +11:00
Jesse Duffield
f4cc40fed3 remove dead code 2021-10-24 15:12:23 +11:00
Jesse Duffield
e634aaf073 very small refactor 2021-10-24 15:12:13 +11:00
Jesse Duffield
b8e4f0899f better autoscroll behaviour 2021-10-24 15:11:55 +11:00
Jesse Duffield
c74848d8ad reset origin when clearing text area 2021-10-17 17:37:15 +11:00
Jesse Duffield
0ec562dfd2 fix 2021-10-17 15:11:19 +11:00
Jesse Duffield
b68948e63c fix editor problems 2021-10-17 14:52:23 +11:00
Jesse Duffield
ee65bd542c prevent issues from re-rendering views 2021-04-12 21:32:12 +10:00
Jesse Duffield
6ef019af37 handle resizing properly 2021-04-12 21:10:08 +10:00
Jesse Duffield
210802112d better way to reduce flicker 2021-04-09 22:10:40 +10:00
Jesse Duffield
95ef6e1377 allow rewinding and flushing stale content 2021-04-06 16:58:11 +10:00
Jesse Duffield
439abd8b6e support recording events 2021-04-05 14:18:26 +10:00
Jesse Duffield
3054df7861 fix wide space typing 2021-02-11 21:03:12 +11:00
Jesse Duffield
56085399e3 allow zero sized views 2021-02-09 21:54:33 +11:00
Jesse Duffield
f5a9733d18 awesome WIP
WIP

WIP

WIP

WIP

WIP
2020-12-24 15:19:37 +11:00
Jesse Duffield
8a6768078f support erase-in-line escape sequence when code is zero 2020-10-11 09:48:02 +11:00
Jesse Duffield
53875d55c3 handle out of bounds errors 2020-10-02 09:14:00 +10:00
Jesse Duffield
8cde0b9be5 support highlighting background of selected item 2020-05-13 21:00:02 +10:00
Jesse Duffield
7765949e1c support case insensitive search 2020-03-09 11:10:02 +11:00
Jesse Duffield
5024a02682 add ContainsList view field to show current item index and total count in frame 2020-02-25 07:16:55 +11:00
Jesse Duffield
3e1f0f7c3e support searching in views 2020-02-23 21:51:15 +11:00
Jesse Duffield
54fcea7731 remove mutex from escape code and add mutex to view's draw method 2020-02-14 20:07:01 +11:00
Jesse Duffield
874f1f64ad safer reading on buffer lines 2020-01-12 13:27:28 +11:00
Jesse Duffield
b13bda3195 support setting contexts on keybindings 2019-11-16 12:39:47 +11:00
Jesse Duffield
716e2ea8b7 add ability to get selected point within a view 2019-11-10 16:37:19 +11:00
Jesse Duffield
3cf1932858 swallow some errors that don't really matter 2019-10-30 20:47:31 +11:00
Jesse Duffield
ad0cd60f29 add ViewLinesHeight function 2019-08-03 12:36:16 +10:00
Jesse Duffield
117e4fb79d support tabs and parent views for bubbling up key presses 2019-06-29 13:29:23 +10:00
Jesse Duffield
32197598ed support setting tab keybindings 2019-06-29 11:26:19 +10:00
Jesse Duffield
d99ac1a5a2 extend mouse events to include view frame edges 2019-06-29 10:35:26 +10:00
Jesse Duffield
e030e03fac allow ignoring carriage returns on a view 2019-06-23 08:12:29 +10:00
Jesse Duffield
619845fffd support tabs on views 2019-06-09 12:01:46 +10:00
Jesse Duffield
efab7b041c reset escape interpreter on clear, and clear with a lock 2019-06-05 20:07:02 +10:00
Jesse Duffield
77d7618000 add IsTainted function 2019-05-18 20:00:17 +10:00
Jesse Duffield
9f871b6b9d use defer rather than call unlock at end of function 2019-05-18 12:49:10 +10:00
Jesse Duffield
3cd3a41702 use mutex when writing to views to prevent out of bounds panics 2019-05-18 12:44:28 +10:00
Jesse Duffield
e70eea4359 add loader animations to views with the HasLoader bool set 2019-02-15 20:51:46 +11:00
Jesse Duffield
985c2f8d59 use go-errors package to give stack traces to new errors 2019-02-11 21:59:59 +11:00
Jesse Duffield
cfa9e452ba don't truncate lines on wrapped views 2019-01-15 19:47:58 +11:00
Jesse Duffield
fe55a32c8a convert tab runes to 4 spaces 2018-12-09 21:47:58 +11:00
Jesse Duffield
03e26ff3f1 use LinesHeight instead of ViewLinesHeight 2018-09-21 16:56:32 +10:00