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 implicit attribute: file.wordcount #397

Open
chrisgrieser opened this issue Aug 10, 2021 · 0 comments
Open

Add implicit attribute: file.wordcount #397

chrisgrieser opened this issue Aug 10, 2021 · 0 comments
Assignees
Milestone

Comments

@chrisgrieser
Copy link

@chrisgrieser chrisgrieser commented Aug 10, 2021

Is your feature request related to a problem? Please describe.
The currently available wordcount plugins only count word in individual notes. For many usecases, e.g. longform writing where you split your project across multiple notes, counting words for many notes together would be an essential feature.

Describe the solution you'd like
An implicit attribute file.wordcount to easily display the word count. Basically what file.size is already doing, but in words as opposed to bytes/characters.

Describe alternatives you've considered
The longform plugin does no have such a feature yet. The wordcount plugins do not offer such a feature yet. I also considered writing a small shell script with wc and prepending the result to every file as yaml-header. However, such a solution would be impractical, as it creates yaml headers where you actually often do not want them (longform's compile does not address yaml headers yet, e.g.).

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

Successfully merging a pull request may close this issue.

None yet
3 participants