{"id":13649014,"url":"https://github.com/laughedelic/pisces","last_synced_at":"2025-04-09T21:22:17.993Z","repository":{"id":8435660,"uuid":"58406535","full_name":"laughedelic/pisces","owner":"laughedelic","description":"♓️ Fish shell plugin that helps you to work with paired symbols in the command line","archived":false,"fork":false,"pushed_at":"2020-11-30T02:30:19.000Z","size":51,"stargazers_count":281,"open_issues_count":6,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-02T19:07:51.342Z","etag":null,"topics":["fish","fish-packages","fish-plugin","fish-plugins","fish-shell","fisher","fishshell","keybindings","oh-my-fish","oh-my-fish-plugin","paired-symbols","plugin"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/laughedelic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-09T20:38:47.000Z","updated_at":"2025-03-05T01:19:40.000Z","dependencies_parsed_at":"2022-09-07T20:20:32.603Z","dependency_job_id":null,"html_url":"https://github.com/laughedelic/pisces","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laughedelic%2Fpisces","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laughedelic%2Fpisces/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laughedelic%2Fpisces/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laughedelic%2Fpisces/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laughedelic","download_url":"https://codeload.github.com/laughedelic/pisces/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248112724,"owners_count":21049706,"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":["fish","fish-packages","fish-plugin","fish-plugins","fish-shell","fisher","fishshell","keybindings","oh-my-fish","oh-my-fish-plugin","paired-symbols","plugin"],"created_at":"2024-08-02T01:04:42.289Z","updated_at":"2025-04-09T21:22:17.970Z","avatar_url":"https://github.com/laughedelic.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# [`pisces ☯ 双鱼`](https://en.wikipedia.org/wiki/Pisces_(astrology))\n\n[![](https://img.shields.io/github/v/release/laughedelic/pisces?color=brightgreen)](https://github.com/laughedelic/pisces/releases/latest)\n[![](https://img.shields.io/badge/fish--shell-2.3+-blue.svg)](https://github.com/fish-shell/fish-shell/releases)\n[![](https://img.shields.io/badge/license-LGPLv3-blue.svg)](https://www.tldrlegal.com/l/lgpl-3.0)\n[![](https://img.shields.io/badge/contact-gitter_chat-dd1054.svg)](https://gitter.im/laughedelic/pisces)\n\n_pisces_ `['paɪsiz]` is a plugin for [fish](https://fishshell.com/) that helps you to work with paired symbols like `()` and `''` in the command line. Similar to your favorite text editor!\n\n## Features\n\nHere `|` denotes the current cursor position. No manual cursor motion involved :sparkles:\n\n- autocloses pair symbol:\n  `... |` + \u003ckbd\u003e(\u003c/kbd\u003e ⇒\n  `... (|)`\n- skips the closing symbol:\n  `...|)` + \u003ckbd\u003e)\u003c/kbd\u003e ⇒\n  `... )|`\n- removes empty pairs:\n  `...([|])` + \u003ckbd\u003ebackspace\u003c/kbd\u003e ⇒\n  `...(|)` + \u003ckbd\u003ebackspace\u003c/kbd\u003e ⇒\n  `...|`\n- the set of pairs is configurable (see below)\n\n## Installation\n\n\u003cdetails\u003e\n\u003csummary\u003eNotes on fish 2.x compatibility\u003c/summary\u003e\n\n\u003e The _minimum recommended_ version of fish is v2.6, because\n\u003e - it has a feature called [_bracketed (a.k.a safe) paste_](https://github.com/fish-shell/fish-shell/pull/3871) which solves the problem with pasting strings containing paired symbols (they get autoclosed), see [#6](https://github.com/laughedelic/pisces/issues/6) for details.\n\u003e\n\u003e The _minimum required_ version of fish is v2.3, because\n\u003e - there was a bug [#2210](https://github.com/fish-shell/fish-shell/issues/2210) in v2.2 which would brake quotes handling\n\u003e - it uses `string` builtin which was introduced in v2.3\n\n\u003c/details\u003e\n\n- Using [Fisher](https://github.com/jorgebucaran/fisher):\n\n  ```fish\n  fisher install laughedelic/pisces\n  ```\n\n- Using [oh-my-fish](https://github.com/oh-my-fish/oh-my-fish):\n\n  ```fish\n  omf install pisces\n  ```\n\n  Notice that you will need to _restart_ fish to get this new installation working. This is specific to the way oh-my-fish handles installation.\n\n## Configuration\n\n### Only completing at the end of the line\n\nTo disable completing pairs unless the cursor is at the end of the line, set the `$pisces_only_insert_at_eol` variable:\n\n```fish\nset -U pisces_only_insert_at_eol 1\n```\n\n### Changing the set of pairs\n\nYou can set the `$pisces_pairs` universal variable and launch a new fish session to reload key bindings:\n\n```fish\nset -U pisces_pairs $pisces_pairs '\u003c,\u003e' '`,`' '«,»'\n```\n\nNote that at the moment _pisces_ works correctly only with single-symbol delimiters.\n\nThe default set of pairs:\n\n- `(,)` parenthesis\n- `[,]` brackets\n- `{,}` braces\n- `\",\"` double quotes\n- `','` single quotes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaughedelic%2Fpisces","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaughedelic%2Fpisces","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaughedelic%2Fpisces/lists"}