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

Add a :ReadingTime command #99

Closed
jisantuc opened this issue Sep 4, 2024 · 0 comments · Fixed by #103
Closed

Add a :ReadingTime command #99

jisantuc opened this issue Sep 4, 2024 · 0 comments · Fixed by #103

Comments

@jisantuc
Copy link
Owner

jisantuc commented Sep 4, 2024

I've used

wordcount=$(wc -w $inf | awk '{{ print $1 }}')
readtime_minutes=$(echo "${wordcount}/265 + 1" | bc)
echo "Estimated reading time minutes: ${readtime_minutes}"

as a script before, but with %, I bet it wouldn't be too hard to get a popup of reading time in the current buffer, or maybe even get it into statusline somehow if I'm feeling really fancy (or maybe there's an off-the-shelf plugin I could use instead)

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

Successfully merging a pull request may close this issue.

1 participant