xwikisas / xwiki-pro-macros

XWiki rendering macros useful when migrating content from Confluence
GNU Lesser General Public License v2.1
3 stars 12 forks source link

View file macro's name is uselessly misleading, using the plural #306

Open lucaa opened 1 month ago

lucaa commented 1 month ago

The macro appears in the macros list and in the slash action suggests as "View files", it's not clear why the plural "files" since the id of the macro is singular (view-file) and the macro only allows to view a single file, so I don't understand why it appears in plural.

image

As a page editor reading that list, I expect see there a description of the action that I will do should I choose that option, which in case it's "view file", even if, as a general description, the macro allows to "view files" (because it will be used multiple times and "view file" will happen multiple times).

lucaa commented 1 month ago

Looking at the other macros, I don't see many that use the plural like this...

lucaa commented 1 month ago

tested with Pro macros 1.19.9 on XWiki 16.4.1