kitty-runner.nvim icon indicating copy to clipboard operation
kitty-runner.nvim copied to clipboard

Can runner be configured to open a new window/tab instead of an entirely new instance of kitty?

Open ddanieltan opened this issue 1 year ago • 3 comments

My intended usage is to open up a REPL in the runner, and open up neovim to edit files in my current kitty window. I pipe lines from my editor over to the repl, and this works flawlessly for the main REPL environments I use (python, scala). My only gripe is that 2 separate Kitty instances are created, so I can't use my shortcuts to jump between these 2 terminals without using the mouse. If I could open the runner as a separate tab/window, I could navigate entirely from the keyboard.

ddanieltan avatar Sep 02 '22 07:09 ddanieltan

Hey @ddanieltan! I would imagine that it wouldn't be hard to support that, though it's not currently implemented. I personally use sway as my window manager and use that for my tiling and tabbing needs. I therefore never use kitty's tabs/windows.

I'm currently quite busy, so I'm not sure when I'll get to take a look at this, but if you feel like writing a PR, then I'd be more than happy to merge that! :)

jghauser avatar Sep 02 '22 10:09 jghauser

Thanks for the quick reply @jghauser. I have never taken a look into the internals of a neovim plugins but this seems like as good a reason as any to give it a go. Will try my hand at a PR.

ddanieltan avatar Sep 03 '22 04:09 ddanieltan

Great to hear that! If you'd like any pointers, let me know :)

jghauser avatar Sep 03 '22 11:09 jghauser