User commands - rework

Ideas for improvements and requests for new features in XnView MP

Moderator: xnview

User avatar
user0
XnThusiast
Posts: 2857
Joined: Sat May 09, 2015 9:37 am

User commands - rework

Post by user0 »

XnViewMP 1.9.10
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

Suggestion
user_commands_rework.png

  • 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--
  • 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




Example




Related
You do not have the required permissions to view the files attached to this post.
Last edited by user0 on Wed Mar 04, 2026 8:09 pm, edited 2 times in total.
alee001
Posts: 292
Joined: Sun Sep 04, 2022 4:43 am

Re: User commands - rework

Post by alee001 »

Just passing by...

Sorry, this is just my personal opinion. As a super browsing tool, XnView MP is already quite good. Adding more customizable features would certainly be convenient for a few users, but for the general public, excessive features would make the system too complex or even redundant, and difficult to maintain.
User avatar
user0
XnThusiast
Posts: 2857
Joined: Sat May 09, 2015 9:37 am

Re: User commands - rework

Post by user0 »

alee001 wrote: Mon Feb 02, 2026 8:39 am Just passing by...
it seems to me that you may not have fully understood the suggestion I posted.
hint: it adds 0 new functionality, but fixes multiple issues
alee001
Posts: 292
Joined: Sun Sep 04, 2022 4:43 am

Re: User commands - rework

Post by alee001 »

user0 wrote: Wed Feb 04, 2026 1:37 pm
alee001 wrote: Mon Feb 02, 2026 8:39 am Just passing by...
it seems to me that you may not have fully understood the suggestion I posted.
hint: it adds 0 new functionality, but fixes multiple issues
I apologize if any misunderstanding; I was simply pointing out that some functions were too complex.