feat: split and navigate on shift+enter in find_file

This commit is contained in:
CJ van den Berg 2025-11-06 19:17:03 +01:00
parent 5aa385679e
commit e5d78c95a5
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 19 additions and 1 deletions

View file

@ -344,6 +344,12 @@ const cmds = struct {
}
pub const change_project_meta: Meta = .{ .arguments = &.{.string} };
pub fn navigate_split_vertical(self: *Self, ctx: Ctx) Result {
try command.executeName("add_split", .{});
try navigate(self, ctx);
}
pub const navigate_split_vertical_meta: Meta = .{ .arguments = &.{.object} };
pub fn navigate(self: *Self, ctx: Ctx) Result {
tui.reset_drag_context();
const frame = tracy.initZone(@src(), .{ .name = "navigate" });