-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add commands to top of context menu #64
Comments
Hey Jonathan
Firstly thanks for using A4N.
In regards to putting items at the top of the context, the extensions API
exposed by Nautilus for the context menu is fairly rudimentary. In
particular there isn't a way to affect the general location of the A4N menu
items within the menu as a whole, only their order within the section of
the menu that Nautilus implicitly assigns to the extension (which is based
on the order in which menu extensions are loaded... which I also have no
control over except, possibly, alphabetically... which I'm already doing,
the extension name starting with an 'A' 😁).
I'm also not aware of any other techniques of getting a second 'open with'
entry to appear below the default one. Although you do see that sometimes
(e.g. executable scripts can have a 'run' entry at the top of the menu),
this is something internal to Nautilus and not part of the python API.
If you do find a solution to this, I'd love to know what it is.
Martin Bartlett
…On Tue, Apr 30, 2024, 11:28 Jonathan Gilbert ***@***.***> wrote:
Is it possible, or could it be made possible, to add options to the top of
the context menu? I want to be able to double-click an image and have it
open in the standard image viewer, but then to right-click it and directly
have the option "Open in pinta" (for example). Currently, it seems the
closest I can get with stock nautilus is "Open with Other Application"
which then requires me to navigate a list of possibilities, and the closest
I can get with actions-for-nautilus is an "Open with pinta" option way
down at the bottom of the context menu. Or is there another option I
haven't yet found?
—
Reply to this email directly, view it on GitHub
<#64>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADAKLWR5NL4XRUC5PODBGQLY75P4XAVCNFSM6AAAAABG74K52GVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI3TAOJXGIZDGMY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
That's disappointing but I had a suspicion that might be the case. :-) Thanks very much for the reply! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is it possible, or could it be made possible, to add options to the top of the context menu? I want to be able to double-click an image and have it open in the standard image viewer, but then to right-click it and directly have the option "Open in pinta" (for example). Currently, it seems the closest I can get with stock nautilus is "Open with Other Application" which then requires me to navigate a list of possibilities, and the closest I can get with
actions-for-nautilus
is an "Open with pinta" option way down at the bottom of the context menu. Or is there another option I haven't yet found?The text was updated successfully, but these errors were encountered: