how to open capture window using lua function? #761
-
Is there an api or some ways to open capture window using lua function? |
Beta Was this translation helpful? Give feedback.
Answered by
kristijanhusak
Jun 30, 2024
Replies: 2 comments 1 reply
-
You want to create a new local Capture = require("orgmode.capture")
local capture = Capture:new({
files = files,
templates = templates,
on_pre_refile = on_pre_refile,
on_post_refile = on_post_refile,
on_cancel_refile = function()
resolve(nil)
end,
})
return capture:prompt() |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thank you all. |
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
There is a simpler way. Try this:
Or to open directly a specific template shortcut: