{"id":16927805,"url":"https://github.com/eagleoflqj/toyimk","last_synced_at":"2025-04-11T17:42:56.222Z","repository":{"id":212880257,"uuid":"732204068","full_name":"eagleoflqj/toyimk","owner":"eagleoflqj","description":"Demo input method for macOS, with CMake and Swift, without Xcode","archived":false,"fork":false,"pushed_at":"2023-12-20T02:01:03.000Z","size":42,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T06:59:08.851Z","etag":null,"topics":["cmake","inputmethodkit","macos","swift"],"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/eagleoflqj.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,"roadmap":null,"authors":null}},"created_at":"2023-12-15T23:07:33.000Z","updated_at":"2024-04-23T23:07:42.000Z","dependencies_parsed_at":"2023-12-17T01:25:35.724Z","dependency_job_id":"3c9e5c84-f94e-4fb3-8c02-b4e0612364cc","html_url":"https://github.com/eagleoflqj/toyimk","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"3bd22bb429643bfa2f88dd755f7c2b9e3f46fd25"},"previous_names":["eagleoflqj/toyimk"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eagleoflqj%2Ftoyimk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eagleoflqj%2Ftoyimk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eagleoflqj%2Ftoyimk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eagleoflqj%2Ftoyimk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eagleoflqj","download_url":"https://codeload.github.com/eagleoflqj/toyimk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248451666,"owners_count":21105912,"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":["cmake","inputmethodkit","macos","swift"],"created_at":"2024-10-13T20:35:09.685Z","updated_at":"2025-04-11T17:42:56.199Z","avatar_url":"https://github.com/eagleoflqj.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Toyimk\nA demo input method for macOS based on Swift and CMake,\nforked from [ensan-hcl/macOS_IMKitSample_2021](https://github.com/ensan-hcl/macOS_IMKitSample_2021).\n\nThis project is for developers who don't like deprecated Objective-C and ugly `.xcodeproj`.\n\n## Install dependencies\n```sh\nbrew install swiftlint ninja\npip install \"dmgbuild[badge_icons]\"\n```\n\n## Build\n```sh\ncmake -B build -G Ninja \\\n  -DARCH=[native|x86_64|arm64] \\\n  -DCMAKE_BUILD_TYPE=Release\ncmake --build build\n```\n\n## Install\nEither open `build/Toyimk.dmg`\n(if prompted Toyimk is in use error,\nexecute `pkill Toyimk` and retry), or\n```sh\nsudo cmake --install build\n```\n* On first time installation,\nlogout your account and login,\nthen in `System Settings` -\u003e `Keyboard` -\u003e `Input Sources`,\nadd `Toyimk` from `English`.\n* On further installations,\nswitch to another input method,\n`pkill Toyimk`,\nthen switch back.\n* You may change what is committed at `client.insert` in [controller.swift](src/controller.swift) to make sure your changes take effect.\n\n## Debug\nYes, though being a system module, input method is debuggable.\nHowever, you need another machine to do it.\n```sh\n$ ssh your-mac\n$ /usr/bin/lldb\n(lldb) process attach --name Toyimk\n(lldb) b inputText\n(lldb) c\n```\nNow switch to Toyimk and hit a key.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feagleoflqj%2Ftoyimk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feagleoflqj%2Ftoyimk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feagleoflqj%2Ftoyimk/lists"}