{"id":13896949,"url":"https://github.com/Delapouite/kakoune-mirror","last_synced_at":"2025-07-17T13:31:51.447Z","repository":{"id":59332071,"uuid":"121534114","full_name":"Delapouite/kakoune-mirror","owner":"Delapouite","description":"Grow / shrink selections in both directions or surround them","archived":false,"fork":false,"pushed_at":"2023-03-27T16:03:36.000Z","size":5,"stargazers_count":22,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-08T04:45:55.531Z","etag":null,"topics":["kakoune","plugin"],"latest_commit_sha":null,"homepage":"http://kakoune.org","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Delapouite.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-02-14T16:34:57.000Z","updated_at":"2024-10-02T10:24:56.000Z","dependencies_parsed_at":"2024-06-11T18:45:14.869Z","dependency_job_id":null,"html_url":"https://github.com/Delapouite/kakoune-mirror","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/Delapouite%2Fkakoune-mirror","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Delapouite%2Fkakoune-mirror/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Delapouite%2Fkakoune-mirror/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Delapouite%2Fkakoune-mirror/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Delapouite","download_url":"https://codeload.github.com/Delapouite/kakoune-mirror/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226265524,"owners_count":17597223,"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":["kakoune","plugin"],"created_at":"2024-08-06T18:03:15.158Z","updated_at":"2024-11-25T02:31:28.181Z","avatar_url":"https://github.com/Delapouite.png","language":null,"funding_links":[],"categories":["Others"],"sub_categories":[],"readme":"# kakoune-mirror\n\n[kakoune](http://kakoune.org) plugin to grow / shrink selections in both directions or surround them.\n\n## Install\n\nAdd `mirror.kak` to your autoload dir: `~/.config/kak/autoload/`.\n\nOr via [plug.kak](https://github.com/andreyorst/plug.kak):\n\n```\nplug 'delapouite/kakoune-mirror' %{\n  # Suggested mapping\n  map global normal \"'\" ': enter-user-mode -lock mirror\u003cret\u003e'\n}\n```\n\n## Usage\n\nThis plugin provides a `mirror` user-mode.\n\nFor example with the above mapping, press `'` to enter the mirror mode (`\u003cesc\u003e` to leave).\n\n### Grow / shrink\n\nIf you type `l` it grows the selections one char to their right, but also one char to their left.\nTo shrink it one char, use `h`.\nWhen the cursor is before the anchor, it does the opposite.\n\n**Example**: the current selection is the middle `l`. Typing `'llhh` would produce these visual steps:\n```\nhe[l]lo\nh[ell]o\n[hello]\nh[ell]o\nhe[l]lo\n```\n\nYou can also use `w` to grow one word to the right and it automatically do a `b` on the left.\n\nIt works vertically with `j` and `k`. Or `J` and `K` for full lines.\nHitting `c` will expand by columns above and below.\n\nFinally you can also do it for paragraphs or sentences with `p` and `s`.\n\n### Surround\n\nPairwise characters like braces, brackets or quotes can be added, replaced or removed.\n\n**Example**: starting from the world `hello` selected.\n\nFirst, let's surround it with double quotes and parentheses `'\"(`\n\n```\n[hello]\n[\"hello\"]\n[(\"hello\")]\n```\n\nOops, you meant to surround the double quotes with spaced-braces! Press `d` to remove the parens, then `}`\n\n```\n[\"hello\"]\n[{ \"hello\" }]\n```\n\n## See Also\n\n- [kakoune-expand](https://github.com/occivink/kakoune-expand)\n- [kakoune-text-objects](https://github.com/Delapouite/kakoune-text-objects)\n- [kakoune-surround](https://github.com/h-youhei/kakoune-surround)\n- [move-line.kak](https://github.com/alexherbo2/move-line.kak)\n- [auto-pairs.kak](https://github.com/alexherbo2/auto-pairs.kak)\n- [surround.kak](https://github.com/alexherbo2/surround.kak)\n\n## Licence\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDelapouite%2Fkakoune-mirror","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDelapouite%2Fkakoune-mirror","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDelapouite%2Fkakoune-mirror/lists"}