Can Rox-Filer's Right-Click Options be Re-arranged?

For discussions about programming, and for programming questions and advice


Moderator: Forum moderators

Post Reply
User avatar
mikeslr
Posts: 3080
Joined: Mon Jul 13, 2020 11:08 pm
Has thanked: 179 times
Been thanked: 991 times

Can Rox-Filer's Right-Click Options be Re-arranged?

Post by mikeslr »

The following is a petty annoyance but correcting it requires knowledge of scripting I do not have.
When a file or folder is Right-Clicked options such as the following are displayed.

Right-Click-Arrangement.png
Right-Click-Arrangement.png (47.37 KiB) Viewed 290 times

I've 'boxed' the options I most frequently use. The boxing conceals the fact that the display already separates them with lines above and below such as that separating "Open With" from "Set Run Action". My experience is that the options within the "box" are the ones most frequently used. To have any of them executed after Right-Clicking a file or folder I have to scroll down thru less frequently used options. No biggee. But a petty annoyance.

So I wondered if that section could be moved to the top.

[In 'my perfect' world, I'd include "Search with pfind" and perhaps "Properties" in the Top-most Section].

Last edited by Flash on Wed Mar 12, 2025 3:17 am, edited 1 time in total.
Reason: Put Rox-Filer in subject line
User avatar
MochiMoppel
Posts: 1343
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 22 times
Been thanked: 521 times

Re: Can the Right-Click Options be Re-arranged?

Post by MochiMoppel »

mikeslr wrote: Tue Mar 11, 2025 2:21 pm

My experience is that the options within the "box" are the ones most frequently used. To have any of them executed after Right-Clicking a file or folder I have to scroll down thru less frequently used options. No biggee. But a petty annoyance.
So I wondered if that section could be moved to the top.

No. Well, theoretically yes, but this would require to modify the ROX-Filer binary, something that goes far beyond scripting.

You have to understand that the menu you show in your screenshot (apparently you right-clicked on a directory) gets its input from 3 different sources:

Entries starting from "Customise Menu..." are all hard coded in the ROX-Filer binary.

The entries above "Customise Menu..." are the ones you can manipulate. They are alphabetically sorted, but notice that this order ends when reaching "Trash". With "EasyTAG" a new order starts.
You will find the 14 options up to "Trash" in the directory /root/.config/rox.sourceforge.net/SendTo/.inode_directory. You could combine all 14 menu items into a single submenu. Just create another folder in this directory (you may call it "SendTo...") and move the 14 symlinks into this folder.

"EasyTAG" and "pCompress" appear in the menu because their .desktop files contain a related MimeType setting, e.g. MimeType=inode/directory. You could remove this type - or all types if you don't want "EasyTAG" to show up in any right-click menu. Same goes for "pCompress".

User avatar
MochiMoppel
Posts: 1343
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 22 times
Been thanked: 521 times

Re: Can Rox-Filer's Right-Click Options be Re-arranged?

Post by MochiMoppel »

mikeslr wrote: Tue Mar 11, 2025 2:21 pm

the options within the "box" are the ones most frequently used. To have any of them executed after Right-Clicking a file or folder I have to scroll down thru less frequently used options. No biggee. But a petty annoyance.

@mikeslr
Here is an even simpler solution to your "petty annoyance": Use Ctrl+RightClick , not just RightClick.
This will jump right to "Copy" in your red box area. No moving the cursor over from the left main menu (the one that starts with "Display"). No scrolling whatsoever.

And when you are at it, try also Shift+RightClick. This will jump right to the "Open With" menu.
This menu, a sub-sub-menu of the main menu, is even more annoying to reach when done with a plain RightClick.

User avatar
Trapster
Posts: 228
Joined: Sat Aug 01, 2020 7:44 pm
Location: Texas
Has thanked: 2 times
Been thanked: 71 times

Re: Can Rox-Filer's Right-Click Options be Re-arranged?

Post by Trapster »

In VanillaDpup, right click into an empty area of rox and then hovering on "next click" brings up a sub-menu with those items at the top.

Post Reply

Return to “Programming”