-
Notifications
You must be signed in to change notification settings - Fork 305
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
Fix order of actions in context menu #3334
Conversation
Hi, I can't reproduce the ordering problem, but I wonder that's because of the way directories are processed individually, and not always all at once. We're currently sorting files in each given folder, then adding their actions. The final action list won't be in order. And each folder can be updated separately, further affecting any order, as the old ones are removed and replacements added to the end of the list. For instance, my startup (each ----- line is the end of
I think if there's to be any consistency, |
Sorry if I was not totally clear, my issue was not about global ordering but order of actions from a single directory.
helper.zsh#!/bin/zsh -xeu
n=$1
# Will remove your existing actions, be careful!
# rm -f *.nemo_action(N); # Uncomment me.
for i in {001..$n}
do
printf > $i.nemo_action "
[Nemo Action]
Name=x-%s
Exec=echo
Selection=any
Extensions=any
" "$i"
done I'm on Arch Linux, using i3 (no desktop environment). The order I see in context menu is 3 2 1. In further tabs it correctly shows 1 2 3. I guess it is likely related to timings of events and the number of directories. On my machine I can reproduce it with 100%. I can provide a similar output like yours if it would be helpful. A final sorting would fix a superset of this issue so maybe I should give a try and implement that one too? |
What's the state of this PR? Am I expected to do something? |
Sorry, nothing really wrong, it's just a bit incomplete like I mentioned above. This will be less of an issue when #3353 is merged also. |
Opening
nemo 6.0.0
(but issue first seen about half year ago so it is not version specific), in the first tab of the first window, actions in context menu show up in reversed order. Order seems to be correct in further tabs and windows or after changing view mode (e.g. list -> icons).