When editor is set to subl, cannot locate the line
Closed this issue · 3 comments
Hi, I am trying to set TIG_EDITOR=subl
to edit with Sublime Text when pressing e
.
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.
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...