Menu

[Design Mode] How to Edit NOT highlighted menu items

Anonymous
2018-04-25
2018-04-27
  • Anonymous

    Anonymous - 2018-04-25

    Hi,

    I tried some contextual filters for a plugin. Unfortunately my last test
    do not let me activate the menu item anymore, it is always greyed out.

    My question is: how do I edit this menu item now as SpaceFM allows only
    to do this on an highlighted item? (that is IMHO a stupid design....)

    It is to late to revert to the last spacefm session, and I do no want to
    delete my spacefm config folder

    Thierry B.

     
  • thierrybo

    thierrybo - 2018-04-25

    Well, I found how to revert changes, here is how:

    • Close spacefm
    • open ~/.config/spacefm/session in your favorite text editor
    • search a string related to your change. In my case that was related to disabling Trash menu item if filesystem was not ext4, so I searched for "ext4". All the context filters for one menu item are on a single line, as your filter is the last added, it will be at he end of the line:

    Before: cstm_4e316476-cxt=1%%%%%1%%%%%1%%%%%1%%%%%%%%%%2%%%%%7%%%%%/Trash/files%%%%%2%%%%%7%%%%%/Trash/info%%%%%19%%%%%0%%%%%ext4

    Remove the characters after "Trash/info" :

    After: cstm_4e316476-cxt=1%%%%%1%%%%%1%%%%%1%%%%%%%%%%2%%%%%7%%%%%/Trash/files%%%%%2%%%%%7%%%%%/Trash/info

    How i found this? I use the root account where I did not changed the filters. I made a copy of the session file, added the same filter, the compared the two files.

     
  • thierrybo

    thierrybo - 2018-04-27

    the answer here

     

Anonymous
Anonymous

Add attachments
Cancel