You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
chee 48c3c9bcf5 add todo item for escaping \ and " 5 years ago
.editorconfig add project config 5 years ago
.eslintrc.yml add project config 5 years ago
.gitignore add project config 5 years ago
.tern-project add project config 5 years ago
README.md add todo item for escaping \ and " 5 years ago
example.macoscompose fix upside down emoji in example 5 years ago
index.js create keybindings file if none exists 5 years ago
messages.js add a couple of error messages 5 years ago
package.json initialise project 5 years ago
yarn.lock initialise project 5 years ago

README.md

.macoscompose

this lets you write compose key config in a simple yaml-like format.

the setup is just like that on gnarf's osx-compose-key repo except you don't need to download or install it, instead you can make a .macoscompose file in your $HOME and populate it in a manner similar to this:

+1: 👍
-1: 👎

# hearts
heart: 
"yellow heart": 💛

dog: 🐶
"(:": 🙃

then run node . in this directory (once you've npm install'd) and restart the apps you want to use compose key in.

something like this:

git clone https://gitlab.com/chee/macoscompose
cd macoscompose
cp example.macoscompose ~/.macoscompose
npm install
node .

notes

merges with the current DefaultKeyBinding.dict if it exists, so it can be used as an extension of osx-compose-key, or in combination with other bindings and binding generators

todo

  • add more entries to the example
  • add error handling
  • escape " and \ on the way out
  • fill out the rest of the todo section