summaryrefslogtreecommitdiffstats
path: root/pkg/gui/keybindings.go
AgeCommit message (Collapse)Author
2024-01-28Improve keybinding descriptionsJesse Duffield
This adds a bunch of tooltips to keybindings and updates some keybinding descriptions (i.e. labels). It's in preparation for displaying more keybindings on-screen (in the bottom right of the screen), and so due in part to laziness it shortens some descriptions so that we don't need to manage both a short and long description (for on-screen vs in-menu). Nonetheless I've added a ShortDescription field for when we do want to have both a short and long description. You'll notice that some keybindings I deemed unworthy of the options view have longer descriptions, because I could get away with it.
2024-01-19Enforce single-item selection in various actionsJesse Duffield
We want to show an error when the user tries to invoke an action that expects only a single item to be selected. We're using the GetDisabledReason field to enforce this (as well as DisabledReason on menu items). I've created a ListControllerTrait to store some shared convenience functions for this.
2024-01-14Allow showing Disabled errors as error panel instead of toastStefan Haller
2024-01-14Make DisabledReason a structStefan Haller
This is a pure refactoring, no change in behavior yet. We'll add another field to the struct in the next commit.
2024-01-14Use ErrorToast instead of error panel when invoking a disabled commandStefan Haller
2023-09-18Add Enabled func to BindingStefan Haller
2023-07-03Introduce filtered list view modelJesse Duffield
We're going to start supporting filtering of list views
2023-05-25Use sentence case everywhereJesse Duffield
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-04-30ensure initial context is set when entering submoduleJesse Duffield
2023-04-30update cheatsheetsJesse Duffield
2023-04-30move side window actions to controllers packageJesse Duffield
2023-04-30move toggle whitespace action to controllers packageJesse Duffield
2023-04-30move quit actions to controllerJesse Duffield
2023-04-30move diffing menu action to controllerJesse Duffield
2023-04-30move filtering menu action to controllerJesse Duffield
2023-04-30move another action into controllerJesse Duffield
2023-04-30move more actions into controllerJesse Duffield
2023-04-30move custom patch options menu action to controllers packageJesse Duffield
2023-04-30lots more refactoringJesse Duffield
2023-04-30Begin refactoring guiJesse Duffield
This begins a big refactor of moving more code out of the Gui struct into contexts, controllers, and helpers. We also move some code into structs in the gui package purely for the sake of better encapsulation
2023-03-09Remove alternative confirmation and return keymappingsLuka Markušić
2023-02-20remove x keybinding for opening menu so we now only use '?'Jesse Duffield
2023-02-11chore: change to work `return-alt1` on all viewsRyooooooga
2023-02-09Copy remote branch name to clipboardLuka Markušić
2023-02-07Make "Toggle whitespace in diff view" a global key bindingstk
Since it is going to affect a number of views later in the branch, it's easier to make it global than to find all views that are affected.
2022-12-11add return alt1wakaka6
2022-08-07move merge conflicts code into controllerJesse Duffield
2022-08-06rename merging context to mergeConflictsJesse Duffield
2022-08-06refactor to only have one context per viewJesse Duffield
2022-05-18chore(i18n): move `InitialViewTabContextMap` to `gui` packageRyooooooga
2022-05-18chore(i18n): localize panel titlesRyooooooga
2022-05-06fix: fix context of edit hunkRyooooooga
2022-05-06feat: add ability to edit hunkRyooooooga
2022-04-15refactor: explicitly add alternative keybindingMukhlis Akbarrudin
2022-04-06feat(merge_panel): Add open/edit files in merge conflict panelRyooooooga
2022-03-27allow menu to store keybindings for quick menu navigationJesse Duffield
2022-03-27require hitting escape to exit menu panelJesse Duffield
2022-03-27remove controllers structJesse Duffield
2022-03-27refactor menu contextJesse Duffield
2022-03-27add type alias for KeyJesse Duffield
2022-03-26show namesake for child viewsJesse Duffield
2022-03-26support viewing commits of reflog entry and show better view titleJesse Duffield
2022-03-19update lintersJesse Duffield
2022-03-17clean up keybindings menuJesse Duffield
2022-03-17fix click handlingJesse Duffield
2022-03-17move workspace reset menu into controllerJesse Duffield
2022-03-17add remote branches controllerJesse Duffield
2022-03-17refactor custom commandsJesse Duffield
more custom command refactoring
2022-03-17refactor credential handlingJesse Duffield
2022-03-17add commit message controllerJesse Duffield