feature: todo_comments for current file
Did you check the docs?
- [x] I have read all the snacks.nvim docs
Is your feature request related to a problem? Please describe.
In the example it opens all the todo comments in the project.
{
"folke/todo-comments.nvim",
optional = true,
keys = {
{ "<leader>st", function() Snacks.picker.todo_comments() end, desc = "Todo" },
{ "<leader>sT", function () Snacks.picker.todo_comments({ keywords = { "TODO", "FIX", "FIXME" } }) end, desc = "Todo/Fix/Fixme" },
},
}
Describe the solution you'd like
An argument to Snacks.picker.todo_comments() to show todos in the current file only.
Describe alternatives you've considered
Grep for TODO comments.
Additional context
No response
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This is nice feature to bring to snacks.nvim, IMO
There is already an implementation: https://github.com/folke/snacks.nvim/blob/main/docs/picker.md#todo_comments
@m-over Read the issue before commenting.
You can just call :lua Snacks.picker.todo_comments({ keywords = { "TODO", "FIX", "FIXME" }, dirs = {vim.api.nvim_buf_get_name(0)} }) and it should show only the current buffer. I did some non-extending testing and it seems to work. Hope I didn't miss anything else. Just bind it to a mapping of your choice.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.