{"id":13825476,"url":"https://github.com/mitsuse/swim","last_synced_at":"2025-07-08T22:31:15.474Z","repository":{"id":63918582,"uuid":"77768729","full_name":"mitsuse/swim","owner":"mitsuse","description":"A command line tool to switch the current input method by identifier for macOS.","archived":true,"fork":false,"pushed_at":"2019-08-11T03:51:51.000Z","size":13,"stargazers_count":42,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-28T17:48:38.980Z","etag":null,"topics":["input-method","mac","osx"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mitsuse.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}},"created_at":"2017-01-01T06:41:28.000Z","updated_at":"2024-09-08T18:39:53.000Z","dependencies_parsed_at":"2023-01-14T14:00:24.740Z","dependency_job_id":null,"html_url":"https://github.com/mitsuse/swim","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitsuse%2Fswim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitsuse%2Fswim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitsuse%2Fswim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitsuse%2Fswim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitsuse","download_url":"https://codeload.github.com/mitsuse/swim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225470631,"owners_count":17479366,"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":["input-method","mac","osx"],"created_at":"2024-08-04T09:01:21.671Z","updated_at":"2024-11-20T04:30:26.835Z","avatar_url":"https://github.com/mitsuse.png","language":"Swift","funding_links":[],"categories":["Swift"],"sub_categories":[],"readme":"# Swim\n\n[![License][badge-license]][license]\n[![Release][release-badge]][release]\n\nSwitch the current input method by identifier.\n\n\n## Installation\n\nPrebuilt binary is not provided. Please build from source:\n\n```\ngit clone -b 0.4.0 https://github.com/mitsuse/swim.git \u0026\u0026 cd swim\nswift build -c release\ncp .build/release/swim ${YOUR_EXECUTABLE_PATH}\n```\n\n\n## Usage\n\n`swim` has two sub-commands: `list` and `use`.\n\n### `list`\n\nThis sub-command lists identifiers of available input sources on the standard output.\nIdentifiers are separated by new line.\n\nFor example, `swim list` presents the following output:\n\n```\ncom.apple.keyboardlayout.ABC\ncom.apple.inputmethod.Kotoeri.Japanese\n```\n\nIf `--name` option is enabled,\nthe command presents the name and the identifier of input sources\nwith format like `name (identifier)`:\n\n```\nABC (com.apple.keyboardlayout.ABC)\nHiragana (com.apple.inputmethod.Kotoeri.Japanese)\n```\n\nYou can filter them to present the current input source with `--current` option.\n\n\n### `use`\n\nThis sub-comman switch to the input method specified with the given identifier.\nFor example, `swim use com.apple.inputmethod.Kotoeri.Japanese` switches the current input source to\nJapanese.\nIf the given identifier is invalid or unavailable,\nthe command exits with `unavailableSource` (exit code: 65).\n\n\n## License\n\nThe content of this repository are licensed under the MIT License unless otherwise noted.\nPlease read [LICENSE][license] for the detail.\n\n\n[badge-license]: https://img.shields.io/badge/license-MIT-yellowgreen.svg?style=flat-square\n[license]: LICENSE\n[release-badge]: https://img.shields.io/github/tag/mitsuse/swim.svg?style=flat-square\n[release]: https://github.com/mitsuse/swim/releases\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitsuse%2Fswim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitsuse%2Fswim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitsuse%2Fswim/lists"}