{"id":13897269,"url":"https://github.com/GermainZ/kitty-weechat-hints","last_synced_at":"2025-07-17T14:30:51.441Z","repository":{"id":69908017,"uuid":"285855328","full_name":"GermainZ/kitty-weechat-hints","owner":"GermainZ","description":" Kitty URL kitten for URLs in WeeChat that tries to take into account line wraps (without having to enter raw mode).","archived":false,"fork":false,"pushed_at":"2023-09-21T09:29:58.000Z","size":652,"stargazers_count":23,"open_issues_count":2,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-07T18:43:16.544Z","etag":null,"topics":["kitty","kitty-url-kitten","weechat"],"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/GermainZ.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-07T14:58:16.000Z","updated_at":"2024-03-06T05:15:38.000Z","dependencies_parsed_at":"2024-06-08T23:41:22.698Z","dependency_job_id":null,"html_url":"https://github.com/GermainZ/kitty-weechat-hints","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/GermainZ%2Fkitty-weechat-hints","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GermainZ%2Fkitty-weechat-hints/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GermainZ%2Fkitty-weechat-hints/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GermainZ%2Fkitty-weechat-hints/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GermainZ","download_url":"https://codeload.github.com/GermainZ/kitty-weechat-hints/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226270475,"owners_count":17598075,"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":["kitty","kitty-url-kitten","weechat"],"created_at":"2024-08-06T18:03:28.487Z","updated_at":"2024-11-25T03:30:51.315Z","avatar_url":"https://github.com/GermainZ.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"[![Python 3.9](https://img.shields.io/badge/python-3.9-blue.svg)](https://www.python.org/)\n[![License: GPL v3](https://img.shields.io/badge/license-GPLv3-purple.svg)](https://www.gnu.org/licenses/gpl-3.0)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\nDescription\n===========\n\nA [kitty](https://sw.kovidgoyal.net/kitty/) kitten that aims to act like the\n[native URL hints kitten](https://sw.kovidgoyal.net/kitty/kittens/hints.html)\n(bound to `ctrl+shift+e` by default), while supporting WeeChat's line wrapping\nfor URLs.  The goal is to be able to use URL hints directly without having to\ngo into WeeChat's raw mode (bound to `meta+l` by default) first.\n\nDependencies\n============\n\n- [Python 3.9+](https://www.python.org/)\n\n… as well as [kitty](https://sw.kovidgoyal.net/kitty/) and\n[WeeChat](https://weechat.org/).\n\nScreenshots\n===========\n\n**Before:** using kitty's native URL hints kitten, wrapped URLs are not\ndetected/opened correctly.  \n![Before](img/before.png)\n\n**After:** using this script, wrapped URLs are detected/opened correctly.\n![After](img/after.png)\n\nUsage instructions\n==================\n\nIn WeeChat, `weechat.look.prefix_suffix` and `weechat.look.separator_vertical`\nmust be set to the same value. Additionally, the `WEECHAT_SEPARATOR` variable\nin the `weechat_hints.py` script must be updated to reflect that value.\n\nDownload and place the script (`weechat_hints.py`) in the ~/.config/kitty/\ndirectory, for example:\n\n    cd ~/.config/kitty/\n    wget 'https://github.com/GermainZ/kitty-weechat-hints/raw/master/weechat_hints.py'\n\nOnce that is done, kitty must be launched as such: `kitty -o 'map\nkitty_mod+e kitten hints --customize-processing weechat_hints.py' weechat`.\n\nThe shortcut can be customized, for example `map f1` can be used instead to\nkeep the original kitten intact as a backup, and make the WeeChat-aware one\navailable by pressing the `F1` key.\n\nNotes\n=====\n\nThe script has to make certain assumptions, and may not work correctly if your\nWeeChat layout is vastly different or for specific messages. It should,\nhowever, provide a starting point that you can adapt.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGermainZ%2Fkitty-weechat-hints","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGermainZ%2Fkitty-weechat-hints","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGermainZ%2Fkitty-weechat-hints/lists"}