ctrl-space for word-complete?

This commit is contained in:
Krzosa Karol
2026-01-25 09:14:26 +01:00
parent a9730924d7
commit eec1e137b7
2 changed files with 6 additions and 6 deletions

View File

@@ -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);

View File

@@ -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");
} RegisterCommand(CMD_WordCompleteOrIndent, "", "Completes the current word or it indents it, when single caret with no selection it goes for word complete");