One thing I’m trying to figure out how to easily do in cloud9 is create a keybinding to run a bash script I wrote that calls astyle on the currently open file.
I’ve been able to partially implement this by creating a runner to call that script, but I can’t find a way to bind that specific runner to a key, such that I could just press ctrl+a to autoformat the document I’m working on. Any guidance on what the best way to achieve this would be?
Another imperfection with the runner is that every time I run it, it modifies the file on disk and then prompts me to reload the document to see the changes. Ideally, it would be nice if that just happened automatically.