1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-17 00:18:05 +02:00
Commit Graph

40 Commits

Author SHA1 Message Date
1be6c522d8 fix: disable menu key binding while displaying popup 2023-02-09 20:13:41 +09:00
14ec0cd92e feat: allow null in keybindings 2022-10-18 22:20:03 +09:00
7410acd1aa move merge conflicts code into controller 2022-08-07 11:16:03 +10:00
524bf83a4a refactor to only have one context per view 2022-08-06 13:49:11 +10:00
ab5a8091f5 add better support for OpensMenu option when creating a menu 2022-07-30 20:27:51 +10:00
9693afd671 fix: fix lint error 2022-05-18 20:34:35 +09:00
6f8063217d rename displayString to label for menu items 2022-05-08 14:26:18 +10:00
f257740ea7 add tooltip view for showing menu item descriptions 2022-05-08 13:24:36 +10:00
897c4402a4 better colour 2022-03-27 18:16:16 +11:00
9c226eed37 allow menu to store keybindings for quick menu navigation 2022-03-27 18:16:16 +11:00
f0a4dcfdc3 refactor menu context 2022-03-27 18:16:16 +11:00
1b75ed3740 many more generics 2022-03-24 20:14:41 +11:00
c7a629c440 make more use of generics 2022-03-24 20:14:41 +11:00
a34bdf1a04 update linters 2022-03-19 12:12:57 +11:00
fb3752c11f clean up keybindings menu 2022-03-17 19:13:40 +11:00
ef7c4c9ca9 refactor custom commands
more custom command refactoring
2022-03-17 19:13:40 +11:00
d82f175e79 refactor contexts 2022-03-17 19:13:40 +11:00
482bdc4f1e more refactoring 2022-03-17 19:13:40 +11:00
138be04e65 refactor contexts code 2022-03-17 19:13:40 +11:00
1dd7307fde start moving commit panel handlers into controller
more

and more

move rebase commit refreshing into existing abstraction

and more

and more

WIP

and more

handling clicks

properly fix merge conflicts

update cheatsheet

lots more preparation to start moving things into controllers

WIP

better typing

expand on remotes controller

moving more code into controllers
2022-03-17 19:13:40 +11:00
a90b6efded start refactoring gui 2022-03-17 19:13:40 +11:00
ccd80a0e4b add menu options for log stuff 2021-11-05 07:58:21 +11:00
79848087bc Switch to github.com/gookit/color for terminal colors 2021-07-30 15:14:46 +02:00
798d3e2d54 get rid of these positively ghastly method signatures 2021-04-06 19:34:32 +10:00
1jz
50dd7b00c3 add colors to differentiate action and menu commands 2021-02-16 13:52:04 -08:00
37bb89dac3 type i18n 2020-10-10 00:23:01 +11:00
12f9b1416f better handling of global custom keybindings 2020-09-27 11:11:55 +10:00
67bbeb195b support custom keybindings 2020-09-27 09:49:30 +10:00
5b9996b16f remove old createMenu function 2020-02-15 08:47:36 +11:00
665fdded14 continue refactor of menu panel 2020-02-15 08:47:36 +11:00
529ba45cc7 fixed keybinding display in merge_panel.go 2020-01-07 09:50:25 -08:00
7e0a8f235e add contexts to views 2019-11-21 22:07:14 +11:00
d84dfc23e7 Rely on model rather than view to focus a point
Currently when we want to focus a point on a view (i.e. highlight a
line and ensure it's within the bounds of a view's box, we use the
LinesHeight method on the view to work out how many lines in total
there are.

This is bad because for example if we come back from editing a file,
the view will have no contents so LinesHeight == 0, but we might
be trying to select line 10 because there are actual ten things we
expect to be rendered already. This causes a crash when e.g. 10 is
greater than the height of the view.

So we need to pass in to our FocusPoint method the actual number of
items we want to render, rather than having the method rely on the
LinesHeight, so that the method knows to scroll a bit before setting
the cursor's y position.

Unfortunately this makes for some awkward code with our current setup.
We don't have a good interface type on these state objects so we now
need to explicitly obtain the len() of whatever array we're rendering.

In the case of the menu panel this is even more awkward because the items
list is just an interface{} and it's not easy to get the list of that, so
now when we instantiate a menu we need to pass in the count of items
as well.

The better solution would be to define an interface with a getItems
and getLength method and have all these item arrays become structs
implementing the interface, but I am too lazy to do this right now :)
2019-03-23 11:54:25 +11:00
198cbee498 introduce panel contexts and more work on rebasing 2019-02-16 12:07:27 +11:00
c101993405 post-merge cleanup 2019-02-11 22:47:14 +11:00
6430ab6ac9 Merge branch 'master' into feature/rebasing 2019-02-11 22:46:27 +11:00
cfe3605e6b use go-errors package to display stacktrace of errors that cause panics 2019-02-11 22:39:17 +11:00
9489a94473 Make merge panel its own panel 2018-12-11 22:02:12 +11:00
e91fb21233 add recent repos menu option 2018-09-19 19:15:29 +10:00
b384fcf6af generalise popup menu panel 2018-09-18 21:07:25 +10:00