{"id":17919704,"url":"https://github.com/pirate/macos-global-autocomplete","last_synced_at":"2025-03-24T00:31:57.512Z","repository":{"id":61958770,"uuid":"73152158","full_name":"pirate/macOS-global-autocomplete","owner":"pirate","description":":page_with_curl: System-wide autocompleting that learns what you type and works in any app!  (also slightly scary maybe don't use this...)","archived":true,"fork":false,"pushed_at":"2020-07-02T00:10:04.000Z","size":16,"stargazers_count":41,"open_issues_count":0,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-14T05:29:18.227Z","etag":null,"topics":["autocomplete","bitbar","bitbar-plugin","macos","macos-app","productivity-tools","pypy","redis"],"latest_commit_sha":null,"homepage":"","language":"C","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/pirate.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}},"created_at":"2016-11-08T05:25:33.000Z","updated_at":"2024-12-07T10:55:57.000Z","dependencies_parsed_at":"2022-10-24T07:00:30.792Z","dependency_job_id":null,"html_url":"https://github.com/pirate/macOS-global-autocomplete","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirate%2FmacOS-global-autocomplete","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirate%2FmacOS-global-autocomplete/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirate%2FmacOS-global-autocomplete/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirate%2FmacOS-global-autocomplete/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pirate","download_url":"https://codeload.github.com/pirate/macOS-global-autocomplete/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245191273,"owners_count":20575246,"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":["autocomplete","bitbar","bitbar-plugin","macos","macos-app","productivity-tools","pypy","redis"],"created_at":"2024-10-28T20:18:44.197Z","updated_at":"2025-03-24T00:31:57.264Z","avatar_url":"https://github.com/pirate.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# System-Wide Autocomplete for macOS\n\nAn autocomplete prompt app for macOS that learns what as you type and works in **all text fields** system-wide!\n\nThe idea was to have a small, global popup in your menubar or as a transparent dropdown,\nwhere autocomplete suggestions are provided based on **all words ever typed on the computer**.\n\nUnfortunately this just has too many downsides.  You're essentially continually keylogging\nyourself for minor convenience, and it has the potential to reveal passwords or embarrassing\ninformation in your typing history to anyone who can see your screen.\n\nHowever, if you don't type anything embarrasing and have eschewed typing passwords in favor of \na password manager, hack away, the code is free for all to use.\n\n*See the alternatives section at the bottom for some other potential approaches.*\n\n## Install\n\n**WARNING: INSTALLING THIS PACKAGE IS DANGEROUS, IT'S EFFECTIVELY A KEYLOGGER THAT WRITES EVERYTHING YOU TYPE IN PLAIN TEXT TO /var/log/keystroke.log.**\n**DO NOT INSTALL THIS UNLESS YOU ARE OK WITH COMPLETELY PWN'ING EVERYTHING YOU DO ON YOUR COMPUTER FOR THE SAKE OF MILD PRODUCTIVITY GAINS**\n\n### 1. Install BitBar: https://getbitbar.com/\n\n### 2. Install Dependencies\n\n```bash\nbrew install redis pypy\nbrew services start redis\npypy -m \"pip\" install --upgrade pykeyboard redis\n\ngit clone https://github.com/pirate/macOS-global-autocomplete.git\ncd macOS-global-autocomplete\n```\n### 3. Set up macOS-global-autocomplete\n\nEdit `bitbar-autocomplete.1s.sh` to point to the correct path of the git repo you just cloned.\n```\n/usr/local/bin/pypy /path/to/macOS-global-autocomplete/autocomplete.py\n```\n\nThen copy it into your plugins folder to enable it in BitBar:\n```bash\ncp bitbar-autocomplete.1s.sh /path/to/bitbar/plugins/folder\n```\n\n### 4. Verify that it's working\n\n```bash\ntail -f /var/log/keystroke.log\n```\n\nAnd start typing to see if things show up...\n\n## TODO:\n\n 1. add helper script to train redis trie on /usr/share/dict/words, python standard library, etc.\n 2. add config file to set insertion key commands\n 3. finish insert code using `pyuserinput`\n 4. add code to rotate /var/log/keystroke.log\n 5. add hashing blacklist functionality to exclude obsenties, sensitive words, passwords, etc.\n\n---\n\n## Alternatives\n\n- macOS Text Shortcuts (built-in): https://www.laptopmag.com/articles/autocomplete-with-text-shortcuts-os-x\n- TypeFast/macEnglish input method https://apple.stackexchange.com/a/271058/171464 / https://blog.csdn.net/lwl_ls/article/details/8564940\n- https://c-command.com/bbautocomplete/\n- http://blog.jeffterrace.com/2012/09/bash-completion-for-mac-os-x.html\n- https://www.iterm2.com/features.html#Autocomplete\n- https://fishshell.com/docs/current/#autosuggestions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpirate%2Fmacos-global-autocomplete","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpirate%2Fmacos-global-autocomplete","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpirate%2Fmacos-global-autocomplete/lists"}