Helix doesn't need "Git integration", just use the following keymap. #12045
Replies: 2 comments 2 replies
-
On testing this I am afraid the input is messed up when trying to type into lazygit, this is me pressing the delete key: Now I can't exit the window. Any suggestions? I use Kitty and this has been working perfectly:
|
Beta Was this translation helpful? Give feedback.
-
I love what I'm reading here: combining tools that greatly do their purpose together. Thanks for sharing such ideas. One issue I'm facing though is disabled mouse support after execution. Some open issues refer to the same problem, for example #11853. Seems like Helix doesn't check if the sub-command stole mouse support. In the meanwhile, here is my work around: [keys.normal]
C-g = [
":write-all",
":new",
":insert-output lazygit",
":set mouse false", # First disable mouse to hint helix into activating it
":set mouse true",
":buffer-close!",
":redraw",
":reload-all"
] |
Beta Was this translation helpful? Give feedback.
-
Explanation
write-all
: save all buffers so that the changes can be shown in lazygit and commited right awaynew
: create new empty bufferinsert-output lazygit
: runs thelazygit
command and inserts it's output into the new bufferbuffer-close!
will kill the previously empty buffer and send you pack to where you were previouslyredraw
is necessary to re-render the UI to show the buffersreload-all
because if e.g. you commit everything, helix will still show the symbols indicating that lines were changed / deleted on the left of the line numbers. This will prevent thatBeta Was this translation helpful? Give feedback.
All reactions