kate-deft/docs/radials.example.json

29 lines
1.2 KiB
JSON

{
"//": "Ollie radial-menu config. Copy to $XDG_CONFIG_HOME/olliepalette/radials.json",
"//trigger": "Each radial may have a key 'trigger' (e.g. \"Alt+R\") and/or a mouse 'button' (\"RightButton\" | \"MiddleButton\").",
"//slices": "A slice is a leaf { \"label\", \"action\": <Kate objectName> } or a branch { \"label\", \"slices\": [ ... ] }. The special action \"ollie_command_palette\" opens the M-x palette.",
"radials": [
{
"name": "edit",
"trigger": "Alt+R",
"button": "RightButton",
"slices": [
{ "label": "Comment", "action": "comment" },
{ "label": "Uncomment", "action": "uncomment" },
{ "label": "Join Lines", "action": "join_lines" },
{ "label": "Move Up", "action": "move_lines_up" },
{ "label": "Move Down", "action": "move_lines_down" },
{
"label": "More",
"slices": [
{ "label": "Format", "action": "tools_align" },
{ "label": "To Upper", "action": "tools_uppercase" },
{ "label": "To Lower", "action": "tools_lowercase" },
{ "label": "Command Palette", "action": "ollie_command_palette" }
]
}
]
}
]
}