Earlier quoted context omitted.
https://magit.vc/ Magit is the git layer/plugin for Emacs. I don't know about others but personally magit changed the way I think about git and version control.
Yeah for me magit was one of those "magical" Emacs apps that really keeps me sticking with Emacs despite how slow it can be when you load it up with many extensions (compared to VSCode). I hope the native comp in Emacs 28 helps somewhat in the speed aspect. The ports over to Deno and other JS stuff look interesting too [0] https://emacs-ng.github.io/emacs-ng/
A work-in-progress Magit clone for Neovim
61–70 of 80 posts
Re: A work-in-progress Magit clone for Neovim
#62Earlier quoted context omitted.
> Commiting hunks on command line is tedious afaik. You would have to specify row numbers. Not necessarily tedious - you can just use "git add -p" to stage hunks individually.
In Magit you can easily select arbitrary regions of code to stage (or chunks as you would via the command line). I haven't seen any git interface that is as intuitive for this task.
Re: A work-in-progress Magit clone for Neovim
#63Although I'm a heavy Emacs user, I never understood why is magit so praised. IMHO, source control just doesn't belong to IDE. Why learn how to use git with Emacs/magit, vim, IntelliJ IDEA, Eclipse, Visual Studio / Code, ... when you can just master the official command line client and forget about the rest? It's available and usable everywhere, while each of these IDE plugins is different and one need to learn and ge…
Magit is actually one of the best pieces of software I've ever used.
Re: A work-in-progress Magit clone for Neovim
#64Very early on in my vim journey, I used to use fugitive[1], which is sort of a lighter equivalent of magit for vim. However, I found that too overkill and unwieldy. I never really found any benefits to forcing myself to stay inside vim to run some git command. These days, I just use git in a tmux split rather than trying to force vim to show some arbitrary git UI. For a nice interactive git UI, I use tig[1]. Tig is e…
Fugitive is really useful for a lot of stuff, though I don't use anywhere near all of its functionality. For example, I never rebase within vim. But blaming and especially staging/committing is a far better experience with fugitive than in plain terminal.
Re: A work-in-progress Magit clone for Neovim
#65Does anyone know how Vim Fugitive compares to Magit?
Completely different. Magit is basically a full git IDE, while fugitive is basically just a thin wrapper around the git command line.
Re: A work-in-progress Magit clone for Neovim
#66Earlier quoted context omitted.
Fugitive is really useful for a lot of stuff, though I don't use anywhere near all of its functionality. For example, I never rebase within vim. But blaming and especially staging/committing is a far better experience with fugitive than in plain terminal.
Also `blame` and `grep`
I also make heavy use of :Gedit for easily looking at files on other branches.
Re: A work-in-progress Magit clone for Neovim
#67Very early on in my vim journey, I used to use fugitive[1], which is sort of a lighter equivalent of magit for vim. However, I found that too overkill and unwieldy. I never really found any benefits to forcing myself to stay inside vim to run some git command. These days, I just use git in a tmux split rather than trying to force vim to show some arbitrary git UI. For a nice interactive git UI, I use tig[1]. Tig is e…
Eventually I moved to https://github.com/codeindulgence/vim-tig which does the same via `:Tig` and `:Tig!`.
I added those mappings to achieve something similar:
nnoremap gb :Tig! blame
nnoremap g0 :Tig! status
Thank you for inspiration! Tig FTW!Re: A work-in-progress Magit clone for Neovim
#68Earlier quoted context omitted.
Try pressing `S` in `tig`. Works like magit but is much faster(when I say faster I'm also including interface lag). I realize that you won't switch, nor do you need to, but the general things people suggest of why magit is superior exist elsewhere as well.
Thanks for the tip, I haven't tried tig yet. That might actually be useful on remote systems in situations where I don't have access to my personally configured emacs.
Re: A work-in-progress Magit clone for Neovim
#69Am I missing something?