Replies: 2 comments
-
I don't think there's a way to do it directly in a key binding but you could write a plugin. Here's mine for reference: executor.lua |
Beta Was this translation helpful? Give feedback.
0 replies
-
Put this in local shell = import("micro/shell")
function zigrun(bp)
local buf = bp.Buf
bp:Save()
if buf:FileType() == "zig" then
shell.RunTermEmulator(bp, "zig run " .. buf.Path, true, false, (function(...)end), {})
end
end Then add |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use the binding, “command-edit:term zig run filename” and it compiles, but I need to edit the filename myself, I want to know how to get the current filename?
Beta Was this translation helpful? Give feedback.
All reactions