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
SFTP use Sublimerge 3 as diff tool
unknown_user
#1
0 Likes
rppn
#2
Docs:
- https://www.sublimetext.com/docs/3/
- https://wbond.net/sublime_packages/sftp/usage
- http://www.sublimerge.com/sm3/docs/quick-start.html
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
unknown_user
#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
rppn
#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