File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 134
134
--- @private
135
135
function Capture :_get_refile_vars ()
136
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' )
137
+ local file = vim .fn .resolve ( vim . fn . fnamemodify (template .target or config .org_default_notes_file , ' :p' ) )
138
138
local lines = vim .api .nvim_buf_get_lines (0 , 0 , - 1 , true )
139
139
local org_file = File .from_content (lines , ' capture' , utils .current_file_path ())
140
140
local item = nil
Original file line number Diff line number Diff line change 69
69
function Config :get_all_files ()
70
70
local all_filenames = {}
71
71
if self .opts .org_default_notes_file and self .opts .org_default_notes_file ~= ' ' then
72
- local default_full_path = vim .fn .expand (self .opts .org_default_notes_file , ' :p' )
72
+ local default_full_path = vim .fn .resolve ( vim . fn . expand (self .opts .org_default_notes_file , ' :p' ) )
73
73
table.insert (all_filenames , default_full_path )
74
74
end
75
75
local files = self .opts .org_agenda_files
You can’t perform that action at this time.
0 commit comments