https://github.com/pirate/macos-global-autocomplete
:page_with_curl: System-wide autocompleting that learns what you type and works in any app! (also slightly scary maybe don't use this...)
https://github.com/pirate/macos-global-autocomplete
autocomplete bitbar bitbar-plugin macos macos-app productivity-tools pypy redis
Last synced: 2 months ago
JSON representation
:page_with_curl: System-wide autocompleting that learns what you type and works in any app! (also slightly scary maybe don't use this...)
- Host: GitHub
- URL: https://github.com/pirate/macos-global-autocomplete
- Owner: pirate
- License: mit
- Archived: true
- Created: 2016-11-08T05:25:33.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-07-02T00:10:04.000Z (almost 5 years ago)
- Last Synced: 2025-02-14T05:29:18.227Z (4 months ago)
- Topics: autocomplete, bitbar, bitbar-plugin, macos, macos-app, productivity-tools, pypy, redis
- Language: C
- Homepage:
- Size: 15.6 KB
- Stars: 41
- Watchers: 5
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# System-Wide Autocomplete for macOS
An autocomplete prompt app for macOS that learns what as you type and works in **all text fields** system-wide!
The idea was to have a small, global popup in your menubar or as a transparent dropdown,
where autocomplete suggestions are provided based on **all words ever typed on the computer**.Unfortunately this just has too many downsides. You're essentially continually keylogging
yourself for minor convenience, and it has the potential to reveal passwords or embarrassing
information in your typing history to anyone who can see your screen.However, if you don't type anything embarrasing and have eschewed typing passwords in favor of
a password manager, hack away, the code is free for all to use.*See the alternatives section at the bottom for some other potential approaches.*
## Install
**WARNING: INSTALLING THIS PACKAGE IS DANGEROUS, IT'S EFFECTIVELY A KEYLOGGER THAT WRITES EVERYTHING YOU TYPE IN PLAIN TEXT TO /var/log/keystroke.log.**
**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**### 1. Install BitBar: https://getbitbar.com/
### 2. Install Dependencies
```bash
brew install redis pypy
brew services start redis
pypy -m "pip" install --upgrade pykeyboard redisgit clone https://github.com/pirate/macOS-global-autocomplete.git
cd macOS-global-autocomplete
```
### 3. Set up macOS-global-autocompleteEdit `bitbar-autocomplete.1s.sh` to point to the correct path of the git repo you just cloned.
```
/usr/local/bin/pypy /path/to/macOS-global-autocomplete/autocomplete.py
```Then copy it into your plugins folder to enable it in BitBar:
```bash
cp bitbar-autocomplete.1s.sh /path/to/bitbar/plugins/folder
```### 4. Verify that it's working
```bash
tail -f /var/log/keystroke.log
```And start typing to see if things show up...
## TODO:
1. add helper script to train redis trie on /usr/share/dict/words, python standard library, etc.
2. add config file to set insertion key commands
3. finish insert code using `pyuserinput`
4. add code to rotate /var/log/keystroke.log
5. add hashing blacklist functionality to exclude obsenties, sensitive words, passwords, etc.---
## Alternatives
- macOS Text Shortcuts (built-in): https://www.laptopmag.com/articles/autocomplete-with-text-shortcuts-os-x
- TypeFast/macEnglish input method https://apple.stackexchange.com/a/271058/171464 / https://blog.csdn.net/lwl_ls/article/details/8564940
- https://c-command.com/bbautocomplete/
- http://blog.jeffterrace.com/2012/09/bash-completion-for-mac-os-x.html
- https://www.iterm2.com/features.html#Autocomplete
- https://fishshell.com/docs/current/#autosuggestions