1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-10 04:07:18 +02:00
lazygit/pkg/gui
Jesse Duffield b61ca21a84 Allow checking for merge conflicts after running a custom command
We have a use-case to rebind 'm' to the merge action in the branches panel. There's three ways to handle this:
1) For all global keybindings, define a per-panel key that invokes it
2) Give a name to all controller actions and allow them to be invoked in custom commands
3) Allow checking for merge conflicts after running a custom command so that users can add their own 'git merge' custom command
that matches the in-built action

Option 1 is hairy, Option 2 though good for users introduces new backwards compatibility issues that I don't want to do
right now, and option 3 is trivially easy to implement so that's what I'm doing.

I've put this under an 'after' key so that we can add more things later. I'm imagining other things like being able to
move the cursor to a newly added item etc.

I considered always running this hook by default but I'd rather not: it's matching on the output text and I'd rather something
like that be explicitly opted-into to avoid cases where we erroneously believe that there are conflicts.
2023-07-13 18:40:34 +10:00
..
context Add busy count for integration tests 2023-07-08 22:54:52 +10:00
controllers Allow checking for merge conflicts after running a custom command 2023-07-13 18:40:34 +10:00
filetree Support filtering files 2023-07-03 12:54:13 +10:00
keybindings Use same labels for keys that we use in the config 2023-05-21 10:59:16 +10:00
mergeconflicts migrate patch building tests 2023-02-25 21:37:16 +11:00
modes refactor cherry pick code to move state access out of helper 2023-04-30 13:19:53 +10:00
patch_exploring refactor patch code 2023-03-19 16:30:39 +11:00
popup Use an interface for tasks instead of a concrete struct 2023-07-10 17:12:21 +10:00
presentation Insert fake todo entry for a conflicting commit that is being applied 2023-06-22 18:57:58 +02:00
services/custom_commands Allow checking for merge conflicts after running a custom command 2023-07-13 18:40:34 +10:00
status lots of changes 2023-04-30 13:19:53 +10:00
style Stop hiding underscores for VSCode 2023-06-01 20:12:20 +10:00
types Use an interface for tasks instead of a concrete struct 2023-07-10 17:12:21 +10:00
background.go Ensure background refreshes don't bunch up 2023-07-10 17:30:44 +10:00
command_log_panel.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
context_config.go move some methods 2023-04-30 13:19:53 +10:00
context.go Add integration tests for searching/filtering 2023-07-03 12:54:14 +10:00
controllers.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
dummies.go feat: add GitVersion struct 2022-12-30 20:01:14 +09:00
editors.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
extras_panel.go Appease linter 2023-06-03 15:54:03 +10:00
file_watching.go Add busy count for integration tests 2023-07-08 22:54:52 +10:00
global_handlers.go Use sentence case everywhere 2023-05-25 23:52:19 +10:00
gui_common.go Use an interface for tasks instead of a concrete struct 2023-07-10 17:12:21 +10:00
gui_driver.go Add busy count for integration tests 2023-07-08 22:54:52 +10:00
gui.go Fix flakey misc/initial_open test 2023-07-10 17:12:34 +10:00
information_panel.go lots of changes 2023-04-30 13:19:53 +10:00
keybindings.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
layout.go Fix flakey misc/initial_open test 2023-07-10 17:12:34 +10:00
main_panels.go Visualize the "ignore whitespace" state in the subtitle of the diff view 2023-05-20 12:58:32 +10:00
menu_panel.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
options_map.go Use sentence case everywhere 2023-05-25 23:52:19 +10:00
pty_windows.go Format code to pass lint 2021-09-16 21:38:43 +08:00
pty.go Make sure scrollbars have the right size initially 2023-03-21 18:26:18 +01:00
recent_repos_panel.go Begin refactoring gui 2023-04-30 13:19:52 +10:00
tasks_adapter.go Use an interface for tasks instead of a concrete struct 2023-07-10 17:12:21 +10:00
test_mode.go Add busy count for integration tests 2023-07-08 22:54:52 +10:00
view_helpers.go lots more refactoring 2023-04-30 13:19:53 +10:00
views.go Color view frame differently when searching/filtering 2023-07-03 12:54:14 +10:00