jesseduffield.lazygit/pkg
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
..
app Do not quote initial branch arg when creating repo 2023-07-11 17:18:58 +10:00
cheatsheet Use sentence case everywhere 2023-05-25 23:52:19 +10:00
commands Replace uses of "git stash save" with "git stash push" 2023-07-10 15:09:17 +02:00
common introduce Common struct for passing around common stuff 2022-01-04 09:07:15 +11:00
config Allow checking for merge conflicts after running a custom command 2023-07-13 18:40:34 +10:00
constants update release notes 2021-04-20 18:34:47 +10:00
env clearer separation of concerns when bootstrapping application 2022-05-07 16:02:04 +10:00
fakes cleanup integration test code 2023-02-26 12:54:13 +11:00
gui Allow checking for merge conflicts after running a custom command 2023-07-13 18:40:34 +10:00
i18n Differentiate between different filter modes 2023-07-03 12:54:14 +10:00
integration Allow checking for merge conflicts after running a custom command 2023-07-13 18:40:34 +10:00
logs Allow global logging when developing 2023-05-25 18:31:32 +10:00
secureexec Cache binary paths 2023-05-23 19:15:33 +10:00
snake integrate snake game into lazygit 2022-12-30 12:18:59 +11:00
tasks Refactor 2023-07-10 17:12:21 +10:00
theme Color view frame differently when searching/filtering 2023-07-03 12:54:14 +10:00
updates Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
utils View filtering (#2680) 2023-07-03 12:57:11 +10:00