sublimehq / sublime_text

Issue tracker for Sublime Text
https://www.sublimetext.com
804 stars 39 forks source link

Add shortcut to "Send To" and "Edit" on Windows #6482

Open mrx23dot opened 6 days ago

mrx23dot commented 6 days ago

Problem description

I want to open a file with any random extension which won't be associated with Sublime, e.g. *.nfo

Preferred solution

Windows provides an option to right click, Send To from context menu

image

Alternatives

With many more clicks I need to open Sublime first and browse for the file from there, not fast at all.

Double clicking the file is also slow because it looks for every installed SW first.

Additional Information

No response

deathaxe commented 6 days ago

"Send To..." is actually odd place to "Open a file with...".

Windows 10/11 provide an "Open with..." context menu for all files, which Sublime Text can be added to.

Alternatively https://packagecontrol.io/packages/WindowsContextMenu, if you don't mind a little registry hack to manually add an "Open with Sublime Text" to all files (and folders).

related with https://github.com/sublimehq/sublime_text/issues/4869

mrx23dot commented 5 days ago

Actually, I prefer the SendTo, because my context menu is already bloated with antivirus, winzip etc, it doesn't even fit my small laptop, Windows provides scroll up/down in it, so adding to that one just makes it worst.

It was just an idea for installation, there is already an option for it but that puts it into the root menu.

mrx23dot commented 2 days ago

When I manually add it to SendTo there is a bug: I right click on a shortcut to txt file, select SendTo-Sublime then it opens the shortcut in hex, not the pointed txt file. Looks like it doesn't follow the shortcut.

This method works when I do the same with Notepad2.

jfcherng commented 2 days ago

SendTo-Sublime then it opens the shortcut in hex, not the pointed txt file.

https://packagecontrol.io/packages/FollowLnk

may help. I am the plugin author btw.

mrx23dot commented 2 days ago

Sounds promising, but I think it's a bug, since when I File-Open an .lnk it opens the intended .txt

jfcherng commented 1 day ago

I would suggest file another issue for that.