Jesse Duffield
7bddf53223
Improve keybinding descriptions
...
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-28 08:12:01 +11:00
Jesse Duffield
51fb82d6bf
Enforce single-item selection in various actions
...
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-19 10:50:49 +11:00
Stefan Haller
83337d9fa8
Allow showing Disabled errors as error panel instead of toast
2024-01-14 17:45:35 +01:00
Stefan Haller
84e1d15079
Make DisabledReason a struct
...
This is a pure refactoring, no change in behavior yet. We'll add another field
to the struct in the next commit.
2024-01-14 17:45:35 +01:00
Stefan Haller
09a24ee97d
Use ErrorToast instead of error panel when invoking a disabled command
2024-01-14 17:45:35 +01:00
Stefan Haller
e592d81b60
Add Enabled func to Binding
2023-09-18 10:20:23 +02:00
Jesse Duffield
a9e2c8129f
Introduce filtered list view model
...
We're going to start supporting filtering of list views
2023-07-03 12:54:13 +10:00
Jesse Duffield
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
Jesse Duffield
a5c72d056d
ensure initial context is set when entering submodule
2023-04-30 13:19:53 +10:00
Jesse Duffield
dd31f8ecea
update cheatsheets
2023-04-30 13:19:53 +10:00
Jesse Duffield
f2c85c5b19
move side window actions to controllers package
2023-04-30 13:19:53 +10:00
Jesse Duffield
0faa41e6f8
move toggle whitespace action to controllers package
2023-04-30 13:19:53 +10:00
Jesse Duffield
037cd99138
move quit actions to controller
2023-04-30 13:19:53 +10:00
Jesse Duffield
2da300f2fb
move diffing menu action to controller
2023-04-30 13:19:53 +10:00
Jesse Duffield
7848958326
move filtering menu action to controller
2023-04-30 13:19:53 +10:00
Jesse Duffield
2cba98e3fe
move another action into controller
2023-04-30 13:19:53 +10:00
Jesse Duffield
f8c9ce33c2
move more actions into controller
2023-04-30 13:19:53 +10:00
Jesse Duffield
71753770ad
move custom patch options menu action to controllers package
2023-04-30 13:19:53 +10:00
Jesse Duffield
509e3efa70
lots more refactoring
2023-04-30 13:19:53 +10:00
Jesse Duffield
8edad826ca
Begin refactoring gui
...
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-04-30 13:19:52 +10:00
Luka Markušić
f314cb3763
Remove alternative confirmation and return keymappings
2023-03-09 10:32:00 +01:00
Jesse Duffield
56424eb1aa
remove x keybinding for opening menu so we now only use '?'
2023-02-20 19:28:45 +11:00
Ryooooooga
39c20bc634
chore: change to work return-alt1
on all views
2023-02-11 21:19:47 +09:00
Luka Markušić
8af59c3e6e
Copy remote branch name to clipboard
2023-02-09 11:56:12 +01:00
stk
d838965a41
Make "Toggle whitespace in diff view" a global key binding
...
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.
2023-02-07 09:25:38 +01:00
wakaka6
6386a03805
add return alt1
2022-12-11 15:44:25 +08:00
Jesse Duffield
7410acd1aa
move merge conflicts code into controller
2022-08-07 11:16:03 +10:00
Jesse Duffield
445a625b56
rename merging context to mergeConflicts
2022-08-06 18:05:00 +10:00
Jesse Duffield
524bf83a4a
refactor to only have one context per view
2022-08-06 13:49:11 +10:00
Ryooooooga
bfefef92a6
chore(i18n): move InitialViewTabContextMap
to gui
package
2022-05-18 21:09:48 +09:00
Ryooooooga
5275161a88
chore(i18n): localize panel titles
2022-05-18 20:55:42 +09:00
Ryooooooga
b07e0ea032
fix: fix context of edit hunk
2022-05-06 21:58:40 +09:00
Ryooooooga
d458e78d95
feat: add ability to edit hunk
2022-05-06 21:53:00 +09:00
Mukhlis Akbarrudin
21336d3aa2
refactor: explicitly add alternative keybinding
2022-04-15 08:23:27 +10:00
Ryooooooga
3b5a019e1a
feat(merge_panel): Add open/edit files in merge conflict panel
2022-04-06 08:27:03 +10:00
Jesse Duffield
9c226eed37
allow menu to store keybindings for quick menu navigation
2022-03-27 18:16:16 +11:00
Jesse Duffield
e43ce23642
require hitting escape to exit menu panel
2022-03-27 18:16:16 +11:00
Jesse Duffield
0dfb7c08b7
remove controllers struct
2022-03-27 18:16:16 +11:00
Jesse Duffield
f0a4dcfdc3
refactor menu context
2022-03-27 18:16:16 +11:00
Jesse Duffield
98e7ec0905
add type alias for Key
2022-03-27 18:16:16 +11:00
Jesse Duffield
ad7703df65
show namesake for child views
2022-03-26 18:00:46 +11:00
Jesse Duffield
13b90ac37f
support viewing commits of reflog entry and show better view title
2022-03-26 18:00:46 +11:00
Jesse Duffield
a34bdf1a04
update linters
2022-03-19 12:12:57 +11:00
Jesse Duffield
fb3752c11f
clean up keybindings menu
2022-03-17 19:13:40 +11:00
Jesse Duffield
59d4df2a44
fix click handling
2022-03-17 19:13:40 +11:00
Jesse Duffield
8fd6338527
move workspace reset menu into controller
2022-03-17 19:13:40 +11:00
Jesse Duffield
ee1337b931
add remote branches controller
2022-03-17 19:13:40 +11:00
Jesse Duffield
ef7c4c9ca9
refactor custom commands
...
more custom command refactoring
2022-03-17 19:13:40 +11:00
Jesse Duffield
46e9946854
refactor credential handling
2022-03-17 19:13:40 +11:00
Jesse Duffield
d991d74b06
add commit message controller
2022-03-17 19:13:40 +11:00