ctrl-space for word-complete?
This commit is contained in:
@@ -27,12 +27,12 @@ void CMD_KillSelectedLines() {
|
|||||||
void CMD_IndentSelectedLines() {
|
void CMD_IndentSelectedLines() {
|
||||||
BSet active = GetBSet(ActiveWindowID);
|
BSet active = GetBSet(ActiveWindowID);
|
||||||
IndentSelectedLines(active.view);
|
IndentSelectedLines(active.view);
|
||||||
} RegisterCommand(CMD_IndentSelectedLines, "ctrl-rightbracket", "");
|
} RegisterCommand(CMD_IndentSelectedLines, "ctrl-rightbracket | tab", "");
|
||||||
|
|
||||||
void CMD_DedentSelectedLines() {
|
void CMD_DedentSelectedLines() {
|
||||||
BSet active = GetBSet(ActiveWindowID);
|
BSet active = GetBSet(ActiveWindowID);
|
||||||
IndentSelectedLines(active.view, true);
|
IndentSelectedLines(active.view, true);
|
||||||
} RegisterCommand(CMD_DedentSelectedLines, "ctrl-leftbracket", "");
|
} RegisterCommand(CMD_DedentSelectedLines, "ctrl-leftbracket | shift-tab", "");
|
||||||
|
|
||||||
void CMD_DuplicateLineDown() {
|
void CMD_DuplicateLineDown() {
|
||||||
BSet active = GetBSet(ActiveWindowID);
|
BSet active = GetBSet(ActiveWindowID);
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ void CMD_WordComplete() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
WordComplete(active.view, active.view->carets[0].range.min);
|
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() {
|
void CMD_CompletePrevWord() {
|
||||||
BSet active = GetBSet(ActiveWindowID);
|
BSet active = GetBSet(ActiveWindowID);
|
||||||
@@ -214,7 +214,7 @@ void CMD_CompletePrevWord() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
CompletePrevWord(active.view, active.view->carets[0].range.min);
|
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() {
|
void CMD_CompletePrevWordOrDedent() {
|
||||||
BSet active = GetBSet(ActiveWindowID);
|
BSet active = GetBSet(ActiveWindowID);
|
||||||
@@ -223,7 +223,7 @@ void CMD_CompletePrevWordOrDedent() {
|
|||||||
} else {
|
} else {
|
||||||
IndentSelectedLines(active.view, true);
|
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() {
|
void CMD_WordCompleteOrIndent() {
|
||||||
BSet active = GetBSet(ActiveWindowID);
|
BSet active = GetBSet(ActiveWindowID);
|
||||||
@@ -232,4 +232,4 @@ void CMD_WordCompleteOrIndent() {
|
|||||||
} else {
|
} else {
|
||||||
IndentSelectedLines(active.view);
|
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");
|
||||||
Reference in New Issue
Block a user