kovidgoyal / kovidgoyal/kitty

Support for docked windows in the various layouts at each edge

Open
#2,391 10 comments 10 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
34.9k
Forks
1.5k
Avg merge
8h 28m
Merged PRs (30d)
43

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).

Here it what it looks like:
![kitty-kitten-search-2020-02-23_11 23 31](https://user-images.githubusercontent.com/601966/75110661-1261b180-5631-11ea-958e-1b3d885746a2.gif)

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

Contributor guide

Open the contributing guide

Research direction

Start with the linked search.py kitten and the new_window, kitty @ ls, remote protocol, marks, and scroll-command entry points mentioned in the issue. Done should include a way to control the kitten window size, support a single-line window, avoid resizing unrelated windows, and expose the originating window or its tab peers.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.