How to open full screen preview instead of shell viewer?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
tale
Posts: 3
Joined: 05 Dec 2013 11:05

How to open full screen preview instead of shell viewer?

Post by tale »

Hi guys,

I'm quite new to this application, but so far I'm impressed. I've got a little difficulties getting the following scenario to work, though:

I'd like to open the full screen preview on media files instead of the shell viewer whenever I "open" that file (i.e. on double-click or enter). Is something like that possible?

Workarounds I tried:
* portable associations for media file types and scripts like openwith
* adding enter as a keyboard shortcut for preview

I found some interesting hints in this forum but those didn't help (most probably due to my lack of expertise :roll: )

Any help would be much appreciated.

Regards,
tale

admin
Site Admin
Posts: 66360
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: How to open full screen preview instead of shell viewer?

Post by admin »

Hi and welcome!

So you want to replace "open" by "preview" basically. No, that's not possible. You get a floating preview by F11 and then you can leave it open and simply get files previewed by selecting them in the file list. Isn't that much easier?

Don

tale
Posts: 3
Joined: 05 Dec 2013 11:05

Re: How to open full screen preview instead of shell viewer?

Post by tale »

Thanks for your response.

I'd like to use XYplorer as both a portable file manager and a portable image viewer. For the first, a small floating preview would indeed be sufficient. For the latter I'd rather prefer the full screen solution.
Yes, I know: XYplorer is not meant to be a image viewer replacement (that's why that feature is called "preview" :wink: ), but maybe there's some sort of a reasonable workaround?

For example: by adding a "portable association" to media files I managed to override the default shell behavior for enter and double-click. This is nice. As far as I understand, one can use scripts for some fancier actions (like copyto), so I tried to find anything like "jpg;mp4>::preview". Obviously, to no avail...

There's however an action id for the preview window? Would that be of any use?

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

Re: How to open full screen preview instead of shell viewer?

Post by TheQwerty »

admin wrote:So you want to replace "open" by "preview" basically. No, that's not possible.
Sometimes it seems you know so little about your own software! :lol: :P


I use the following PFA to open files with floating preview - this long list of extensions came from XY's definition of Image files in Previewed Formats, but it should be cleaned since some extensions, like .ico, show as hex in Quick File View instead of floating preview for some reason. :?

Code: Select all

"Floating Preview" arw;bmp;cr2;crw;cur;dcr;dib;dng;emf;erf;fff;gif;ico;jpe;jpeg;jpg;mef;mrw;nef;nrw;orf;pef;png;psb;psd;raf;raw;rle;rw2;rwl;sr2;srf;srw;tga;tif;tiff;wmf;x3f>::if (! Get('#178')) { #178; }
#178 corresponds with File | Floating Preview and acts as a toggle, so putting it in a conditional ensures that we don't close the window if it was already open.

As full-screen preview is just a special mode of floating preview you can convert it to open full-screen by changing it to:

Code: Select all

if(! Get('#178')) { #1003; }
#1003 corresponds with Miscellaneous | Preview | Full Screen Preview. You can look up this and all other commands by using List All Commands under the Help menu.


Hope that help! :)

admin
Site Admin
Posts: 66360
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: How to open full screen preview instead of shell viewer?

Post by admin »

TheQwerty wrote:
admin wrote:So you want to replace "open" by "preview" basically. No, that's not possible.
Sometimes it seems you know so little about your own software! :lol: :P
Okay, but you have to admit it's somewhat hacky. I was thinking about SC FloatingPreview was has not yet been implemented (http://www.xyplorer.com/xyfc/viewtopic. ... 338#p92338) but still looks like a cool idea.

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

Re: How to open full screen preview instead of shell viewer?

Post by TheQwerty »

admin wrote:Okay, but you have to admit it's somewhat hacky.
It honestly doesn't feel like that much of a hack to me - no more than any other PFA that points to a script. *shrugs*

admin
Site Admin
Posts: 66360
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: How to open full screen preview instead of shell viewer?

Post by admin »

Code: Select all

if(! Get('#178')) { #1003; }
is more hacky than

Code: Select all

FloatingPreview;

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

Re: How to open full screen preview instead of shell viewer?

Post by TheQwerty »

admin wrote:

Code: Select all

if(! Get('#178')) { #1003; }
is more hacky than

Code: Select all

FloatingPreview;
Sure, but unless the just-uploaded beta includes a FloatingPreview SC or User Functions there isn't much *I* can do about that. :P

EDIT" Though I suppose I could sweep it under the rug by replacing it with:

Code: Select all

Load('HackyFloatingPreview.xys');
;)

admin
Site Admin
Posts: 66360
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: How to open full screen preview instead of shell viewer?

Post by admin »

:biggrin:

tale
Posts: 3
Joined: 05 Dec 2013 11:05

Re: How to open full screen preview instead of shell viewer?

Post by tale »

How I just LOVE powerful applications like this one :)

Many thanks to you, TheQwerty - your solution works perfectly!
Also, it's not that much of a hack in my eyes... I expected worse. But agreed: a simple scripting call to open that preview would have been sweeter.

Still, I'm quite satisfied. Now, if you'd excuse me... got to get deeper into that scripting engine 8)

Post Reply