-
Your
hook
works for me for.txt
files once I addplain
to the regex. -
Already answered. I want to point out to mawww’s kakrc, from where this was taken, in case you wanna take a look: great kakrc’s.
-
I use
kitty
too. If you just want to open a new kitty window, checkout the commands:terminal
,:terminal-tab
and:new
. You can do:terminal nnn
for your used case. Kakoune will recognize if you are usingtmux
,kitty
or other terminals and map:terminal
to the appropriate command (commands for other terminals don’t get sourced). So, basically, in you case:terminal
is an alias for:kitty-terminal
. To make use of them, you need to enable inkitty
's configuration file remote control. And if you are interested in implementing more functionality (likesplit
with special parameters) you could check how the command is implemented.By the way, take a look at the plugin connect.kak if you want to open files from
nnn
to your kakoune window easily.
1 Like