1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-12 11:15:00 +02:00
lazygit/pkg
Stefan Haller 7f9818cfa2 Add DisabledReason field to MenuItem
This is useful to disable items that are not applicable right now because of
some condition (e.g. the "delete branch" menu item when the currently
checked-out branch is selected).

When a DisabledReason is set on a menu item, we
- show it in a tooltip (below the regular tooltip of the item, if it has one)
- strike through the item's key, if it has one
- show an error message with the DisabledReason if the user tries to invoke the
  command
2023-09-18 10:15:11 +02:00
..
app Add AppState to common.Common 2023-09-04 17:48:39 +02:00
cheatsheet Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
commands Add coauthor (#2) 2023-09-09 07:18:47 -05:00
common Add AppState to common.Common 2023-09-04 17:48:39 +02:00
config Change the default of the "gui.borders" config to "rounded" 2023-09-09 10:42:24 +02:00
constants update release notes 2021-04-20 18:34:47 +10:00
env Support bare worktrees where worktree does not have its own .git file 2023-08-07 22:40:53 +10:00
fakes cleanup integration test code 2023-02-26 12:54:13 +11:00
gui Add DisabledReason field to MenuItem 2023-09-18 10:15:11 +02:00
i18n Add DisabledReason field to MenuItem 2023-09-18 10:15:11 +02:00
integration Rename test/results to test/_results 2023-09-15 18:04:20 +02:00
logs Remove secureexec package 2023-07-30 19:59:51 +10:00
snake integrate snake game into lazygit 2022-12-30 12:18:59 +11:00
tasks Remove secureexec package 2023-07-30 19:59:51 +10:00
theme Add a "Mark commit as base commit for rebase" command 2023-07-31 08:41:41 +02:00
updates Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
utils Add AppState to common.Common 2023-09-04 17:48:39 +02:00