Tig – Text-mode interface for Git
81–90 of 98 posts
Re: Tig – Text-mode interface for Git
#82Handy tip - you can enable mouse support by putting "set mouse = yes" in ~/.tigrc.
Re: Tig – Text-mode interface for Git
#83Tig is one of the most valuable hidden gems out there. I use it both for simple things like a good looking commit log (the default view), but like especially how I can navigate into an old commit, hit t (for tree), and navigate and peek into the files available in that specific commit, hit b (for blame) to view which commit changed a particular row etc. I like how all the different views play together into such usefu…
And also e (for edit) which, at least for me, opens vin for a quick change when needed.
Re: Tig – Text-mode interface for Git
#84I use tig every day! Love it! My one wish is that when you go to edit a file from the interface (by hitting e) is that it would keep you in the directory you're in rather than editing the file as if you're in git root. Linters and other things break when I edit files from the root directory in our mono repo
[tig "bind"]
generic = e !script %(file)
With script containing something like: cd `dirname $1`
vim `basename $1`
Although, if you're already a vim user using `set autochdir` is probably easier.Re: Tig – Text-mode interface for Git
#85As a longtime vim user it feels like if I actually wanted a TUI veneer over the git CLI I'm already quite familiar with, I'd prefer it be done within vim as an extension/plugin or something. Having some vim-like keybindings in non-vim tools is nice, but it's always a far cry from being vim . And personally I find it incredibly annoying when I'm in something vim-like enough to establish "I'm in vim" expectations and n…
Re: Tig – Text-mode interface for Git
#86Re: Tig – Text-mode interface for Git
#87Re: Tig – Text-mode interface for Git
#88Re: Tig – Text-mode interface for Git
#89I've been a user for 8 years, but I only use it for viewing. Editing a repository remains a task exclusively for the CLI (or, occasionally, with magit).
Re: Tig – Text-mode interface for Git
#90text-mode interface for Git Based on the comments here saying they love Tig, I know I'm missing something, but: doesn't Git provide a text interface (the `git` command) to Git? I'm not trying to be obtuse; I genuinely don't know what Tig provides that Git doesn't already do, but would love to know!
tig is a curses program, it's an interactive terminal GUI (a TUI), as opposed to a CLI e.g. you can browse and interact with your log rather than dump it in a pager and need a separate terminal to dive into a commit or whatever. magit is a good alternative, it's not exactly a TUI because it works entirely inside emacs and uses emacs concepts, but it's entirely text-based.
Emacs also has TUI (when running in the Linux terminal or run `emacs -nw') so magit should also has TUI (at least on GNU/Linux where I use Emacs on).