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

ShowIfTrue feature would be nice! #46

Open flow-c opened 1 year ago

flow-c commented 1 year ago

First, this is great replacement for the old nautilus-actions package. Thanks!

The only feature that I miss from the old days is the ShowIfTrue condition that let you specify a command whose output would determine whether to show an action or not.

For example I had an Eject action to detach mounted filesystems defined by

Exec=umount %f
ShowIfTrue=sed -z 's/.*\\s%f\\>.*/true/' /etc/mtab

This would add even more flexibility on top of mime, file type and path pattern conditions.

flow-c commented 1 year ago

I've just discovered that this is already a TO-DO: https://github.com/bassmanitram/actions-for-nautilus/blob/main/TO-DO.md

Never mind :)

bassmanitram commented 1 year ago

Thanks for the kind comments.

Yes that is in the TODOs... I actually didn't think anyone would want that. So I'll consider how to implement it now. Thanks for the nudge

Martin

On Fri, 16 Jun 2023, 19:47 flow-c, @.***> wrote:

I've just discovered that this is already a TO-DO: https://github.com/bassmanitram/actions-for-nautilus/blob/main/TO-DO.md

Never mind :)

— Reply to this email directly, view it on GitHub https://github.com/bassmanitram/actions-for-nautilus/issues/46#issuecomment-1595036011, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADAKLWX423LNMZRAZJIXLXDXLSL3TANCNFSM6AAAAAAZJRMKFI . You are receiving this because you are subscribed to this thread.Message ID: @.***>