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
165 stars 16 forks source link

How to move menu entries to the top? #27

Closed hamad12a closed 1 year ago

hamad12a commented 1 year ago

How to popular the context menu options; say I added this context menu "Open in VS Code" I want to move to the top of the context menu, it should be the first appears before the "Open" option.

bassmanitram commented 1 year ago

For a submenu:

image

image

bassmanitram commented 1 year ago

For items in the main menu, it's essentially the same but there is no Submenu Actions tab involved:

image

hamad12a commented 1 year ago

@bassmanitram But this method does not allow moving the option to the top of the context menu When I right-click the context menu appears with the default order; I,e., Open, Open with other Application, Open in new window,...,Open in VS Code, Test all placeholders,...

bassmanitram commented 1 year ago

Then that's a bug! I'll check it out.

bassmanitram commented 1 year ago

Indeed, for submenus this does not work - hopefully I'll get a fix issued today

bassmanitram commented 1 year ago

To be clear, the optional Submenu sorting option should be left unset or be activated and set to manual in order for the ordering represented in the config UI to be replicated in the actual generated menu structure.

bassmanitram commented 1 year ago

Fixed in Release 1.5.1

hamad12a commented 1 year ago

@bassmanitram Not sure if you understood my issue

bassmanitram commented 1 year ago

OK, well what I THOUGHT you wanted actually exposed a bug that the PR attached to this issue fixed. Now I think I understand that you want the item right at the top of the context menu - and, as it stands, it can't be done.

If you create a new issue asking for that as a new feature, then we can track it separately - BUT it is not going to be a priority feature (and, as I say, it can't be done using the current frameworks).

However, I notice that you have forked the project - so feel free to investigate yourself and submit a PR if you manage to solve it.

On Wed, 2 Nov 2022, 18:06 hamad12a, @.***> wrote:

@bassmanitram https://github.com/bassmanitram Not sure if you understood my issue

— Reply to this email directly, view it on GitHub https://github.com/bassmanitram/actions-for-nautilus/issues/27#issuecomment-1300928847, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADAKLWQPH2MIYXNEJ3YX2YTWGKNSPANCNFSM6AAAAAARUHACGM . You are receiving this because you were mentioned.Message ID: @.***>