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

88 Commits

Author SHA1 Message Date
b3215a750c Cleanup: get rid of the variadic parameter of ContextMgr.Push
Apparently this was an attempt at working around go's lack of default arguments,
but it's very unidiomatic and a bit confusing. Make it a normal parameter
instead, so all clients have to pass it explicitly.
2025-04-08 16:08:25 +02:00
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
371998e635 Remove return value of IContextMgr.Push/Pop et. al. 2024-09-06 08:45:48 +02:00
bd36b8a95e Replace PushContext() with Context().Push() 2024-08-17 11:14:50 +02:00
7e92dbfd3d Add menu prompt
This makes it possible to add a prompt to a menu. It will be shown above the
menu items, separated from them by a blank line.
2024-06-23 12:33:16 +02:00
f933a2f7ec Replace min/max helpers with built-in min/max
We upgraded our minimum Go version to 1.21 in commit
57ac9c2189. We can now replace our
`utils.Min` and `utils.Max` functions with the built-in `min` and `max`.

Reference: https://go.dev/ref/spec#Min_and_max
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2024-04-07 23:24:10 +08:00
54bd94ad24 Add SetSelection function for list contexts and use it in most places
The only time we should call SetSelectedLineIdx is when we are happy for a
select range to be retained which means things like moving the selected line
index to top top/bottom or up/down a page as the user navigates.

But in every other case we should now call SetSelection because that will
set the selected index and cancel the range which is almost always what we
want.
2024-01-19 10:47:21 +11:00
94bf279b5a Remove the magenta color on menu items that open a menu
It's distracting. But keep the ellipsis.
2023-08-29 08:04:47 +02:00
87bf1dbc7f Only apply right-alignment on first column of keybindings menu
Previously we applied a right-align on the first column of _all_ menus, even though we really
only intended for it to be on the first column of the keybindings menu (that you get from pressing
'?')
2023-07-20 21:23:46 +10:00
a9e2c8129f Introduce filtered list view model
We're going to start supporting filtering of list views
2023-07-03 12:54:13 +10:00
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
509e3efa70 lots more refactoring 2023-04-30 13:19:53 +10:00
7410acd1aa move merge conflicts code into controller 2022-08-07 11:16:03 +10:00
ab5a8091f5 add better support for OpensMenu option when creating a menu 2022-07-30 20:27:51 +10:00
6f8063217d rename displayString to label for menu items 2022-05-08 14:26:18 +10:00
22d98249fe better popup resizing logic 2022-05-08 13:24:36 +10:00
f257740ea7 add tooltip view for showing menu item descriptions 2022-05-08 13:24:36 +10: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
120078f011 use PopContext 2022-03-17 19:13:40 +11:00
b93b8cc00a controller for viewing sub commits 2022-03-17 19:13:40 +11:00
d82f175e79 refactor contexts 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
8d8bdb948b avoid deadlock in merge panel 2022-01-15 14:15:41 +11:00
cdcfeb396f stop refreshing the screen so much 2022-01-15 14:15:41 +11:00
8263d15b03 fix issue where custom command would not open a menu 2022-01-15 10:14:19 +11:00
01ea5813a8 align Gui struct with GitCommand 2022-01-04 09:07:15 +11:00
1996eddd91 more efficient context diff size changing 2021-12-06 22:37:28 +11:00
ccd80a0e4b add menu options for log stuff 2021-11-05 07:58:21 +11:00
2fc1498517 some refactoring in anticipation of the graph feature 2021-11-01 10:03:49 +11:00
652c97d239 honour options menu press 2021-09-27 19:41:38 +10:00
39c8577074 Use static context 2021-06-16 15:00:17 +10:00
0c135515a5 Use parent view for tab navigation 2021-06-16 15:00:17 +10:00
cf78b86cb5 more support for command log and more code reuse for contexts 2021-04-11 17:07:49 +10:00
4fe512ff3a test
type safe view access
2021-04-06 19:34:32 +10:00
0898a7bb57 refactor 2021-04-06 19:34:32 +10:00
bc9a99387f refactor of contexts and filtering 2021-04-06 19:34:32 +10:00
798d3e2d54 get rid of these positively ghastly method signatures 2021-04-06 19:34:32 +10:00
da3b0bf7c8 Start on supporting auto-suggestions when checking out a branch
switch to other fuzzy package with no dependencies
2020-11-28 20:48:17 +11:00
37bb89dac3 type i18n 2020-10-10 00:23:01 +11:00
4912205adb remove viper
WIP
2020-10-10 00:23:01 +11:00
8dae54ab8c fix panic 2020-09-26 11:56:22 +10:00
fda9f4ea7a centralise logic for rendering options map 2020-08-23 14:29:18 +10:00
146722beb8 rename to SelectedLineIdx 2020-08-23 14:29:18 +10:00
99707a527d WIP 2020-08-23 14:29:18 +10:00
ac0eedda91 lots more stuff 2020-08-23 14:29:18 +10:00
e87635295a dont check for error when sending view to bottom 2020-08-23 14:29:18 +10:00
7f89113245 WIP 2020-08-23 14:29:18 +10:00