summaryrefslogtreecommitdiff
path: root/src/normal.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/normal.zig')
-rw-r--r--src/normal.zig7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/normal.zig b/src/normal.zig
index 630f7689..29d6d620 100644
--- a/src/normal.zig
+++ b/src/normal.zig
@@ -2,6 +2,7 @@
//! modal actions, replayed across every selection, and each action is done
//! to the pane; PDF panes get their own normal keys.
const pardes = @import("pardes.zig");
+const tagline = @import("tagline.zig");
const exec = @import("exec.zig");
const look = @import("look.zig");
const std = @import("std");
@@ -556,8 +557,8 @@ fn executeNormalAction(p: *Pardes, t: *Text, semantic: modal.Normal.Action) void
// keyboard between them.
.command_line => switch (t.what) {
.tag => pane.focus = .body,
- .column, .workspace => p.exitHeader(),
- .body, .input => p.enterTag(pane),
+ .column, .workspace => tagline.exitHeader(p),
+ .body, .input => tagline.enterTag(p, pane),
},
.pipe_selection => |how| return p.startPrompt(pane, .{ .pipe = how }),
.search => return p.startPrompt(pane, .{ .search = config.search_marker }),
@@ -600,7 +601,7 @@ pub fn handlePdfNormal(p: *Pardes, pane: *Pane, key: Key) void {
p.leader_on = true;
p.leader_n = 0;
},
- .command_line => p.enterTag(pane),
+ .command_line => tagline.enterTag(p, pane),
.search => p.startPrompt(pane, .{ .search = config.search_marker }),
.search_forward => look.lookWalk(p, 1),
.search_backward => look.lookWalk(p, -1),