{"id":16935816,"url":"https://github.com/knu/phi-search-mc.el","last_synced_at":"2025-03-21T05:13:34.736Z","repository":{"id":10247417,"uuid":"12353711","full_name":"knu/phi-search-mc.el","owner":"knu","description":"Multiple-cursors extension for phi-search","archived":false,"fork":false,"pushed_at":"2023-12-13T08:41:25.000Z","size":21,"stargazers_count":11,"open_issues_count":1,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-26T01:41:40.905Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/knu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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},"funding":{"github":"knu"}},"created_at":"2013-08-25T03:39:33.000Z","updated_at":"2024-09-18T00:03:52.000Z","dependencies_parsed_at":"2023-12-13T09:50:13.471Z","dependency_job_id":"debdd840-d0f9-49e3-b449-a823da36fff4","html_url":"https://github.com/knu/phi-search-mc.el","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fphi-search-mc.el","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fphi-search-mc.el/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fphi-search-mc.el/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fphi-search-mc.el/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knu","download_url":"https://codeload.github.com/knu/phi-search-mc.el/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244739958,"owners_count":20501992,"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-10-13T20:55:25.257Z","updated_at":"2025-03-21T05:13:34.720Z","avatar_url":"https://github.com/knu.png","language":"Emacs Lisp","funding_links":["https://github.com/sponsors/knu"],"categories":[],"sub_categories":[],"readme":"# phi-search-mc.el\n\nThis package is a multiple-cursors extension for\n[phi-search](https://github.com/zk-phi/phi-search).\n\n## Functions\n\nphi-search-mc.el provides the following interactive commands:\n\n* phi-search-mc/mark-here\n* phi-search-mc/mark-forward\n* phi-search-mc/mark-backward\n* phi-search-mc/mark-all\n\n  These functions serve as great way to add fake cursors at your\n  desired points using phi-search.\n\n* phi-search-from-isearch\n* phi-search-from-isearch-mc/mark-next\n* phi-search-from-isearch-mc/mark-previous\n* phi-search-from-isearch-mc/mark-all\n\n## Installation\n\nThis package is available on [MELPA](http://melpa.org/).\n\n## Configuration\n\nRun the following line to rebind `mc/mark-next-like-this`,\n`mc/mark-previous-like-this` and `mc/mark-all-like-this` in phi-search\nbuffer to `phi-search-mc/mark-next`, `phi-search-mc/mark-previous` and\n`phi-search-mc/mark-all`, respectively.\n\n```elisp\n(phi-search-mc/setup-keys)\n```\n\nRun the following line to bind `phi-search`, `mc/mark-next-like-this`,\n`mc/mark-previous-like-this` and `mc/mark-all-like-this` in isearch\nmode to `phi-search-from-isearch`,\n`phi-search-from-isearch-mc/mark-next`,\n`phi-search-from-isearch-mc/mark-previous` and\n`phi-search-from-isearch-mc/mark-all`, respectively.\n\n```elisp\n(add-hook 'isearch-mode-hook 'phi-search-from-isearch-mc/setup-keys)\n```\n\nIf you have bound multi-stroke keys to `mc/mark-next-like-this` etc.,\nthis may not be enough.  For example, I bound\n\u003ckbd\u003eC-\u003e\u003c/kbd\u003e/\u003ckbd\u003eC-\u003c\u003c/kbd\u003e/\u003ckbd\u003eC-.!\u003c/kbd\u003e to `mc/mark-*`\nfunctions, and since they are complex multi-stroke keys on my terminal\nemulator where \u003ckbd\u003eC-\u003e\u003c/kbd\u003e is mapped to \u003ckbd\u003eC-x @ c \u003e\u003c/kbd\u003e etc.,\nI had to add the following lines for the features to work properly.\n\n```elisp\n(define-prefix-command 'phi-search-from-isearch-mc/ctl-map)\n(let ((map phi-search-from-isearch-mc/ctl-map))\n  (define-key map (kbd \"\u003e\")   'phi-search-from-isearch-mc/mark-next)\n  (define-key map (kbd \"\u003c\")   'phi-search-from-isearch-mc/mark-previous)\n  (define-key map (kbd \". !\") 'phi-search-from-isearch-mc/mark-all))\n\n(defun phi-search-from-isearch-mc/setup-keys-ad-for-terminal ()\n  (define-key isearch-mode-map (kbd \"C-x @ c\") phi-search-from-isearch-mc/ctl-map))\n(advice-add #'phi-search-from-isearch-mc/setup-keys :after #'phi-search-from-isearch-mc/setup-keys-ad-for-terminal)\n```\n\n## Author\n\nCopyright (c) 2013-2015 Akinori MUSHA.\n\nLicensed under the 2-clause BSD license.  See `LICENSE.txt` for\ndetails.\n\nVisit [GitHub Repository](https://github.com/knu/phi-search-mc.el) for\nthe latest information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknu%2Fphi-search-mc.el","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknu%2Fphi-search-mc.el","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknu%2Fphi-search-mc.el/lists"}