knap icon indicating copy to clipboard operation
knap copied to clipboard

How to disable logs

Open prescientmoon opened this issue 2 years ago • 3 comments

The plugin keeps printing process successful; refresh preview every time I type, which is extremly distracting for people like me who use cmdheight = 0. Is there a way to disable those logs?

prescientmoon avatar Jan 11 '23 09:01 prescientmoon

There's nothing built in to prevent that at present (cmdheight = 0 is not something I'd ever consider), but it's not a hard change to make if you want to make it yourself. Open the file lua/knap.lua and comment out (with -- line 372, print("process successful; refreshing viewer") to become -- print("process successful; refreshing viewer").

frabjous avatar Jan 11 '23 14:01 frabjous

@frabjous Should I open a pr with this?

prescientmoon avatar Jan 12 '23 22:01 prescientmoon

Not simply for disabling it as suggested. If you make it a true option that can be toggled on or off with an option, then sure.

frabjous avatar Jan 12 '23 22:01 frabjous