Jesse Duffield
7a98151b05
adjust cursor when scrolling to keep current line selected.
...
This means the cursor can now take on a negative value, so we'll need to keep an eye out for bugs that arise from that
2023-02-18 10:26:59 +11:00
Ryooooooga
c7131d3f28
fix: fix search with multibyte characters
2023-02-04 14:15:01 +09:00
Jesse Duffield
ef06450f4f
prevent infinite loop when x-origin of view is positive and there are no cells to print on the screen for a given row
2022-10-23 11:59:36 -07:00
Jesse Duffield
fead10f7b3
ignore NUL bytes instead of representing with spaces.
...
There's no need for NUL bytes to be shown as spaces when we're trying to render
the content of a view for test purposes, and showing them as spaces prevents
us from using Equals matchers on view content in integration tests.
2022-10-03 09:26:44 -07:00
Jesse Duffield
03ceb167b5
Merge pull request #22 from Ryooooooga/escape
2022-09-30 23:05:10 -07:00
Jesse Duffield
c90b0fa532
Merge pull request #17 from Ryooooooga/feature/fix-edit-wide
2022-09-30 19:46:47 -07:00
Ryooooooga
e659668de4
support ANSI invert escape sequence
2022-09-30 13:14:45 +09:00
Ryooooooga
652383224c
fix an issue where long inputs containing multibyte characters cause blank spaces on the right side
2022-09-23 19:56:08 +09:00
Ryooooooga
7498087915
fix: improve hard tab rendering
2022-09-23 19:56:00 +09:00
Jesse Duffield
499f40c329
updates for integration tests
2022-09-15 07:52:56 -07:00
Jesse Duffield
3a3ab26faa
support new integration test pattern
2022-08-13 20:10:52 +10:00
Jesse Duffield
dfd3eb22e1
only support one view per context
2022-08-06 13:20:55 +10:00
Ryooooooga
0cd3257281
fix: fix subtitle collision
2022-07-22 20:14:35 +09:00
Jesse Duffield
46492ecf92
refactor
2022-04-16 15:34:58 +10:00
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