Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create script to generate the keybindings or a BINDINGS.md #17

Open
gnarf opened this issue Nov 30, 2016 · 6 comments
Open

Create script to generate the keybindings or a BINDINGS.md #17

gnarf opened this issue Nov 30, 2016 · 6 comments

Comments

@gnarf
Copy link
Owner

gnarf commented Nov 30, 2016

Either write a script that generates the keybindings from a markdown format table, or a script that generates a markdown formatted table from the keybindings so we can have documentation of what commands are on what files.

@jacobroufa
Copy link
Contributor

@gnarf I'm working on a PR and I'm building the generator script in Node.js. Every time an npm script is run it will WARN as there currently is no license field. Please suggest one for me to include. Thanks!

jacobroufa added a commit to jacobroufa/osx-compose-key that referenced this issue Dec 3, 2016
I have added a package.json with several dev dependencies, to run the
script that generates BINDINGS.md. NPM scripts include `npm run setup`
which will replace `./install.sh`, and `npm run update-bindings`, to
process the script.

TODO:
* add documentation
* fix phrase concatenation
@jacobroufa
Copy link
Contributor

I still need to update the README.md, but you can see the new BINDINGS.md that I've generated.

Per my commit message from b13f46a, my TODO items are:

  • update README to reference new NPM scripts and add contribution documentation
  • fix Phrase output
  • [maybe] add some explanation text at the top of BINDINGS.md

Please let me know about the license and any explanation text for the generated markdown. Of course if you have any other suggestions please let me know. I'm about out of steam right now or I'd finish the rest of this stuff... I'll pick it back up in the next couple few days.

@gnarf
Copy link
Owner Author

gnarf commented Dec 3, 2016 via email

@chee
Copy link

chee commented May 5, 2017

here's a nextstep plist parser and stringifier: https://github.com/chee/nextstep-plist

it's GPL'd but i hereby give every contributer to this repo permission to use it as they see fit

@chee
Copy link

chee commented May 5, 2017

just tried it out using literate coffeescript:

litcoffee

md

and it works

ωωωωωωω

jacobroufa added a commit to jacobroufa/nextstep-plist that referenced this issue May 5, 2017
You said something in gnarf/osx-compose-key#17 ♫┗(^0^)┓♫
@chee
Copy link

chee commented May 7, 2017

for an example of use, there is this:

.macoscompose

it lets you create a file like

# thumbs
+1: 👍
-1: 👎

# hearts
yellow heart: 💛
heart: 

as ~/.macoscompose, and then you run that program and it will merge your .macoscompose with your ~/Library/KeyBindings/DefaultKeyBinding.dict

🙃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants