Silently add a new buffer to a kakoune session

Is there a way form an external script to seemlessly and silently add a new buffer to an existing kakoune session ?

For now I use kcr to run an :edit and :exec ga but it create an anoying glitch

If you just want to open a new buffer but without switching to it, you can do eval -verbatim -draft edit filename

1 Like