We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 171ef59 commit 2adb21eCopy full SHA for 2adb21e
lua/orgmode/capture/init.lua
@@ -49,6 +49,15 @@ function Capture:open_template(template)
49
vim.cmd([[autocmd OrgCapture BufWipeout <buffer> ++once lua require('orgmode').action('capture.refile', true)]])
50
end
51
52
+---@param shortcut string
53
+function Capture:open_template_by_shortcut(shortcut)
54
+ local template = self.templates[shortcut]
55
+ if not template then
56
+ return utils.echo_error('No capture template with shortcut ' .. shortcut)
57
+ end
58
+ return self:open_template(template)
59
+end
60
+
61
---Triggered when refiling from capture buffer
62
---@param confirm? boolean
63
function Capture:refile(confirm)
0 commit comments