Windows11 (25H2), display resolution 3840x2160, dpi scale 150%
User commands
there are few inconveniencies
- not possible to
- assign custom shortcut
- add to context menu
- add to custom filter - open with
- modify XMP/IPTC template button after initial assignment (bug)
- functionality spread across app and stored in different places
- custom Toolbar button (Settings>Toolbar)
default.bar (also no unique command name)
_cmd_=name_1;fullpath_1;fullpath_icon_1
_cmd_=name_2;fullpath_2;fullpath_icon_2
_xmp_=name_1;fullpath_1;fullpath_icon_1
_xmp_=name_2;fullpath_2;fullpath_icon_2
- custom 'Open with' command
xnview.ini
OpenWith=fullpath_1, fullpath_2
OpenWithName=name_1, name_2
OpenWithParam=arg_1, arg_2
- custom Toolbar button (Settings>Toolbar)
Suggestion
- unify UI
- add new 'User commands' section in Settings>Interface(?)
user commands should be accessible in the list of Toolbar, Context menu, Shortcuts tabs (and Open with, if selected)
- add new 'Edit user command' dialog
- (if required) add 'Type' field [Executable (.exe/scripts), Metadata Template (IPTX, XMP)]
- icon changes via double-click, icon resource reference (app.exe,0) could be set in .ini
- improve arguments
- add "Show in 'Open with' menu" checkbox to show in file context menu and in Custom filter (OR add separate checkbox for Custom filter)
- remove 'Configure Programs' dialog from 'Open with'
'Configure programs...' could open corresponding section in Settings
- remove from Settings>Toolbar
- buttons: 'Set command...', 'Set label...', 'Set Icon...'
- commands: --COMMAND--, --NEW IPTC TEMPLATE--, --NEW XMP TEMPLATE--
- add new 'User commands' section in Settings>Interface(?)
- unify storage
keep stuff only in xnview.ini- default.bar
- should only contain command names
- xnview.ini
- add new group, eg [UserCommands]
- user command name must be unique
- default.bar
Example
Related