From 589cab3c112feae02e570123b9aa1e983fac8935 Mon Sep 17 00:00:00 2001 From: "a.shalimov" Date: Mon, 5 Oct 2026 14:05:26 +0300 Subject: [PATCH] FzfLua: Add shorcuts for finding porblems and questions --- lua/custom/fzf_lua.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lua/custom/fzf_lua.lua b/lua/custom/fzf_lua.lua index 614c64f..acd47c1 100644 --- a/lua/custom/fzf_lua.lua +++ b/lua/custom/fzf_lua.lua @@ -173,3 +173,20 @@ keymap("n", "faq", function() search = '━ Question', }) end, { desc = "FZF: find questions in current file" }) + +-- Unresolved questions/problems in current buffer (header ends with " 0 ") +keymap("n", "fdq", function() + fzf_lua.grep_curbuf({ + prompt = 'Open Questions (file)❯ ', + search = '┏━+ Question 0 ', + no_esc = true, + }) +end, { desc = "FZF: unresolved questions in current buffer" }) + +keymap("n", "fdp", function() + fzf_lua.grep_curbuf({ + prompt = 'Open Problems (file)❯ ', + search = '┏━+ Problem 0 ', + no_esc = true, + }) +end, { desc = "FZF: unresolved problems in current buffer" })