-
Hey all ! My notes directory currently looks like this -
I have individual notes inside both these directories and most of them contain I want to view the todo items in either directory separately i.e with I tried setting up modes like this -
I open Neovim at the I tried poking through the code but I'm not entirely sure how to debug the value for |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I figured this out by building on top of some of the examples listed in the filter docs. Basically this works - todo_personal = {
mode = "todo",
filter = function(items)
return vim.tbl_filter(function(item)
local sep = package.config:sub(1,1)
return item.filename:find((vim.loop or vim.uv).cwd() .. sep .. "personal", 1, true)
end, items)
end,
}, I have the same function set up for But this works for me now. Marking this as resolved. |
Beta Was this translation helpful? Give feedback.
I figured this out by building on top of some of the examples listed in the filter docs. Basically this works -
I have the same function set up for
todo_work
as well. One pending thing is to define the function only once and have it accept the sub folder as an argument.But this works for me now. Marking this as resolved.