From eec1e137b7e48ec6f6af9ebd575c07a3269bc93f Mon Sep 17 00:00:00 2001 From: Krzosa Karol Date: Sun, 25 Jan 2026 09:14:26 +0100 Subject: [PATCH] ctrl-space for word-complete? --- src/text_editor/plugin_basic_commands.cpp | 4 ++-- src/text_editor/plugin_word_complete.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/text_editor/plugin_basic_commands.cpp b/src/text_editor/plugin_basic_commands.cpp index 2adc472..cbd0e7c 100644 --- a/src/text_editor/plugin_basic_commands.cpp +++ b/src/text_editor/plugin_basic_commands.cpp @@ -27,12 +27,12 @@ void CMD_KillSelectedLines() { void CMD_IndentSelectedLines() { BSet active = GetBSet(ActiveWindowID); IndentSelectedLines(active.view); -} RegisterCommand(CMD_IndentSelectedLines, "ctrl-rightbracket", ""); +} RegisterCommand(CMD_IndentSelectedLines, "ctrl-rightbracket | tab", ""); void CMD_DedentSelectedLines() { BSet active = GetBSet(ActiveWindowID); IndentSelectedLines(active.view, true); -} RegisterCommand(CMD_DedentSelectedLines, "ctrl-leftbracket", ""); +} RegisterCommand(CMD_DedentSelectedLines, "ctrl-leftbracket | shift-tab", ""); void CMD_DuplicateLineDown() { BSet active = GetBSet(ActiveWindowID); diff --git a/src/text_editor/plugin_word_complete.cpp b/src/text_editor/plugin_word_complete.cpp index 0ca2819..0e57b21 100644 --- a/src/text_editor/plugin_word_complete.cpp +++ b/src/text_editor/plugin_word_complete.cpp @@ -205,7 +205,7 @@ void CMD_WordComplete() { return; } WordComplete(active.view, active.view->carets[0].range.min); -} RegisterCommand(CMD_WordComplete, "", "Completes the current word"); +} RegisterCommand(CMD_WordComplete, "ctrl-space", "Completes the current word"); void CMD_CompletePrevWord() { BSet active = GetBSet(ActiveWindowID); @@ -214,7 +214,7 @@ void CMD_CompletePrevWord() { return; } CompletePrevWord(active.view, active.view->carets[0].range.min); -} RegisterCommand(CMD_CompletePrevWord, "", "Completes the current word"); +} RegisterCommand(CMD_CompletePrevWord, "ctrl-shift-space", "If already completing a word, iterate to previous word"); void CMD_CompletePrevWordOrDedent() { BSet active = GetBSet(ActiveWindowID); @@ -223,7 +223,7 @@ void CMD_CompletePrevWordOrDedent() { } else { IndentSelectedLines(active.view, true); } -} RegisterCommand(CMD_CompletePrevWordOrDedent, "shift-tab", "Completes the current word or it indents it, when single caret with no selection it goes for word complete"); +} RegisterCommand(CMD_CompletePrevWordOrDedent, "", "Completes the current word or it indents it, when single caret with no selection it goes for word complete"); void CMD_WordCompleteOrIndent() { BSet active = GetBSet(ActiveWindowID); @@ -232,4 +232,4 @@ void CMD_WordCompleteOrIndent() { } else { IndentSelectedLines(active.view); } -} RegisterCommand(CMD_WordCompleteOrIndent, "tab", "Completes the current word or it indents it, when single caret with no selection it goes for word complete"); \ No newline at end of file +} RegisterCommand(CMD_WordCompleteOrIndent, "", "Completes the current word or it indents it, when single caret with no selection it goes for word complete"); \ No newline at end of file