Sublime Forum

[Sublime merge] Add desktop right click menu to sublime merge?

#1

Is it able to add a desktop right click menu to sublime merge? So, when I right click this menu, it will open sublime merge and then switch the repository to the current folder. Currently, the workflow is open sublime merge -> click File -> click open repository (or switch repository). It would be nice to make this easier.

0 Likes

#2

I have a tool for that for ST/SM.

You just have to download Sublime-Merge-Portable-Tool.exe and put it with the smerge.exe (typically in C:\Program Files\Sublime Merge). Execute Sublime-Merge-Portable-Tool.exe and choose 1.

If you consider the pre-built .exe file may be harmful, you can build it by yourself or simply use the codes to write a .reg file.

Demo

image image

1 Like

#3

Thanks. This is really helpful.

0 Likes

#4

@jfcherng However, there is a small bug for sublime text tool. When I right click open with sublime text menu, sublime text will open two windows. One is for the current folder and the other one is for the old folder. Is it able to only open a window for the current folder. thanks.

0 Likes

#5

It’s by design.


I didn’t try it but add -a to subl.exe may work (and then compile it by yourself, it’s simply a click).

$ ./subl --help
Sublime Text build 3208

Usage: subl [arguments] [files]         Edit the given files
   or: subl [arguments] [directories]   Open the given directories

Arguments:
  --project <project>: Load the given project
  --command <command>: Run the given command
  -n or --new-window:  Open a new window
  -a or --add:         Add folders to the current window
  -w or --wait:        Wait for the files to be closed before returning
  -b or --background:  Don't activate the application
  -s or --stay:        Keep the application activated after closing the file
  -h or --help:        Show help (this message) and exit
  -v or --version:     Show version and exit

Filenames may be given a :line or :line:column suffix to open at a specific
location.
0 Likes

#6

thanks for your reply. Let me try it to see how it works.

0 Likes

#7

I just downloaded 1.4.1 binaries and Windows 10 detected it as a Trojan:Win32/Wacatac.B!ml. Not saying it is. Its very possible it is just a mistake. Please advise.

0 Likes

#8

It may be caused by Bat To Exe Converter. So if you do not trust that software, you can use raw bat codes in the repo anyhow.

0 Likes

#9

Thanks! I just wanted you to know. I will take your advice and thank you for making this!

1 Like