Update `ZKMatch` for new `match` string-array requirement (#85)

pull/90/head
Oliver Marriott 1 year ago committed by GitHub
parent 73affbc95f
commit 60478c653a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -39,7 +39,7 @@ end)
commands.add("ZkMatch", function(options)
local selected_text = util.get_text_in_range(util.get_selected_range())
assert(selected_text ~= nil, "No selected text")
options = vim.tbl_extend("force", { match = selected_text }, options or {})
options = vim.tbl_extend("force", { match = { selected_text } }, options or {})
zk.edit(options, { title = "Zk Notes matching " .. vim.inspect(selected_text) })
end, { needs_selection = true })

Loading…
Cancel
Save