Closed jaredramirez closed 3 years ago
Hi, @jaredramirez ! I'm glad you like it!
When you call the peneira
command, it executes the filter immediately. That means that, by calling peneira
at your kakrc
, it will be executed at startup, before any buffer or prompt or window is created. That explains the error message:
no input handler in context
It's still too early in Kakoune startup. Actually, it's supposed to be called the very moment you want to switch to a buffer. You can do that either by hand at the prompt or you can define a mapping:
define-command peneira-buffers %{
peneira 'buffers: ' %( printf '%s\n' $kak_quoted_buflist ) %{
buffer %arg{1}
}
}
map global normal <c-b> ': peneira-buffers<ret>'
Please, tell me if it solves your problem.
Anyway, I do realise the docs can induce this kind of mistake, so I'm gonna update it. Thanks!
ah, totally makes sense. Thank you!
Hey, first off this is super cool!
When I copy/paste the sample buffer code into my kakrc
I get the following error in the debug buffer:
I don't think it's a problem with installed luar/peneira, as using
peneira-files
works completely fine. Here's the relevant part of my kakrc: