22 Commits

Author SHA1 Message Date
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
1755e1461d remove old recording stuff 2023-03-24 18:38:11 +11:00
yk-kd
fcbedd46c6 changes to support new borders 2023-01-06 10:40:13 +09:00
Jesse Duffield
22d48fda22 smaller 2022-09-15 20:49:37 -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
24baf341da some changes in anticipation of graph feature 2021-11-01 09:32:53 +11:00
Jesse Duffield
aa62b56c15 better handling of random encodings 2021-09-27 19:49:55 +10:00
Jesse Duffield
a2bb4baca3 support suspense 2021-04-10 11:11:17 +10:00
Jesse Duffield
e79dab8f77 remove cache stuff because after measuring it actually decreases performance 2021-04-05 19:37:08 +10:00
Jesse Duffield
439abd8b6e support recording events 2021-04-05 14:18:26 +10:00
Jesse Duffield
a3be78c4cc wrap cache in mutex 2021-04-03 15:57:16 +11:00
Jesse Duffield
6fd7ef27ce caching styling to improve drawing speed 2021-04-02 22:32:10 +11:00
Jesse Duffield
77a1b96317 support alt-enter key 2021-04-02 15:07:18 +11:00
Jesse Duffield
1238f910f0 support mouse wheel scrolling 2021-04-02 14:34:12 +11:00
Jesse Duffield
df403d2beb do not create a mouse event on hover 2021-02-11 21:30:34 +11:00
Jesse Duffield
66c577279d make screen public 2021-02-09 22:18:48 +11:00
Jesse Duffield
347bedd836 enable mouse dragging 2021-02-09 21:47:58 +11:00
Jesse Duffield
f5a9733d18 awesome WIP
WIP

WIP

WIP

WIP

WIP
2020-12-24 15:19:37 +11:00