add helix selection internal tweaks

This commit is contained in:
Meredith Oleander 2025-01-19 07:53:59 +11:00 committed by CJ van den Berg
parent 3e65503902
commit 70f0d8bea6
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 49 additions and 19 deletions

View file

@ -951,11 +951,13 @@ const cmds = struct {
pub fn enter_helix_mode(_: *Self, _: Ctx) Result {
try @import("mode/helix.zig").init();
if (get_active_editor()) |editor| editor.enable_helix_selection = true;
}
pub const enter_helix_mode_meta = .{};
pub fn exit_helix_mode(_: *Self, _: Ctx) Result {
@import("mode/helix.zig").deinit();
if (get_active_editor()) |editor| editor.enable_helix_selection = false;
}
pub const exit_helix_mode_meta = .{};
};