gh-f
vim-fugitive
Our great sponsors
gh-f | vim-fugitive | |
---|---|---|
17 | 114 | |
239 | 19,183 | |
- | - | |
5.8 | 8.2 | |
25 days ago | 12 days ago | |
Shell | Vim Script | |
The Unlicense | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
gh-f
-
gh-f adds diff per filetype and other small improvements
gh-f is a GitHub CLI extension that I wrote that does all-things-fzf for git. From time to time I add new small features or quality of life adjustments :).
-
fzf is so powerful when you use it well ! code/files/tags/git history
If you are into github CLI extensions, check out the ultimate fzf git extension: gh-f (unrelated to neovim, but shamelessy I am the author).
-
Git workflow
I deal with most of my git workflow from terminal simply because I find git to be easiest to use from the command line, where each command is verbose enough for you to understand what you are doing, and so is its output. Lately, with the introduction of the gh CLI things have gotten even easier, and all the workflow of branches, PRs, releases, runs and so forth is easily handled via command line as well: I wrote gh-f, an extension that integrates gh with fzf and you're good to go at the speed of light.
-
gh-f stable release 1.0.0
I have worked on gh-f for about one year and I have now reached the point where I consider it to be stable and robust enough to award it a full 1.0.0 release.
-
A Better Git Diff with Delta
You may want to check out gh-f, where most of the functions/alias shown in the videos are packaged as gh CLI extension.
-
CLI to Search, Preview, & Check Out a GitHub PR
Nice, wasn't aware of that. Enjoying looking at the code underneath https://github.com/gennaro-tedesco/gh-f/blob/master/gh-f
-
Is there a TUI version of Github?
gh cli with some gh extensions, like gh-f, gh-s, and gh-i, can get you most of the way there
-
If you could chose only one, would you choose "vim-fugitive" or "lazygit", and why?
If you are interesting in cherrypicking (and much more) you may want to have a look at gh-f, a GitHub CLI extension that works with fzf (in particular look at gh f -k)
-
gh-f: now grep through revision history!
Another feature added to gh-f: grep regex pattern through revision history. What about that piece of code you deleted, and now you want to quickly check the old revision file to copy and paste? Say no more: prompt for regex pattern, choose the file name, browse the revision history with preview and show the old file containing the piece of code you are after!
vim-fugitive
-
How to commit part of file in Git
the only reason I do some git stuff in vim and not _always_ in the shell, is because tpope is very thoughtful and fugitive.vim provides nice ways to deal with hunks or hunk partials (visually selecting a range within a hunk, for i.e.)
https://github.com/tpope/vim-fugitive/blob/master/doc/fugiti...
-
GitUI
I agree, navigating blame history is incredibly useful, if only to save you from asking the wrong person about a particular change.
Vim's Fugitive[1] can do this and also in Textmate to. So I would hope that most editor git plugins can.
-
What are some plugins that you can't live without?
Git: vim-fugitive and gitsigns.nvim
-
Is it too late to learn emacs as a vim lifer?
You'll want to invest the time in learning Magit, which will change your life once you get the hang of it (and I was a heavy user of Fugitive in Vim previously!), and it's unlikely you'll find a better integration with GDB anywhere else on the planet than with Emacs, though I can't say that empirically. You just need to take the plunge and start learning it, then cut over and take the hit in productivity one day when you're feeling adventurous. You'll ultimately become far more powerful than you've ever been. Especially if you delve into elisp over time. I use Spacemacs, which is bloated and has bugs, but it has so many features that I haven't undertaken the massive endeavor to replace it from scratch yet.
- Fugitive.vim: A Git wrapper so it should be illegal
-
webify.nvim - Open the current file in the remote's web interface (github or gitlab) or yank its URL
For an option that works on Vim, if you already use tpope's vim-fugitive, there's vim-rhubarb (for GitHub) and fugitive-gitlab.vim (for GitLab).
-
Vim users who work without any plugins, how does your vimrc look like?
I replace vim-fugitive with :! git
-
Switching from Emacs. My experience
The only thing I truly miss from Emacs is [Magit](https://magit.vc/) since I still consider it the best git wrapper available. It is just too good. Unfortunately [Neogit](https://github.com/TimUntersberger/neogit) is not quite there yet although I hope it makes it at some point. I didn't like [Fugitive]https://github.com/tpope/vim-fugitive), but I ended up finding a good enough workaround by using [Lazygit](https://github.com/jesseduffield/lazygit) through [Toggleterm](https://github.com/akinsho/toggleterm.nvim).
-
I like Tabasco.
I do think VSCode is a great tool and I recommend it frequently to people, but I still want to set the record straight here. Yes, vim is obviously limited in the sense that as a CLI app it doesn't draw it's own PDF or HTML windows, that's fair. But it can remote control your favorite PDF viewer or browser for roughly the same functionality. I'm currently writing my thesis using vimtex and it's quite smooth. And all the other stuff you mention is implemented quite competently by various plugins like vim-fugitive, coc.nvim, vimspector and copilot.vim.
-
[Neovim] Meilleure intégration GIT pour Neovim?
Edit: je viens de trouver [https://github.com/tpope/vim-fugitive de Val
What are some alternatives?
gh-i - 🔎 search your github issues interactively
neogit - An interactive and powerful Git interface for Neovim, inspired by Magit
gh-s - 🔎 search github repositories interactively
vim-gitgutter - A Vim plugin which shows git diff markers in the sign column and stages/previews/undoes hunks and partial hunks.
gh-dash - A beautiful CLI dashboard for GitHub 🚀
lazygit.nvim - Plugin for calling lazygit from within neovim.
difftastic - a structural diff that understands syntax 🟥🟩
gitsigns.nvim - Git integration for buffers
github-tui - TUI client for GitHub
telescope.nvim - Find, Filter, Preview, Pick. All lua, all the time.
fzf-preview.vim - The plugin that powerfully integrates fzf and (Neo)vim. It is also possible to integrate with coc.nvim.
lazygit - simple terminal UI for git commands