Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to Reorder Items and Fix Their Positions in the List #794

Unanswered
LiJudge asked this question in Q&A
Discussion options

I’m trying to move 1 to the position of 2, ideally placing 1 above 2. Additionally, I would like to swap 3 and 4, ensuring that 3 always appears last and 4 always appears second-to-last. Any guidance would be appreciated.
2026年02月07日

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

I managed to get it working on my own. I’m not entirely sure how it’s implemented, but it does exactly what I wanted.This is what I came up with. Can you check if there’s any room for improvement? I’ve listed everything and arranged them in order.

modify(find="复制文件地址" menu="/" pos=bottom)
modify(find="创建快捷方式" menu="/" pos=bottom)
menu(separator="before" mode="multiple" title=title.more_options image=icon.more_options pos=98){}
modify(find="属性" menu="/" pos=99)

You must be logged in to vote
1 reply
Comment options

RubicBG Feb 15, 2026
Collaborator

  • you can use only pos='bottom' but write all modify() in reverse order based on what you want
  • you do not need menu="/" - it is the default one
  • there is also pos=indexof('menu or item name [, position shift] ) :
    indexof('copy') is the same as indexof('copy', 0)
    indexof('copy', 1)
    indexof('copy', -1)
    if menu or item name does not exist - goes to bottom, if out of range - can crash explorer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /