{"id":16935960,"url":"https://github.com/knu/tmux-open-anything","last_synced_at":"2025-06-30T06:33:36.306Z","repository":{"id":181478433,"uuid":"666833010","full_name":"knu/tmux-open-anything","owner":"knu","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-15T19:20:24.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-21T05:13:38.211Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-15T18:17:11.000Z","updated_at":"2023-07-17T13:52:19.000Z","dependencies_parsed_at":"2023-07-15T19:54:23.038Z","dependency_job_id":null,"html_url":"https://github.com/knu/tmux-open-anything","commit_stats":null,"previous_names":["knu/tmux-open-anything"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/knu/tmux-open-anything","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Ftmux-open-anything","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Ftmux-open-anything/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Ftmux-open-anything/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Ftmux-open-anything/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knu","download_url":"https://codeload.github.com/knu/tmux-open-anything/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Ftmux-open-anything/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262724059,"owners_count":23354171,"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:44.255Z","updated_at":"2025-06-30T06:33:36.283Z","avatar_url":"https://github.com/knu.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tmux Open Anything\n\nThis is a Tmux plugin that opens a selected text in copy-mode with tools like a text editor or web browser.\n\n## Features\n\nThere are currently four commands available:\n\n- edit\n\n   Opens the selected text as a pathname with the text editor defined by the `EDITOR` environment variable. (Default: `vi`)\n\n   This command supports a file path suffixed with a line number. (`filename:lineno`)\n\n- browse\n\n   Opens the selected text as a URL with the web browser defined by the `BROWSER` environment variable. (Default: `open` or `xdg-open` depending on the platform)\n\n- search\n\n   Searches the web for the selected text with the web browser described in the \"browse\" command above.\n\n- open\n\n   Opens the selection with the web browser if it looks like a URL, or the text editor otherwise.\n\n## Installation\n\nInstall the [Tmux Plugin Manager](https://github.com/tmux-plugins/tpm) and add this plugin like so:\n\n```\nset -g @plugin 'knu/tmux-open-anything'\n```\n\n## Configuration\n\n- `@open-anything:bindings`\n\n    Key bindings can be changed via this option.  Below is the default configuration.\n\n    ```\n    set -g @open-anything:bindings \"\\\n    copy-mode o open\n    copy-mode s search\n    copy-mode-vi o open\n    copy-mode-vi s search\n    \"\n    ```\n\n- `@open-anything:pipe-command`\n\n    The pipe command to be used for commands bound by Open Anything, defaulted to `pipe-no-clear`.  Any other pipe/copy command such as `copy-pipe-no-clear` and `pipe-and-cancel` can be specified.\n\n    ```\n    set -g @open-anything:pipe-command pipe-no-clear\n    ```\n\n- `@open-anything:editor nvim`\n\n    Alternative value for `EDITOR`.  Only the command name (without any flags) can be specified.\n\n    ```\n    set -g @open-anything:editor nvim\n    ```\n\n- `@open-anything:browser`\n\n    Alternative value for `BROWSER`.  Use of a placeholder `%s` is supported.\n\n    ```\n    set -g @open-anything:browser \"open -a /Applications/Arc.app %s\"\n    ```\n\n- `@open-anything:search-url`\n\n    The search engine URL for the \"search\" command.  It is Google by default.  Use of a placeholder `%s` is supported.\n\n    ```\n    set -g @open-anything:search-url 'https://www.google.com/search?q='\n\n    set -g @open-anything:search-url 'https://www.duckduckgo.com/?q=%s'\n    ```\n\n## Tips\n\nTmux Open Anything works great when you have a command that searches the current pane for URLs and file paths.\n\nHere's an example command:\n\n```\nbind -N 'Search for URLs and file paths' u copy-mode \\; send -X search-backward \\\n    \"(https?://|git@|git://|ssh://|ftp://|file:///)[[:alnum:]][[:alnum:]?=%/_.:,~@!#$\u0026(*+-]*|[~]?/?([[:alnum:]_.-]+/)+[[:alnum:]_.-]+(:[[:digit:]]+){0,2}\"\n```\n\n## Author\n\nCopyright (c) 2023 Akinori MUSHA.\n\nLicensed under the 2-clause BSD license.  See `LICENSE.txt` for details.\n\nVisit [GitHub Repository](https://github.com/knu/tmux-open-anything) for the latest information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknu%2Ftmux-open-anything","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknu%2Ftmux-open-anything","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknu%2Ftmux-open-anything/lists"}