isaaclyman / novel-word-count-obsidian

Obsidian plugin. Displays a word count or other statistic for each file, folder and vault in the File Explorer pane.
https://obsidian.md/plugins?id=novel-word-count
MIT License
82 stars 8 forks source link

Read Time value in sidebar #61

Closed redactedscribe closed 12 months ago

redactedscribe commented 12 months ago

Problem

I want to know the time taken to read a document.

Idea

A read time value for each file in the sidebar. From what I've read, the typical reading speed is 200-300 words per minute. A plugin for VS Code sets the default reading speed to 200 to calculate reading time for a document. It would be great if this value was customisable, just like the "Words per page" value is. The displayed value could use s, m, h suffixes: 48s, 5m, 1h 23m.

Thanks!

isaaclyman commented 12 months ago

I've been waiting for someone to request this. Won't take long to implement.

Due to space constraints, I'll likely go with a single measure for each note, e.g.:

'10s read' (anything from 1 second up to 1 minute)

'10m read' (from 1 minute up to 180 minutes)

'10h read' (3 hours and up)

With a digit of precision after the decimal.

redactedscribe commented 12 months ago

I've been waiting for someone to request this. Won't take long to implement.

I was surprised it hadn't already been suggested.

'10h read' (3 hours and up)

Personally, I'm not sure the "read" part is that necessary, just like " words" isn't necessary for "200w" to make sense whilst also saving space. Without "read", the suggested #h #m format wouldn't be any more space-consuming, and I'd find it more preferable than dealing with minutes above 60. However, an implementation of the sort you suggest is still appreciated and better than nothing.

isaaclyman commented 12 months ago

Right, if abbreviations are toggled on it would just be 10.2h or whatever.

You make a good point, 5h32m is still more compact than some of the other count types...I'll give that some more thought.

isaaclyman commented 12 months ago

Fixed in v2.25.0. The format is:

I think that's what you're asking for. It's compact and looks good. Let me know if you see any issues with it.

redactedscribe commented 12 months ago

Thanks for making it happen! If I encounter any issues, I'll let you know.