Skip to content

Commit 1f620b4

Browse files
committed
fix: 'no file' 'absPath' errors (Restore 'absPath' into zk_api_select table)
1 parent 3fc67a3 commit 1f620b4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lua/zk/pickers/snacks_picker.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ local uv = vim.uv or vim.loop
1010
local notes_cache = {}
1111

1212
-- See https://zk-org.github.io/zk/tips/editors-integration.html#zk-list --> Expand section `2`
13-
M.zk_api_select = { "title", "path" } -- TODO: Can be modify now / Should be included in args's opts?
13+
M.zk_api_select = { "title", "path", "absPath" } -- TODO: Can be modify now / Should be included in args's opts?
1414

1515
M.show_note_picker = function(notes, opts, cb)
1616
notes = vim.tbl_map(function(note)
@@ -64,6 +64,7 @@ end
6464
-- https://github.com/folke/snacks.nvim/blob/main/lua/snacks/picker/format.lua
6565
---@param item snacks.picker.Item
6666
function snacks_format.zk_filename(item, picker)
67+
print(vim.inspect(item))
6768
local fullpath = vim.fs.joinpath(item.cwd, item.file)
6869
---@type snacks.picker.Highlight[]
6970
local ret = {}

lua/zk/pickers/telescope.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ local notes_cache = {}
1414
local M = {}
1515

1616
-- See https://zk-org.github.io/zk/tips/editors-integration.html#zk-list --> Expand section `2`
17-
M.zk_api_select = { "title", "absPath", "path" } -- TODO: Can be modify now / Should be included in args's opts?
17+
M.zk_api_select = { "title", "path", "absPath" } -- TODO: Can be modify now / Should be included in args's opts?
1818

1919
function M.create_note_entry_maker(_)
2020
return function(note)

0 commit comments

Comments
 (0)