Stefan Haller
59a937ee7a
Get rid of error return value of PostRefreshUpdate and a few related ones
...
I missed these in https://github.com/jesseduffield/lazygit/pull/3890 .
2024-10-13 16:55:54 +02:00
Stefan Haller
5659f1f3e9
Bump gocui
...
And adapt client code.
2024-09-06 08:45:48 +02:00
Stefan Haller
f98b57aa5e
Change direct access to Common.UserConfig to a getter
...
This will allow us to turn the field into an atomic.Value for safe concurrent
access.
2024-08-18 10:24:52 +02:00
Stefan Haller
caad553502
Remove ErrorMsg
...
There is no reason any more for application code to show error messages in a
panel. Just return an error instead.
2024-04-18 10:10:30 +02:00
Stefan Haller
1869fda800
Make OnWorker callback return an error
...
This lets us get rid of a few more calls to Error(), and it simplifies things
for clients of OnWorker: they can simply return an error from their callback
like we do everywhere else.
2024-04-18 10:10:30 +02:00
Stefan Haller
82a3d33ce3
Remove calls to Error()
...
Now that we have an error handler set, we can simply let them bubble up all the
way to gocui.
2024-04-18 10:10:30 +02:00
Jesse Duffield
4b0432423d
Reset origin when clearing view
2023-08-08 22:01:43 +10:00
Jesse Duffield
c92ed07082
Appease linter
2023-08-02 08:32:57 +10:00
Jesse Duffield
a200fccba9
Add explosion animation when nuking working tree
...
I've been thinking about this for a while: I think it looks really cool if nuking your working tree
actually results in a nuke animation.
So I've added an opt-out config for it
2023-08-01 22:16:04 +10:00
Jesse Duffield
d772c9f1d4
Use sentence case everywhere
...
We have not been good at consistent casing so far. Now we use 'Sentence case' everywhere. EVERYWHERE.
Also Removing 'Lc' prefix from i18n field names: the 'Lc' stood for lowercase but now that everything
is in 'Sentence case' there's no need for the distinction.
I've got a couple lower case things I've kept: namely, things that show up in parentheses.
2023-05-25 23:52:19 +10:00
Jesse Duffield
db12853bbe
lots of changes
2023-04-30 13:19:53 +10:00
Jesse Duffield
711674f6cd
standardise controller helper methods
2023-04-30 13:19:53 +10:00
Luka Markušić
0ae34aeeb7
Make discarding items less error prone
...
The menu is opened by `d` so this makes it harder to mess things up by
accidentally pressing `dd`.
2023-02-20 19:28:45 +11:00
Luka Markušić
241d182da7
Make tooltip i18n-able
2022-05-15 12:16:20 +02:00
Luka Markušić
ca191159f5
Discard staged changes only
2022-05-08 14:24:28 +02:00
Jesse Duffield
6f8063217d
rename displayString to label for menu items
2022-05-08 14:26:18 +10:00
Jesse Duffield
f257740ea7
add tooltip view for showing menu item descriptions
2022-05-08 13:24:36 +10:00
Jesse Duffield
3e5d4b2c74
add menu keybindings for various things
2022-03-27 18:16:16 +11:00
Jesse Duffield
8fd6338527
move workspace reset menu into controller
2022-03-17 19:13:40 +11:00