Hi,
I have made a menu entry for me as follows
{ "caption": "Cut and Paste", "command": "chain", "args": { "commands": [ ["cut"], ["new_file"], ["paste"] ] }, "context": [ { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, ] },
which allows me to cut the selected text and then pastes it into a new file. I now would like to disable the command if the selection is empty, i.e. has length 0. How is this possible? I trief it with the “context”, but it doesn’t seem to work.