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.
vim.fn.resolve
1 parent 8118802 commit b31d575Copy full SHA for b31d575
lua/orgmode/capture/init.lua
@@ -134,7 +134,7 @@ end
134
---@private
135
function Capture:_get_refile_vars()
136
local template = vim.api.nvim_buf_get_var(0, 'org_template') or {}
137
- local file = vim.fn.fnamemodify(template.target or config.org_default_notes_file, ':p')
+ local file = vim.fn.resolve(vim.fn.fnamemodify(template.target or config.org_default_notes_file, ':p'))
138
local lines = vim.api.nvim_buf_get_lines(0, 0, -1, true)
139
local org_file = File.from_content(lines, 'capture', utils.current_file_path())
140
local item = nil
0 commit comments