Olivier Perret
Olivier Perret
You can already do this with this simple proof-of-concept command ``` define-command snippets-insert-replace-first-placeholder %{ prompt 'Snippet name: ' %{ try %{ eval -save-regs '"' %{ exec -save-regs '' d snippets...
I don't really see the advantage over simply deleting, inserting the snippet and then either pasting/replacing (depending on whether there is some default text)
So is this something we should have? I don't see much benefit to it in kakoune
You're right that it is currently unsupported, at the moment a kakoune completion is just a bunch of text that gets inserted before the cursor so it would be difficult...
This would be tough with the current approach since I create one selection per placeholder so they cannot be overlapping. I'm not sure if it's really worth changing it for...
Yes, you're encountering this issue https://github.com/mawww/kakoune/issues/2216 I'm not sure if there's a good solution to it, short of providing a `sudo-write-quit` command in the plugin itself.
what would it be? For the record, I still think that the current kakoune behavior is not great, specifically because it makes commands like this one difficult to extend.
Filtering or searching the list in itself is not a problem so it could in theory be possible, but text input is a bit wonky in mpv. @TheAMM has a...
sadly not, image overlays are inherently rendered on top of osd overlays.
It's for sure possible, it's a matter of detecting mouse down, checking if it's on the scrollbar, and scrolling the right amount. Might be a little tedious to implement but...