{"id":13585489,"url":"https://github.com/trygveaa/kitty-kitten-search","last_synced_at":"2025-04-13T11:04:33.671Z","repository":{"id":46250294,"uuid":"242497831","full_name":"trygveaa/kitty-kitten-search","owner":"trygveaa","description":"Kitten for searching in kitty","archived":false,"fork":false,"pushed_at":"2023-02-02T19:42:11.000Z","size":32,"stargazers_count":239,"open_issues_count":5,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T19:51:09.243Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trygveaa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-02-23T10:34:37.000Z","updated_at":"2025-03-14T14:18:30.000Z","dependencies_parsed_at":"2024-01-15T13:35:54.845Z","dependency_job_id":null,"html_url":"https://github.com/trygveaa/kitty-kitten-search","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trygveaa%2Fkitty-kitten-search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trygveaa%2Fkitty-kitten-search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trygveaa%2Fkitty-kitten-search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trygveaa%2Fkitty-kitten-search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trygveaa","download_url":"https://codeload.github.com/trygveaa/kitty-kitten-search/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245767357,"owners_count":20668826,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T15:04:58.475Z","updated_at":"2025-03-27T02:12:17.830Z","avatar_url":"https://github.com/trygveaa.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Search kitten for kitty\n\n[Kitten](https://sw.kovidgoyal.net/kitty/#kittens) for the [kitty terminal emulator](https://sw.kovidgoyal.net/kitty/) providing live incremental search in the terminal history.\n\n![Demo](https://user-images.githubusercontent.com/601966/78996982-09c42c80-7b46-11ea-9cb2-d338b846ab87.gif)\n\n## Installation\n\nPlace the two `.py` files in this repo (`search.py` and `scroll_mark.py`) in the same directory as `kitty.conf`.\n\nMap a key to launch the kitten. E.g. for `kitty_mod+/` add this to `kitty.conf`:\n\n```\nmap kitty_mod+/      launch --location=hsplit --allow-remote-control kitty +kitten search.py @active-kitty-window-id\n```\n\n### Alternatively:\n\nGo to the directory where `kitty.conf` lies, run\n\n```\ngit clone https://github.com/trygveaa/kitty-kitten-search kitty_search\n```\n\nThe alternate directory name is needed to keep python happy. You then have to use as slightly other shortcut:\n\n```\nmap kitty_mod+/      launch --allow-remote-control kitty +kitten kitty_search/search.py @active-kitty-window-id\n```\n\nIf you are managing your dotfiles as a git directory, you can also add kitty-search as a submodule instead of cloning:\n\n```\ngit submodule add https://github.com/trygveaa/kitty-kitten-search kitty_search\n```\n\nNow you only have to commit `.gitmodules` in your git directory and you are golden.\n\n\n## Usage\n\nPressing the key you mapped will open a window where you can type your search. The search is performed immediately as you type each key, however currently it does not scroll to a match automatically if it is outside of the current content shown.\n\nThese keys can be used to control the kitten:\n\n- Up/down arrow: Scroll to previous/next match\n- Tab: Switch between literal match and regex match\n- Ctrl-u: Clear the query\n- Ctrl-a/e: Go to the beginning/end of the query\n- Ctrl-Left/Right: Jump over words by space\n- Ctrl-Backspace: Delete last word by space\n- Alt-Left/Right: Jump over words by non-alphanumeric characters\n- Alt-Backspace: Delete last word by non-alphanumeric characters\n- Enter: Exit the kitten and keep the current scroll position\n- Esc: Exit the kitten and scroll to the bottom of the history\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrygveaa%2Fkitty-kitten-search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrygveaa%2Fkitty-kitten-search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrygveaa%2Fkitty-kitten-search/lists"}