Page 1 of 1

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

Posted: Thu Jul 25, 2024 7:28 am
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.

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

Posted: Sat Aug 31, 2024 5:06 pm
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)

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

Posted: Tue Sep 03, 2024 6:34 am
by xnview
See issue for current status and some details.

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

Posted: Thu Oct 10, 2024 2:35 pm
by xnview
This problem is supposed to be fixed in XnView MP 1.8.1. Please check and confirm the bug fix here.