chee / macoscompose

key-value compose-key

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.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

About

key-value compose-key

License:GNU General Public License v3.0


Languages

Language:JavaScript 100.0%