obsidian-chronology
obsidian-chronology copied to clipboard
Feature request - Size changes
It would be amazing if we could see how many characters or words were added to each file or note during each modification or per day
That would require an ad-hoc index and kept in sync an all devices on which notes are accessed. I think it would be hardly achievable. Do you know of some existing plugin that already tracks modifications on files? An alternative would be to use git and some plugins that shows the file history.
Well it's not that hard, if you simply track the size of the file each day. You don't need to maintain the state of the file.
There are two ways you could do this:
- Use the byte size of the file, which is available with metadata. It's not as useful as words, but it is easier and not terrible
- You could read in all changed files and count the words, then save those in an index.
There are plugins that do both of these, but none that give you the daily number of file changes (most are for tracking daily progress).
For example, I believe Daily Stats does count the number of words per file. I've been thinking about modifying that plugin to achieve my goals, but if this is something that you think would be useful for your plugin, that would be amazing.
I actually wrote my own plugin (currently very much for personal use and not in the store, nor does it even have commands for a number of things, that I just run in the terminal). But if you're interested, you can see it here: https://github.com/danrthompson/obsidian-file-modification-stats