sp1ff/elfeed-score

Suggestion: define `elfeed-score-load`

firmart opened this issue · 5 comments

The function elfeed-score-enable installs (or not) the sort function and load the score file. It would be nice to separate the snippet which loads the score file to a separate function so that loading and unloading functions are both available. When I modified my score file, I used elfeed-score-enable to load it, but the denomination sounds unnatural.

sp1ff commented

Do you mean like elfeed-score-load-score-file (bound to l in the keymap)? 😁

sp1ff commented

I'd be uncomfortable just re-loading the thing unconditionally, but maybe check if the file is newer than the last read before scoring & warn? But in that case, it could be challenging to "merge" any in-memory changes with those that occurred on-disk. Hmmmm.... Oh! We write to disk after every scoring run, so it wouldn't be that bad. So yeah, maybe warn on score file changes since the last sync before scoring again?

Thanks again for this wonderful package!

You are most welcome; just glad someone's getting some use out of it. Thank you for all the bug reports & suggestions!

sp1ff commented

I'm going to close this in favor of issue #13, which I think captures the problem more succinctly -- tagged you there @firmart