How to remove weird prompt prefix for Snacks.picker.todo_comments() #2025
Answered
by
drowning-cat
valterschutz
asked this question in
Q&A
Replies: 1 comment 6 replies
-
-- Variant 1. Hidden `search`, can be toggled with `<C-g>`
vim.schedule(function()
local input = require 'snacks.picker.core.input'
local statuscolumn = input.statuscolumn
input.statuscolumn = function(self)
if self.picker.opts.no_status == true then
return ' '
else
return statuscolumn(self)
end
end
end) -- Variant 2. Appears permanently after toggling the live mode twice with `<C-g>`
vim.schedule(function()
local live, live_changed
local input = require 'snacks.picker.core.input'
local statuscolumn = input.statuscolumn
input.statuscolumn = function(self)
local opts = self.picker.opts
if not live_changed then
live_changed = live ~= nil and live ~= opts.live
live = opts.live
end
return (not live_changed and opts.no_status) and ' ' or statuscolumn(self)
end
end) Snacks.picker.todo_comments { no_status = true } |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
valterschutz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I've enabled both snacks.picker and todo-comments with only default configuration. However, when I open the todo picker, I get a weird prefix before the prompt:

It seems to contain the alternative text for each keyword, but when I remove all alternative texts it instead shows the keywords (like "TODO", "NOTE", etc).
I would like a simple prompt like "> ", just like all the other pickers have by default.
I've tried searching through the source code for both snacks and todo-comments but can't find where this prefix is set.
Beta Was this translation helpful? Give feedback.
All reactions