This adds an option to display the time a file was last accessed:
The timestamp is added via a data attribute to each entry, as well as the following situational classes:
recent-files-this-hour, recent-files-this-day, recent-files-last-day, recent-files-this-week, recent-files-last-week, recent-files-this-month, recent-files-last-month, recent-files-this-year, recent-files-last-year
The time can be displayed as relative or a user defined Moment.js format:
Things I'm not 100% on / need another pair of eyes on:
Typescript, specfically augmenting FilePath
Element layout and styles
Lots of Moment isBetween
Leaving the timesFormat setting empty to display relative times feels weird
Staleness: I don't think this is really a problem, but it can occur. Maybe optionally redraw once every minute?
This adds an option to display the time a file was last accessed:
The timestamp is added via a data attribute to each entry, as well as the following situational classes:
recent-files-this-hour
,recent-files-this-day
,recent-files-last-day
,recent-files-this-week
,recent-files-last-week
,recent-files-this-month
,recent-files-last-month
,recent-files-this-year
,recent-files-last-year
The time can be displayed as relative or a user defined Moment.js format:
Things I'm not 100% on / need another pair of eyes on:
FilePath
isBetween
timesFormat
setting empty to display relative times feels weirdThis fixes #39 and (maybe) #66.