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

use hiccup-cli with neovim #19

Open
humorless opened this issue Jul 11, 2023 · 0 comments
Open

use hiccup-cli with neovim #19

humorless opened this issue Jul 11, 2023 · 0 comments

Comments

@humorless
Copy link
Owner

Installation and configuration

  1. Download the hiccup-cli binary from here.
  2. Move hiccup-cli to /usr/local/bin/hiccup-cli
  3. Because the hiccup-cli does not support reading from stdin, I need to configure it with a bash script html2hiccup.
#!/usr/bin/env bash

middle="$(mktemp)"
while IFS= read -r line; do
    echo "$line" >> "$middle"
done

hiccup-cli --html-file "$middle"

Move the script html2hiccup to /usr/local/bin/html2hiccup

Screenshots

vim reference with external command

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

No branches or pull requests

1 participant