{"id":19664894,"url":"https://github.com/small-tech/sote","last_synced_at":"2025-10-30T07:02:28.315Z","repository":{"id":117560771,"uuid":"524376159","full_name":"small-tech/sote","owner":"small-tech","description":"Send Output To Editor Fish(er) Plugin","archived":false,"fork":false,"pushed_at":"2022-08-13T11:45:52.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-10T20:36:06.018Z","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":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/small-tech.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-08-13T11:11:57.000Z","updated_at":"2022-08-13T17:41:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"e9f93942-0be2-4e92-8426-1428174f189d","html_url":"https://github.com/small-tech/sote","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/small-tech/sote","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/small-tech%2Fsote","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/small-tech%2Fsote/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/small-tech%2Fsote/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/small-tech%2Fsote/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/small-tech","download_url":"https://codeload.github.com/small-tech/sote/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/small-tech%2Fsote/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281761849,"owners_count":26557114,"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","status":"online","status_checked_at":"2025-10-30T02:00:06.501Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-11T16:19:33.757Z","updated_at":"2025-10-30T07:02:28.280Z","avatar_url":"https://github.com/small-tech.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Send Output To Editor (sote)\n\n_Pronounced sauté, get it? (Sorry.)_\n\nSends the output of the last command to your default editor.\n\nIf that’s something like [Helix Editor](https://helix-editor.com), you can use multiple cursors, etc., to manipulate it and copy it into the system clipboard (\u003ckbd\u003espace\u003c/kbd\u003e\u003ckbd\u003ey\u003c/kbd\u003e in Helix) to use in future commands.\n\n⚠️  Sote re-runs the last command in order to get the output __so don’t use it after a command that has side-effects__.\n\n💡 Terminals/shells [could provide much better support for this use case](https://github.com/fish-shell/fish-shell/issues/2644). Given how obsessed some folks are about never touching the mouse, I’m quite suprised it hasn’t happened yet.\n\n## Install\n\nInstall using [Fisher](https://github.com/jorgebucaran/fisher):\n\n```shell\nfisher install small-tech/sote\n```\n\n## Use\n\nYou can use the `sote` command or, even better, bind it to a keyboard shortcut. For example, to bind it to \u003ckbd\u003ectrl\u003c/kbd\u003e\u003ckbd\u003es\u003c/kbd\u003e, add the following to your fish configuration (likely _~/.config/fish/config.fish_):\n\n```fish\nbind \\cs sote\n```\n\n## How it works\n\nTechnically, like basically everything else in Fish shell, [it’s just a function](https://zerokspot.com/weblog/2016/01/16/fishy-functions/).\n\nIt gets your last history item (`$history[1]`), re-runs it using `eval()`, then splits the output into multiple lines and sends it to your `$EDITOR`.\n\n## Related tools and workflows\n\n  - Instead of getting a directory listing (e.g., `ls -1`) and manipulating the results with Sote, you could use a file manager like [lf](https://github.com/gokcehan/lf) that lets you make [multiple selections](https://pkg.go.dev/github.com/gokcehan/lf#section-readme) (in lf, by pressing \u003ckbd\u003espace\u003c/kbd\u003e).\n\n  - Specifically for renaming multiple files, see [mmv](https://github.com/itchyny/mmv).\n  \n## Like this? Fund us!\n\n[Small Technology Foundation](https://small-tech.org) is a tiny, independent not-for-profit.\n\nWe exist in part thanks to patronage by people like you. If you share [our vision](https://small-tech.org/about/#small-technology) and want to support our work, please [become a patron or donate to us](https://small-tech.org/fund-us) today and help us continue to exist.\n\n## Copyright\n\nCopyright \u0026copy; 2022-present [Aral Balkan](https://ar.al), [Small Technology Foundation](https://small-tech.org).\n\n## License\n\nSote is released under [ISC](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmall-tech%2Fsote","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmall-tech%2Fsote","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmall-tech%2Fsote/lists"}