We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62c546a commit f7ba7aeCopy full SHA for f7ba7ae
lua/obsidian/pickers/_snacks.lua
@@ -76,15 +76,15 @@ SnacksPicker.grep = function(self, opts)
76
debug_once("grep opts : ", opts)
77
78
---@type obsidian.Path
79
- local dir = opts.dir and Path:new(opts.dir) or self.client.dir
+ local dir = opts.dir.filename and Path:new(opts.dir.filename) or self.client.dir
80
81
local map = vim.tbl_deep_extend("force", {},
82
notes_mappings(opts.selection_mappings))
83
84
local pick_opts = vim.tbl_extend("force", map or {}, {
85
source = "grep",
86
title = opts.prompt_title,
87
- cwd = dir,
+ cwd = tostring(dir),
88
confirm = function(picker, item, action)
89
picker:close()
90
if item then
0 commit comments