feat: place new tabs next to previously active tab
This commit is contained in:
parent
6678e0c1e3
commit
752a356d38
1 changed files with 4 additions and 0 deletions
|
|
@ -638,6 +638,10 @@ const cmds = struct {
|
|||
tui.need_render();
|
||||
}
|
||||
try command.executeName("save_file", .{});
|
||||
try command.executeName("place_next_tab", command.fmt(.{
|
||||
if (buffer.is_ephemeral()) "before" else "after",
|
||||
self.buffer_manager.buffer_to_ref(buffer),
|
||||
}));
|
||||
if (buffer.is_ephemeral())
|
||||
self.buffer_manager.close_buffer(buffer);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue