Opening via double click

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
mightymuke
Posts: 2
Joined: 16 Jul 2014 05:58

Opening via double click

Post by mightymuke »

I wanted to be able to open any file in the Sublime Text editor so I have created a portable file association for it to make it available in the open with menu. But now whenever I double click on an item it opens it in Sublime. I can ctrl-double-click to open it with the original program associated with that extension, but its a bit of a pain. Is there any way to swap the double-click and ctrl-double-click behaviour? Or is there a better way to achieve what I'm after? (I couldn't find anything related to this in the help).
Thanks.

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Re: Opening via double click

Post by Enternal »

Hm... I'm also interested in this but since no one replied, I'm guessing because no one knows either and waiting for someone else to reply who might know. If it does not exist, perhaps a feature request would be a good option.

However, Don at the moment is taking a break from feature requests (a break in general from coding anything new) it seems but still, feel free to make a feature request.

Otherwise, the only other option I see is Right Click the Item > Open With... (XYplorer's item, not Windows) > Choose the Program to Open it up with. No need for keyboard but it does require more clicks.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Opening via double click

Post by TheQwerty »

Hi and welcome to the club!

If all you're after is showing Sublime Text as an option for all files in the Portable Openwith Menu but keeping the default action when ever you double-click an item you should see this thread.

You'll probably want your portable file associations to look something like:

Code: Select all

log;txt>C:\Sublime\Sublime_text.exe
|*>C:\Sublime\Sublime_text.exe
The first line opens log files and txt files in Sublime Text when you open those files via double-click, enter, or using the File>Open Selected Item(s) menu.

The second line shows Sublime Text as an option in the Portable Openwith Menu for all files but has no affect on what happens when you open a file with double-click, enter, or via the menu.


Hope that helps!

Filehero
Posts: 2731
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: Opening via double click

Post by Filehero »

Written on QWERTZ-hardware: Congratulations, you've reached 3000 posts!
3000.png
:D :appl:
To see the attached files, you need to log into the forum.

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Re: Opening via double click

Post by Enternal »

TheQwerty wrote:Hi and welcome to the club!

If all you're after is showing Sublime Text as an option for all files in the Portable Openwith Menu but keeping the default action when ever you double-click an item you should see this thread.

You'll probably want your portable file associations to look something like:

Code: Select all

log;txt>C:\Sublime\Sublime_text.exe
|*>C:\Sublime\Sublime_text.exe
The first line opens log files and txt files in Sublime Text when you open those files via double-click, enter, or using the File>Open Selected Item(s) menu.

The second line shows Sublime Text as an option in the Portable Openwith Menu for all files but has no affect on what happens when you open a file with double-click, enter, or via the menu.


Hope that helps!
I feel like like that's not what mightymuke wanted. Otherwise I would have suggested the same thing with attaching a "|". It more seems like mightymuke wanted an easier way of just simply assigning double click and single click behaviors to be swapped instead. Otherwise, the solution using "|" still uses a few more clicks than what mightymuke is probably suggesting.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Opening via double click

Post by TheQwerty »

Enternal wrote:It more seems like mightymuke wanted an easier way of just simply assigning double click and single click behaviors to be swapped instead. Otherwise, the solution using "|" still uses a few more clicks than what mightymuke is probably suggesting.
Perhaps mightymuke really did want to swap double-click and ctrl+double-click, but I'm not sure. I'm also not convinced this should really be configurable - and obviously it's not my decision - but I think it could be done with AHK.

I feel using "|" to restrict a PFA to just the POM is really the best way to handle alternate non-default associations but unfortunately, it's also extremely difficult to discover.

The whole separation of PFA and POM is confusing, I bet few users really pick up on the POM terminology, and the only mention of this trick is buried in the POM section of the help. The default config does include non-default PFA entries, but I find it hard to believe that any new user would ever understand why those entries start with "|" without consulting the docs, website, or forum.

*shrugs* Guess we'll have to wait for mightymuke to straighten things out. ;)

---
Filehero wrote:Written on QWERTZ-hardware: Congratulations, you've reached 3000 posts!
Thanks for pointing it out! Though it seems strange to celebrate my preferred way to procrastinate at work. :lol:

mightymuke
Posts: 2
Joined: 16 Jul 2014 05:58

Re: Opening via double click

Post by mightymuke »

Hi,

Thanks for the help.

I think TheQwerty's suggestion is "the better way to achieve what I'm after". I did try to look for the meaning of "|" but I couldn't find it anywhere, and its not exactly a simple thing to search for. :) I did also notice the non-default PFA entries in the config, but I couldn't work out what they were nor what they did.

The ctrl+double-click option to open in a secondary 'default' program would be very nice, but its something I can live without. I just didn't want to have to go through the pain of manually creating a file association for every known file extension just to also have sublime text in the list.

Thanks again.

Post Reply