{"id":15717904,"url":"https://github.com/cleancocoa/floatingfilter","last_synced_at":"2025-04-05T18:10:59.951Z","repository":{"id":66740538,"uuid":"240662221","full_name":"CleanCocoa/FloatingFilter","owner":"CleanCocoa","description":"Floating window to filter arbitrary lists of stuff. Like the Spotlight finder or VSCode command invocation widget","archived":false,"fork":false,"pushed_at":"2025-01-11T14:44:25.000Z","size":655,"stargazers_count":136,"open_issues_count":6,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-29T17:12:18.374Z","etag":null,"topics":["cocoa","component","filter","fuzzy","hud","mac","macos","panel","search"],"latest_commit_sha":null,"homepage":"https://cleancocoa.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/CleanCocoa.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-15T07:19:52.000Z","updated_at":"2025-03-28T09:58:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"cc7f67ad-08cd-4295-ac5c-30691e224879","html_url":"https://github.com/CleanCocoa/FloatingFilter","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleanCocoa%2FFloatingFilter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleanCocoa%2FFloatingFilter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleanCocoa%2FFloatingFilter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleanCocoa%2FFloatingFilter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CleanCocoa","download_url":"https://codeload.github.com/CleanCocoa/FloatingFilter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247378149,"owners_count":20929297,"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":["cocoa","component","filter","fuzzy","hud","mac","macos","panel","search"],"created_at":"2024-10-03T21:51:35.503Z","updated_at":"2025-04-05T18:10:59.911Z","avatar_url":"https://github.com/CleanCocoa.png","language":"Swift","readme":"# FloatingFilter\n\n![Swift 5](https://img.shields.io/badge/Swift-5-blue.svg?style=flat)\n![Version](https://img.shields.io/github/tag/CleanCocoa/FloatingFilter.svg?style=flat)\n![License](https://img.shields.io/github/license/CleanCocoa/FloatingFilter.svg?style=flat)\n![Platform](https://img.shields.io/badge/platform-macOS-lightgrey.svg?style=flat)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n\nDisplay things in an app-modal floating window that users can fuzzy-filter by typing ahead. Its style roughly matches the floating Spotlight window.\n\n![](assets/screenshot-combined.png)\n\nThe list uses the default `NSTableView` styles, so it'll look right at home on Big Sur and older macOS versions alike!\n\n## Usage\n\nThis module strives for taking care of its components's memory wherever possible. This means you do not need to keep a reference to the window or its controller around. **Both will be freed when the action has been completed.**\n\n### When all possible items are known\n\nThis is useful if you want to filter e.g. a limited collection of files, like \"Recent Files\", or to display a list of known macros.\n\n\n```swift\nimport FloatingFilter\n\n// ...\n\nlet items = [\n    Item(identifier: UUID(),          title: \"Create new widget\"),\n    Item(identifier: 202002200930,    title: \"Open last document\"),\n    Item(identifier: \"custom-ID_123\", title: \"Show downloaded data\")\n]\n\n\nFloatingFilterModule.showFilterWindow(items: items) { selectedItems in\n    print(\"Selected:\", selectedItems.map { $0.title })\n}\n```\n\n\n## Installation\n\n### Carthage\n\nAdd this to your `Cartfile`:\n\n    github \"cleancocoa/FloatingFilter\"\n\nThen run\n\n    $ carthage update\n\n... and include `FloatingFilter.framework` from `Carthage/Build/Mac` in your app.\n\n## License\n\nCopyright (c) 2020 Christian Tietze. Distributed under the MIT License.\n\nFuzzy matching is Copyright (c) 2015 Yichi Zhang \u003chttps://github.com/yichizhang/SwiftyStringScore\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleancocoa%2Ffloatingfilter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcleancocoa%2Ffloatingfilter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleancocoa%2Ffloatingfilter/lists"}