I keep around 15 repos in ~/code. When I come back from lunch, or on Monday morning, I have lost the thread on what I was editing. Instead of opening each one, I run a single find that ignores .git, node_modules, and build output, and prints the recent files grouped by repo.

The -newermt predicate takes a date spec, so “today” or “1 hour ago” both work. I pair it with awk to strip the common prefix because otherwise I just see /Users/merce/code/... over and over.

#!/usr/bin/env bash
# usage: since "1 hour ago"   or   since "yesterday"   or   since "today"
since() {
  local when="${1:-today}"
  find ~/code -type f \
    -newermt "$when" \
    -not -path '*/.git/*' \
    -not -path '*/node_modules/*' \
    -not -path '*/target/*' \
    -not -path '*/dist/*' \
    -not -path '*/.next/*' \
    2>/dev/null |
  awk -F/ -v home="$HOME/code/" '
    { sub(home, ""); repo=$1; sub("^[^/]+/", ""); print repo"\t"$0 }' |
  sort |
  awk -F'\t' 'repo != $1 {print "\n== "$1" =="; repo=$1} {print "  "$2}'
}

since "${@:-today}"

Drop it in ~/bin/since and chmod +x. Works on macOS and Linux. See also /posts/git-worktree-daily-driver/.