Feature: show time of last scan
- Dominant language
- Rust
- Stars
- 3.1k
- Forks
- 96
- PR merge metrics
- No merged PRs in 30d
Description
`diskonaut` preserves the state of the filesystem as it was when it scanned it. If the filesystem changes while the app is running (eg. someone downloads a file into the folder `diskonaut` previously scanned), it will not be updated.
This feature would mean adding the timestamp of the scan to the title line on the right side.
This might cause trouble with our tests (since they are snapshot tests and we can't set the timestamp in them). So when the app the tests are running, this feature should just output instead. To do this, we can use the `#[cfg(not(test))]` and `#[cfg(test)]` configurations.
Contributor guide
Research direction
Locate the title-line rendering entry point and the snapshot tests mentioned in the issue. Add the scan timestamp to the title while keeping test output as ; done means the timestamp appears during normal runs and all snapshot tests remain stable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100