summaryrefslogtreecommitdiff
path: root/helix-term/src/commands.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-03-01 05:31:34 +0000
committerBlaž Hrastnik2021-03-01 05:31:34 +0000
commitec4dd0a176ad3cfffbc1f45198e64ae83ab6add3 (patch)
tree42dab9dd723a33ec32c7e32516e5986e3d8efbec /helix-term/src/commands.rs
parent00808afe3c215d159574b23e30326379428060bf (diff)
Add a selection mode again.
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r--helix-term/src/commands.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 855a12eb..28caa6d5 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -673,6 +673,14 @@ pub fn goto_mode(cx: &mut Context) {
cx.doc().mode = Mode::Goto;
}
+pub fn select_mode(cx: &mut Context) {
+ cx.doc().mode = Mode::Select;
+}
+
+pub fn exit_select_mode(cx: &mut Context) {
+ cx.doc().mode = Mode::Normal;
+}
+
// NOTE: Transactions in this module get appended to history when we switch back to normal mode.
pub mod insert {
use super::*;