Word Count

There seems to be no way easy way to add a word count to the Helix editor without recompiling.

The only way I found is a user binding calling wc.

Essentially this binding selects all the content, saves it to a temporary file, does the word count, and jumps the cursor back to where you were before.

[keys.normal.space]
"#" = ["save_selection", "select_all", ":pipe-to wc -w > /tmp/hx-wordcount", "jump_backward", ":sh cat /tmp/hx-wordcount"]

Press Space + # to trigger the binding.