Adding "Right-Click to Open Folder in Browser View" Feature via Registry Key

Older bugs which are supposed to be fixed in 0.84. *** Please try to reproduce your bug and confirm the bug fix. ***

Moderators: XnTriq, helmut, xnview, Dreamer

Water_miner
Posts: 1
Joined: Thu Jul 25, 2024 7:16 am

Adding "Right-Click to Open Folder in Browser View" Feature via Registry Key

Post by Water_miner »

I really enjoy a feature provided by VSCode, where you can right-click in any window or folder and select "Open in VSCode" to immediately open the folder in a browsing view. I also like using XnView's browser view, but the steps to open this view each time are somewhat cumbersome. Therefore, I wrote a registry configuration file so that I can right-click and browse all images in a folder just like with VSCode.

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\XnView]
@="Open folder with XnView"
"icon"="\"C:\\Program Files\\XnViewMP\\xnviewmp.exe\""

[HKEY_CLASSES_ROOT\Directory\shell\XnView\command]
@="\"C:\\Program Files\\XnViewMP\\xnviewmp.exe\" \"%1\""

[HKEY_CLASSES_ROOT\Directory\Background\shell\XnView]
@="Open folder with XnView"
"icon"="\"C:\\Program Files\\XnViewMP\\xnviewmp.exe\""

[HKEY_CLASSES_ROOT\Directory\Background\shell\XnView\command]
@="\"C:\\Program Files\\XnViewMP\\xnviewmp.exe\" \"%V\""
I hope this feature can be integrated into future installation wizards.
User avatar
user0
XnThusiast
Posts: 1885
Joined: Sat May 09, 2015 9:37 am

Re: Adding "Right-Click to Open Folder in Browser View" Feature via Registry Key

Post by user0 »

+1
but there are 2 different context menus:
  • Folder (already exists in Settings>Integration)

    Code: Select all

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\Directory\shell\XnViewMP]
    @="Browse in XnView MP"
    "icon"="\"D:\\PROG\\portable\\graphic\\XnViewMP\\xnviewmp.exe\""
    
    [HKEY_CLASSES_ROOT\Directory\shell\XnViewMP\command]
    @="\"D:\\PROG\\portable\\graphic\\XnViewMP\\xnviewmp.exe\" \"%1\""
    
  • Desktop & Folder background

    Code: Select all

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\XnViewMP]
    @="Browse in XnView MP"
    "icon"="\"D:\\PROG\\portable\\graphic\\XnViewMP\\xnviewmp.exe\""
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\XnViewMP\command]
    @="\"D:\\PROG\\portable\\graphic\\XnViewMP\\xnviewmp.exe\" \"%V\""
    
ps. in win11 it only visible in old context menu (Shift+RMB)
User avatar
xnview
Author of XnView
Posts: 44572
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Adding "Right-Click to Open Folder in Browser View" Feature via Registry Key

Post by xnview »

See issue for current status and some details.
Pierre.
User avatar
xnview
Author of XnView
Posts: 44572
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Adding "Right-Click to Open Folder in Browser View" Feature via Registry Key

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.8.1. Please check and confirm the bug fix here.
Pierre.