diff --git a/docs/radials.example.json b/docs/radials.example.json index 791e56b..95efa6a 100644 --- a/docs/radials.example.json +++ b/docs/radials.example.json @@ -16,12 +16,12 @@ { "label": "More", "slices": [ - { "label": "Format", "action": "tools_align" }, - { "label": "To Upper", "action": "tools_uppercase" }, - { "label": "To Lower", "action": "tools_lowercase" }, - { "label": "Go to File…", "action": "ollie_goto_file" }, - { "label": "Go to Symbol…", "action": "ollie_goto_symbol" }, - { "label": "Command Palette", "action": "ollie_command_palette" } + { "label": "Align", "action": "tools_align" }, + { "label": "UPPER", "action": "tools_uppercase" }, + { "label": "lower", "action": "tools_lowercase" }, + { "label": "File…", "action": "ollie_goto_file" }, + { "label": "Sym…", "action": "ollie_goto_symbol" }, + { "label": "M-x", "action": "ollie_command_palette" } ] } ] @@ -30,20 +30,20 @@ "name": "window", "button": "MiddleButton", "slices": [ - { "label": "Split Vertical", "action": "view_split_vert" }, - { "label": "Split Horizontal", "action": "view_split_horiz" }, - { "label": "Close Split", "action": "view_close_current_space" }, - { "label": "Close Others", "action": "view_close_others" }, - { "label": "Toggle Orientation", "action": "view_split_toggle" }, + { "label": "Split ▯▯", "action": "view_split_vert" }, + { "label": "Split ⊟", "action": "view_split_horiz" }, + { "label": "Close", "action": "view_close_current_space" }, + { "label": "Only", "action": "view_close_others" }, + { "label": "Rotate", "action": "view_split_toggle" }, { "label": "Focus", "slices": [ - { "label": "Left", "action": "go_left_split_view" }, - { "label": "Right", "action": "go_right_split_view" }, - { "label": "Up", "action": "go_upward_split_view" }, - { "label": "Down", "action": "go_downward_split_view" }, - { "label": "Next", "action": "go_next_split_view" }, - { "label": "Previous", "action": "go_prev_split_view" } + { "label": "←", "action": "go_left_split_view" }, + { "label": "→", "action": "go_right_split_view" }, + { "label": "↑", "action": "go_upward_split_view" }, + { "label": "↓", "action": "go_downward_split_view" }, + { "label": "Next", "action": "go_next_split_view" }, + { "label": "Prev", "action": "go_prev_split_view" } ] } ] diff --git a/src/radial/radialconfig.cpp b/src/radial/radialconfig.cpp index 8140e40..12383a8 100644 --- a/src/radial/radialconfig.cpp +++ b/src/radial/radialconfig.cpp @@ -143,18 +143,18 @@ QList RadialConfig::builtinDefault() RadialNode more; more.label = QStringLiteral("More"); more.children = { - leaf(QStringLiteral("Comment"), QStringLiteral("comment")), - leaf(QStringLiteral("Uncomment"), QStringLiteral("uncomment")), - leaf(QStringLiteral("Uppercase"), QStringLiteral("uppercase")), - leaf(QStringLiteral("Lowercase"), QStringLiteral("lowercase")), - leaf(QStringLiteral("Join Lines"), QStringLiteral("joinLines")), + leaf(QStringLiteral("Cmnt"), QStringLiteral("comment")), + leaf(QStringLiteral("Uncmnt"), QStringLiteral("uncomment")), + leaf(QStringLiteral("UPPER"), QStringLiteral("uppercase")), + leaf(QStringLiteral("lower"), QStringLiteral("lowercase")), + leaf(QStringLiteral("Join"), QStringLiteral("joinLines")), // Panel-opening switchers live in the "More" branch next to the palette // escape hatch — not the top ring of in-place actions — because they pull // attention away from the caret. Resolved directly by onRadialActivated. - leaf(QStringLiteral("Go to File…"), QStringLiteral("ollie_goto_file")), - leaf(QStringLiteral("Go to Symbol…"), QStringLiteral("ollie_goto_symbol")), + leaf(QStringLiteral("File…"), QStringLiteral("ollie_goto_file")), + leaf(QStringLiteral("Sym…"), QStringLiteral("ollie_goto_symbol")), // Opens the full command palette (handled specially by the plugin). - leaf(QStringLiteral("Command Palette…"), QStringLiteral("ollie_command_palette")), + leaf(QStringLiteral("M-x"), QStringLiteral("ollie_command_palette")), }; edit.root.children = { @@ -166,7 +166,7 @@ QList RadialConfig::builtinDefault() // Multi-cursor on every selected line: a quintessential in-place action // (select lines → gesture → keep typing). Referenced by visible text so // it resolves regardless of the Kate action's objectName. - leaf(QStringLiteral("Multi-Cursor"), + leaf(QStringLiteral("Cursors"), QStringLiteral("Add Cursors to Line Ends")), more, }; @@ -184,20 +184,20 @@ QList RadialConfig::builtinDefault() RadialNode focus; focus.label = QStringLiteral("Focus"); focus.children = { - leaf(QStringLiteral("Left"), QStringLiteral("go_left_split_view")), - leaf(QStringLiteral("Right"), QStringLiteral("go_right_split_view")), - leaf(QStringLiteral("Up"), QStringLiteral("go_upward_split_view")), - leaf(QStringLiteral("Down"), QStringLiteral("go_downward_split_view")), + leaf(QStringLiteral("←"), QStringLiteral("go_left_split_view")), + leaf(QStringLiteral("→"), QStringLiteral("go_right_split_view")), + leaf(QStringLiteral("↑"), QStringLiteral("go_upward_split_view")), + leaf(QStringLiteral("↓"), QStringLiteral("go_downward_split_view")), leaf(QStringLiteral("Next"), QStringLiteral("go_next_split_view")), - leaf(QStringLiteral("Previous"), QStringLiteral("go_prev_split_view")), + leaf(QStringLiteral("Prev"), QStringLiteral("go_prev_split_view")), }; window.root.children = { - leaf(QStringLiteral("Split Vertical"), QStringLiteral("view_split_vert")), - leaf(QStringLiteral("Split Horizontal"), QStringLiteral("view_split_horiz")), - leaf(QStringLiteral("Close Split"), QStringLiteral("view_close_current_space")), - leaf(QStringLiteral("Close Others"), QStringLiteral("view_close_others")), - leaf(QStringLiteral("Toggle Orientation"), QStringLiteral("view_split_toggle")), + leaf(QStringLiteral("Split ▯▯"), QStringLiteral("view_split_vert")), + leaf(QStringLiteral("Split ⊟"), QStringLiteral("view_split_horiz")), + leaf(QStringLiteral("Close"), QStringLiteral("view_close_current_space")), + leaf(QStringLiteral("Only"), QStringLiteral("view_close_others")), + leaf(QStringLiteral("Rotate"), QStringLiteral("view_split_toggle")), focus, };