Maria José Solano
595ac9465e
Add a TitlePrefix field to View
2023-09-09 09:39:42 +02:00
Simon Whitaker
b8cfdbe54a
Add mouse event support
...
Needed so I can write an integration test for https://github.com/jesseduffield/lazygit/pull/2883 , but should be useful in other situations too.
2023-08-06 11:10:58 +01:00
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
stk
49bc38fb19
Add FocusHandler
...
I decided to make this a global handler that can be set only once. Alternatively
we could consider dispatching focus events to the focused view similar to how we
do with key bindings; but then we'd need a way to dispatch it to parent views
that might also be interested. Since we don't need this functionality (yet?) I
went with the simplest solution for now.
2023-08-02 08:19:25 +02:00
Jesse Duffield
398f496524
Support passing width/height of simulation screen
...
Also switching from position args to an opts struct for NewGui given how many args we had
2023-07-19 22:04:01 +10:00
Jesse Duffield
9bbfd87371
Refactor
2023-07-10 10:44:07 +10:00
Jesse Duffield
44d9f78b4b
better handling of tasks
2023-07-09 20:54:00 +10:00
Jesse Duffield
f7e1c7c168
Add tracking of busy/idle state
2023-07-08 22:24:37 +10:00
Jesse Duffield
1755e1461d
remove old recording stuff
2023-03-24 18:38:11 +11:00
Jesse Duffield
cd05644a8f
Merge pull request #31 from Ryooooooga/fix-data-race
2023-03-11 20:13:20 +11:00
Jesse Duffield
06a1f1e95d
add snapshot function for testing
2023-02-19 14:48:34 +11:00
Jesse Duffield
d870d1e1c6
do not set cursor on mouse scroll
2023-02-18 10:26:27 +11:00
Ryooooooga
9bfaed0c35
fix: prevent data race
2023-02-08 09:09:22 +09:00
Ryooooooga
9cdf1743ce
fix: fix subtitle position
2023-01-26 21:56:58 +09:00
Ryooooooga
c0956a0eec
feat: change StartTicking to receive ctx
2023-01-03 23:09:47 +09:00
Ryooooooga
179315ce35
fix: fix goroutine leak
2022-12-02 20:35:27 +09:00
Ryooooooga
16bd199adb
chore: add comment for nil keybindings
2022-10-16 09:01:09 +09:00
Ryooooooga
daeb1d2f0d
feat: allow nil in keybindings
2022-10-15 22:13:27 +09:00
Jesse Duffield
3b1444b7ce
add CopyContent function
2022-10-02 20:30:55 -07: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
bce22fd599
hide views with x bounds in the wrong order
2022-04-17 10:29:12 +10:00
Jesse Duffield
5b19e175bc
missed another spot
2022-04-16 15:39:10 +10:00
Jesse Duffield
bf2ef335f9
missed a spot
2022-04-16 15:37:52 +10: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
a826601ada
better highlighting logic
2022-04-15 10:02:11 +10:00
Jesse Duffield
69f0c798ee
better handling of click events
2022-02-27 13:27:29 +11:00
Jesse Duffield
82fe47ec96
allow deleting all keybindings
2022-01-31 22:09:21 +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
e634aaf073
very small refactor
2021-10-24 15:12:13 +11:00
Ryooooooga
3c5c9299d0
Fix title rendering
2021-10-17 20:42:56 +09:00
Jesse Duffield
aa62b56c15
better handling of random encodings
2021-09-27 19:49:55 +10:00
Jesse Duffield
de7e4a8d6b
Update gui.go
2021-06-14 18:14:32 +10:00
Jesse Duffield
3dfb54636c
Update gui.go
2021-06-14 18:13:54 +10:00
Jesse Duffield
c0280f7b40
Update gui.go
2021-06-14 18:13:49 +10:00
Jesse Duffield
7e094b5393
Update gui.go
2021-06-14 18:13:45 +10:00
Andrei Yangabishev
8a3c45e4fd
ShowTotal flag
2021-06-10 12:21:38 +03:00
Jesse Duffield
37f7943420
remove force flushing and instead allow writing to a string to an editor
2021-04-17 21:07:45 +10:00
Jesse Duffield
bdf37de5c9
allow force flushing gui for when we have methods depending on the view (i.e. editors)
2021-04-17 20:52:14 +10: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
a2bb4baca3
support suspense
2021-04-10 11:11:17 +10:00
Jesse Duffield
30b8db7085
only taint view if dimensions change when calling SetView
2021-04-09 22:10:01 +10:00
Jesse Duffield
1b0c684140
use float64 for speed of recording playbacks
2021-04-06 16:59:42 +10:00
Jesse Duffield
439abd8b6e
support recording events
2021-04-05 14:18:26 +10:00
Jesse Duffield
d958b7dc83
prevent deadlock
2021-04-05 14:18:21 +10:00