Thunar custom actions that only show up on the menu in specific directories
Submitted by Jimi Bove
Assigned to Xfce Bug Triage
Description
A dream of mine is to have context-specific custom actions in Thunar. That is, whenever I open a right-click menu, which options are displayed is determined not only by the type of the folder/file being right-clicked on (like right now), but also by the path of that folder/file, in a user-configurable way.
Here's a use-case idea I have as an example: I manage multiple WINE bottles, and I prefer to do it all myself rather than deal with someone else's bottle-managing tool. I store all of my bottles in a specific place: /.local/share/wineprefixes/. So I would love to be able to have a custom action, named "Run winecfg", that (perhaps by supporting regex or something) only shows up when the path of the selected folder/file includes "/.local/share/wineprefixes/.+/". From there I could have it run a script that takes in the arguments, uses more regex to determine the exact bottle I'm in, and runs winecfg with $WINEPREFIX set accordingly.
I have ideas like this so often that if I went ahead on them without this UCA feature, my right-click menu would become even more ridiculously cluttered than it already is.