bassmanitram / actions-for-nautilus

An extension to the Gnome "Files" file manager that allows you to add arbitrary actions to the file selection context menu.
Apache License 2.0
168 stars 16 forks source link

Feature/min items #16

Closed bassmanitram closed 2 years ago

bassmanitram commented 2 years ago

Implementation of min_items. The semantics are pretty straightforward:

As usual, the extension implementation took 15 minutes, while the config editor implementation took hours! :)

There is also a fairly sizable chunk of changes to work around a JSON editor limitation related to rendering the action properties that aren't themselves objects or arrays. The upshot is that the JSON schema used for the UI is slightly different from the one that properly describes the backend config used by the extension. The editor UI contains translation code between the backend JSON and the format required by the editor.

Finally, there are some noticeable tidy-ups in the general styling and some small fixes to the sample configuration.