Quick Search, Updated Since
Searches across notes filtered to those updated within specific time ranges (varies by command).
The note's updated timestamp is derived from the OS filesystem modification time (mtime).
This approach simplifies note management while providing accurate modification tracking. When you save changes to a note file, the OS automatically updates the file's modification time.
Git Considerations
When checking out files from git, all files may have their modification time set to the checkout time (not their original modification time). To preserve accurate update timestamps, consider using a tool to restore modification times.
When files are checked out from git, their modification time (mtime) is set to the checkout time rather than their original modification time. This affects features that rely on file modification times, such as "updated since" search filters.
Solution: git-restore-mtime
The git-restore-mtime tool restores file modification times based on git commit history.
Installation
# Ubuntu/Debian
sudo apt install git-restore-mtime
# macOS (via Homebrew)
brew install git-restore-mtime
# pip (cross-platform)
pip install git-restore-mtime
Usage
After checking out a repository or branch:
git restore-mtime
Example: Bash Function
git.restore_modification_mtime () {
echo.func "${@}";
local dir="${1:-${PWD:?}}";
git -C ${dir:?} restore-mtime || {
echo.yellow "Failed to restore modification time.";
return 1
}
}
When to Use
- After
git clone - After
git checkout(switching branches) - After
git pull(if files were modified) - Before using Thorg's "updated since" search filters
Command IDs
thorg.search.quick.updated-since.1-hour-ago
thorg.search.quick.updated-since.2-hours-ago
thorg.search.quick.updated-since.4-hours-ago
thorg.search.quick.updated-since.today
thorg.search.quick.updated-since.yesterday
thorg.search.quick.updated-since.1-week-ago
thorg.search.quick.updated-since.2-weeks-ago
thorg.search.quick.updated-since.1-month-ago
thorg.search.quick.updated-since.2-months-ago
thorg.search.quick.updated-since.3-months-ago
thorg.search.quick.updated-since.6-months-ago
thorg.search.quick.updated-since.1-year-ago
thorg.search.quick.updated-since.2-years-ago
Also see
Shortcuts
Similar commands
- Quick Search, In Subtree, Updated Since - Similar to this command, but also filters to notes in the subtree.
Tips
- Assign Shortcut to Open a Frequently Visited File - Navigate to Exact Note. - Assign a shortcut to open an Ancestor Note of your frequently visited tree/hierarchy.
- Tip: Use Empty Query (' ') to get recently visited notes
Backlinks