feat: add commands to execute shell tasks from keybindings
This is the first part of #67.
This commit is contained in:
parent
337b6ce626
commit
cfc99b61dc
5 changed files with 259 additions and 3 deletions
|
@ -3603,6 +3603,9 @@ pub const Editor = struct {
|
|||
if (ctx.args.match(.{ tp.extract(&file_path), tp.extract(&content) }) catch false) {
|
||||
try self.open_scratch(file_path, content);
|
||||
self.clamp();
|
||||
} else if (ctx.args.match(.{tp.extract(&file_path)}) catch false) {
|
||||
try self.open_scratch(file_path, "");
|
||||
self.clamp();
|
||||
} else return error.InvalidOpenScratchBufferArgument;
|
||||
}
|
||||
pub const open_scratch_buffer_meta = .{ .arguments = &.{ .string, .string } };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue