Using kitty for nnn's detached text feature #4024
Answered
by
kovidgoyal
lokesh-krishna
asked this question in
Q&A
Replies: 1 comment
-
Not sure what your question is. Running
kitty @ launch vim "/path/to/some/file"
in a shell works fine. If its not working in nnn
run a shell script instead that logs the argument passed to it, to check
what nnn is passing to it.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lokesh-krishna
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I recently switched to nnn and in its wiki, there's an example to open a text file in a xfce-terminal window. I would like to achieve something similar but instead use kitty.
I know this is possible with kitty's remote control protocol and figured out that I'd need
kitty @launch nvim
but what I'm unable to figure out is how to pass nnn's present selection to this instance of kitty. The example uses\"$*\"
but this doesn't work for when runningkitty @launch nvim "\$"\
. What this does is launch neovim in a new kitty window with the correct filename but it's not the desired file.What's the right way of doing this?
Beta Was this translation helpful? Give feedback.
All reactions