Git integration in Helix for an IDE like experience?
Vložit
- čas přidán 25. 03. 2024
- A short tutorial on integrating Git with a custom keybinding in the Helix editor.
Config Gist: gist.github.com/lavafroth/c5b...
Official docs for key remapping: docs.helix-editor.com/remappi... - Věda a technologie
With helix being a recent editor, what hidden or undocumented feature have you come across?
Config Gist: gist.github.com/lavafroth/c5b01984fcd58f26911bd42e43d29289
Official docs for key remapping: docs.helix-editor.com/remapping.html
The idea to use the multi-command is brilliant. I have been slowly setting up a full IDE in helix and I had no idea this was possible.
Oh wow I didn't know you can do that using insert-output. Thanks! 😋
This is actually pretty cool. I usually just have another terminal window or a zellij tab for lazygit but this is even better.
Crazy
Thanks for this and you have a new subscriber
Oh! This is super useful, thanks!
Absolutely awesome
This is amazing
Thanks for this vid. Now, all I have to do is figure out how to get emacs's magit to work in a tty like lazygit does and I will have my favorite git front-end in helix. :D
it crashes when you want to edit a file with helix through lazygit
When typing "e" on a file it freezes
Good catch, yes. If you try to edit the file, lazygit will try to spawn helix inside helix. Since this is more of a hacky way to integrate lazygit, you might have to get back to helix to edit the file for now.
I need to know what font this is
nice
I'm getting an error when trying to execute the ":insert-output lazygit" command. Any ideas how to fix it?
Consider using the full path to the lazygit binary. Also, I'm assuming that you have lazygit is installed. I'm using NixOS, so I configure it like so: github.com/lavafroth/dotfiles/blob/main/hosts/default/helix.nix
@@lavafroth everything worked after setting the full path, thanks!
Why doesn't esc work to exit rather q?
That's a lazygit specific keybinding unrelated to helix or this integration but I'm sure there's a way to change it in the configs for lazygit.
Can I use gitui ?
yes!
@@lavafroth after replacing lazygit with gitui, any time i press Ctrl+g, helix freeze and i wait for about 20 seconds and nothing happens.
cab you share me how it works ? thanks
Nix mentioned