jesseduffield.lazygit/pkg/gui/types
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
..
common.go Add DisabledReason field to MenuItem 2023-09-18 10:15:11 +02:00
common_commands.go start moving commit panel handlers into controller 2022-03-17 19:13:40 +11:00
context.go Add a mechanism to insert non-model items into list contexts 2023-08-29 08:04:47 +02:00
keybindings.go lots more refactoring 2023-04-30 13:19:53 +10:00
modes.go Add a "Mark commit as base commit for rebase" command 2023-07-31 08:41:41 +02:00
ref.go fix: fix ambiguous refname 2022-05-13 21:05:51 +09:00
refresh.go Initial addition of support for worktrees 2023-07-30 18:35:21 +10:00
rendering.go Visualize the "ignore whitespace" state in the subtitle of the diff view 2023-05-20 12:58:32 +10:00
search_state.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
suggestion.go support labels for suggestions which are distinct from values 2020-11-28 20:48:17 +11:00
views.go Initial addition of support for worktrees 2023-07-30 18:35:21 +10:00