summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/basic_commits_controller.go
AgeCommit message (Collapse)Author
2024-02-10Disallow cherry-picking merge commitsStefan Haller
2024-02-10Disallow cherry-picking update-ref todosStefan Haller
2024-01-28Warn users when attempting to cherry pick with old keyJesse Duffield
I wrote this feature and even I sometimes use the wrong key so I want to make this very clear to users so that there's no confusion
2024-01-28Display more keybindings on-screenJesse Duffield
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-23Set groundwork for better disabled reasons with range selectJesse Duffield
Something dumb that we're currently doing is expecting list items to define an ID method which returns a string. We use that when copying items to clipboard with ctrl+o and when getting a ref name for diffing. This commit gets us a little deeper into that hole by explicitly requiring list items to implement that method so that we can easily use the new helper functions in list_controller_trait.go. In future we need to just remove the whole ID thing entirely but I'm too lazy to do that right now.
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-19Support select range for cherry pickJesse Duffield
This requires us to change the 'v' keybinding for paste to something else, now that 'v' is used globally for toggling range select. So I'm using 'shift+v' and I'm likewise changing 'c' to 'shift+c' for copying, so that they're consistent. We will need to clearly communicate this change in keybindings.
2024-01-09Add command to open git difftoolStefan Haller
2024-01-03Replace copy SHA with copy subject on commit 'y s'Karim Khaleel
2023-09-12fix: use `Error` method to handle the commit url copy from unknown serviceAzraelSec
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-30lots of changesJesse Duffield
2023-04-30standardise controller helper methodsJesse Duffield
2022-05-08rename displayString to label for menu itemsJesse Duffield
2022-05-01allow copying commit author to clipboardJesse Duffield
2022-03-30pkg/gui: Rename IPopupHandler::Ask() to Confirm()Moritz Haase
Follow the JavaScript naming scheme for user interaction (alert, prompt, confirm) as discussed in #1832.
2022-03-27add menu keybindings for various thingsJesse Duffield
2022-03-26update cheatsheetJesse Duffield
2022-03-26fix cherry picking bugJesse Duffield
2022-03-26refactor to make code clearerJesse Duffield
2022-03-26add basic commits controller for handling actions that apply to all commit ↵Jesse Duffield
contexts