Description
I'm working on a kitten for incremental search in the backlog using the marks feature, but I've run into some issues.
Currently I'm starting the kitten with new_window @ kitty +kitten search.py
, but I haven't found a way to specify the size of the window. I can resize it afterwards, but that looks bad and pushes the text in the original window upwards more than necessary. Additionally, it's not possible to resize it to less than 6 lines (I would like it as a single line).
Another issue is that if I have multiple windows in kitty, the resize command will resize those too.
Additionally, it would be nice if the kitten could get the instance for the window it was started from (and possibly the other windows in the tab). Currently, I have to run kitty @ ls
to find the windows in the same tab. Then I have to run all the marker and scroll commands via the remote protocol because I don't have the window instance available like you have if you run a kitten in the same window. Or is there some other way to do this that I haven't found?
This is the script I have so far:
https://github.com/trygveaa/kitty-kitten-search/blob/master/search.py