156 Commits

Author SHA1 Message Date
stk
5dd3e67802 Import stefanhaller's tcell fork for real rather than just replacing it
This solves the problem that people trying to
"go install github.com/jesseduffield/lazygit@latest" would get the error

go: github.com/jesseduffield/lazygit@latest (in github.com/jesseduffield/lazygit@v0.40.0):
  The go.mod file for the module providing named packages contains one or
  more replace directives. It must not contain directives that would cause
  it to be interpreted differently than if it were the main module.
2023-08-06 08:20:03 +02:00
Jesse Duffield
03e858e461 Better word wrap 2023-07-23 11:41:57 +10:00
Jesse Duffield
ea5c8b64cf Handle views of negative height
This fixes an issue where collapsed views did not update the origin
upon focus. Not a perfect fix because it still goes to the top of the list
but good enough to make a new release
2023-07-19 20:37:19 +10:00
Jesse Duffield
d6c452fc12 Add method 2023-07-02 15:45:02 +10:00
Jesse Duffield
79ec199b8c Add ContainsColoredText method to View
Used for integration tests that need to assert on coloured text
2023-06-01 22:18:15 +10:00
Jesse Duffield
0a0558d896 use mutexes to avoid race condition 2023-03-19 15:31:51 +11:00
Jesse Duffield
cd05644a8f
Merge pull request #31 from Ryooooooga/fix-data-race 2023-03-11 20:13:20 +11:00
Jesse Duffield
38a4deaa7f use mutex when getting selected line 2023-02-25 11:14:50 +11:00
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
9bfaed0c35
fix: prevent data race 2023-02-08 09:09:22 +09: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