Closed weichuliu closed 2 months ago
you can write a wrapper script that accepts +[line-number]
and translates that to the sublime syntax
As a workaround, yes. But can we have an official support in tig?
Most probably not, this is maybe the only thing on which vi
and emacs
agree, and yet, someone had to come up with another syntax...
Hi, I am trying to set
TIG_EDITOR=subl
to edit with Sublime Text when pressinge
.When using vim, it's very convenient to directly locate the line. However, this is not working for Sublime.
The reason is that tig pass
+[line-number]
to vim, but Sublime cannot understand such syntax. On sublime, it will open a+[line]
empty file instead.For Sublime, the proper syntax will be
subl [filename]:[line-number]
and the Sublime will open the file and focus on the target line number. Can this be configured in tigrc?Thanks very much.