Sublime Forum

SFTP use Sublimerge 3 as diff tool

#1

Is it posible to use Sublimerge 3 as diff tool for SFTP plugin ?
I mean when you click diff remote file open it with Sublimerge
@wbond
@bf1986

0 Likes

#2

Docs:

I assume you can use this SublimeMerge command for .gitconfig:

".../sublime3/sublime_text.exe" -n --wait "$REMOTE" "$LOCAL" --command "sublimerge_diff_views {\"left_read_only\": true, \"right_read_only\": true}"

to override the SFTP command:

  • View > Open Console: import sublime; sublime.log_commands(True)
  • do your regular thing
  • disable the logging again
  • add an override for the SFTP command to your User folder with the gathered info

I was too lazy to write it all down step by step. If you have further questions, just ask.

1 Like

#3

“diff_command”: ["/usr/bin/subl", “-n”, “-w”, “-b”, “–command”, “sublimerge_diff_views”, “%1$s”, “%2$s”]
this option do the trick THX!!!

I have one more question
is it possible to save remote file via sftp after change it in diff view ?

0 Likes

#4

I actually use neither of the plugins, but I’d assume you can.

If there’s no default stuff available, you could save the target path in the settings of the view for later use.

0 Likes