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

82 Commits

Author SHA1 Message Date
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
44d8b3e8f3 allow overriding default confirm/escape keybindings 2020-08-17 18:22:57 +10:00
9b7a6934b3 more removing of g 2020-08-15 18:01:43 +10:00
cc872b0444 menu view 2020-08-15 18:01:43 +10:00
d9fa02c53b clean up interface for popup panels 2020-08-15 18:01:43 +10:00
845c80721f Decouple escaping from quitting
When a user is not entering text into a prompt, the 'q' key should immediately
quit the application. On the other hand, the 'esc' key should cancel/close/go-back
to the previous context.

If we're at the surface level (nothing to cancel/close) and the user hits the
escape key, the default behaviour is to close the app, however we now have a
`quitOnTopLevelReturn` config key to override this.

I actually think from the beginning we should have made this config option
default to false rather than true which is the default this PR gives it,
but I don't want to anger too many people familiar with the existing behaviour.
2020-07-18 20:00:48 +10:00
07a8ae8c3e add handler for searching in menu 2020-04-21 19:28:31 +10:00