{"id":13588324,"url":"https://github.com/Clipy/KeyHolder","last_synced_at":"2025-04-08T03:33:26.223Z","repository":{"id":9223084,"uuid":"61302774","full_name":"Clipy/KeyHolder","owner":"Clipy","description":"Record shortcuts in macOS, like Alfred.app.","archived":false,"fork":false,"pushed_at":"2024-08-22T20:40:34.000Z","size":191,"stargazers_count":390,"open_issues_count":5,"forks_count":33,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-10-02T02:18:28.388Z","etag":null,"topics":["alfred","clipy","macos","record-shortcuts","sandbox","swift"],"latest_commit_sha":null,"homepage":"https://clipy-app.com","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/Clipy.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-16T14:58:05.000Z","updated_at":"2024-09-26T02:43:57.000Z","dependencies_parsed_at":"2024-05-20T08:44:24.395Z","dependency_job_id":"7d6335a4-3f49-4bcc-98db-6cbddedb4900","html_url":"https://github.com/Clipy/KeyHolder","commit_stats":{"total_commits":94,"total_committers":9,"mean_commits":"10.444444444444445","dds":"0.36170212765957444","last_synced_commit":"959b713a4f6d9f7bfb08e5b21011b165836fa213"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clipy%2FKeyHolder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clipy%2FKeyHolder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clipy%2FKeyHolder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clipy%2FKeyHolder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Clipy","download_url":"https://codeload.github.com/Clipy/KeyHolder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223300741,"owners_count":17122679,"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":["alfred","clipy","macos","record-shortcuts","sandbox","swift"],"created_at":"2024-08-01T15:06:38.295Z","updated_at":"2024-11-06T07:31:21.144Z","avatar_url":"https://github.com/Clipy.png","language":"Swift","readme":"# KeyHolder\n![CI](https://github.com/Clipy/KeyHolder/workflows/Xcode-Build/badge.svg)\n[![Release version](https://img.shields.io/github/release/Clipy/KeyHolder.svg)](https://github.com/Clipy/KeyHolder/releases/latest)\n[![License: MIT](https://img.shields.io/github/license/Clipy/KeyHolder.svg)](https://github.com/Clipy/KeyHolder/blob/master/LICENSE)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![Version](https://img.shields.io/cocoapods/v/KeyHolder.svg)](http://cocoadocs.org/docsets/KeyHolder)\n[![Platform](https://img.shields.io/cocoapods/p/KeyHolder.svg)](http://cocoadocs.org/docsets/KeyHolder)\n[![SPM supported](https://img.shields.io/badge/SPM-supported-DE5C43.svg?style=flat)](https://swift.org/package-manager)\n\nRecord shortcuts in macOS, like Alfred App.\n\n\u003cimg src=\"https://github.com/Clipy/KeyHolder/blob/master/Screenshots/double_tap_shortcut.png?raw=true\" width=\"300\"\u003e\n\u003cimg src=\"https://github.com/Clipy/KeyHolder/blob/master/Screenshots/normal_shortcut.png?raw=true\" width=\"300\"\u003e\n\n## Usage\n### CocoaPods\n```\npod 'KeyHolder'\n```\n\n### Carthage\n```\ngithub \"Clipy/KeyHolder\"\ngithub \"Clipy/Magnet\"\ngithub \"Clipy/Sauce\"\n```\n\n## Example\nSet default key combo.\n```swift\nlet recordView = RecordView(frame: CGRect.zero)\nrecordView.tintColor = NSColor(red: 0.164, green: 0.517, blue: 0.823, alpha: 1)\nlet keyCombo = KeyCombo(doubledModifiers: .command)\nrecordView.keyCombo = keyCombo\n```\n\nSome delegate methods\n```swift\nfunc recordViewShouldBeginRecording(_ recordView: RecordView) -\u003e Bool\nfunc recordView(_ recordView: RecordView, canRecordShortcut keyCombo: KeyCombo) -\u003e Bool\nfunc recordView(_ recordView: RecordView, didChangeKeyCombo keyCombo: KeyCombo?)\nfunc recordViewDidEndRecording(_ recordView: RecordView)\n```\n\nOr you can use closures.\n```swift\nlet recordView = RecordView(frame: CGRect.zero)\nrecordView.didChange = { keyCombo in\n    guard let keyCombo = keyCombo else { return } // Clear shortcut\n    // Changed new shortcut\n}\n```\n\n## Dependencies\nThe source code is dependent on hotkey library.\n- [Magnet](https://github.com/Clipy/Magnet)\n- [Sauce](https://github.com/Clipy/Sauce)\n\n## How to Build\n1. Move to the project root directory\n2. Install dependency library with `carthage` or `git submodule`\n3. `carthage checkout --use-submodules` or `git submodule update --init --recursive`\n4. Open `KeyHolder.xcworkspace` on Xcode.\n5. build.\n","funding_links":[],"categories":["Swift","Applications","Productivity"],"sub_categories":["Productivity","Text","⏱️ Productivity (54)"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FClipy%2FKeyHolder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FClipy%2FKeyHolder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FClipy%2FKeyHolder/lists"}