Activate Viewer Pane for File Types?

Hi,

is there something like a feature for activating the Viewer Pane only for special file type? For example if i click on a xml file, it opens the viewer pane, showing the content of the xml, if i click afterwards on a zip file, the viewer pane will automaticly get closed.

Thanks and Regards

Kornelis

You could set one of the double-click events on the XML file-type to run this:

Set VIEWPANE=On

That gives you an easy way to turn the viewer on for XML files, I guess...

Making it close for other files could be done by the same command, but with Off instead of On, set for one of the events on the All Files file-type.

If you wanted to make left-button double-clicking other files turn the viewer off and launch the files normally then you might be able to use this, but I'd advise against it as it's a bit of a strange thing to do, and it assumes that "open" is the default verb for files when it might not be:

Set VIEWPANE=Off FileType ACTION=open

(That said, it does seem to work for most file types... Just remember to try removing it if you do try it and then later find weird things happen when you left-double-click files. :slight_smile: )

Of course, if you use one of the other double-click actions then you can leave the left double-click alone and all should be well.


well ok.

I was hoping, there is a way to do this just via single-left-click on the file, or selection via Keyboard. Reassigning the double-click isn't the best choice i guess.

Thanks anyway.

Best Regards

Kornelis

You can assign it to middle button double-click, and/or require shift/alt/ctrl to be held down when you do it, FWIW.

For the keyboard you can assign a hotkey to toggle the viewer. (Quickest way is to edit the toolbar button which toggles it and set a key via that.)