by ninetax · 5y ago · 0 comments
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.