.local-bin/docs/most_recent_note/Usage.md

749 B

most_recent_note

Opens the most recently created PDF note from the Google Drive notes folder.

Description

This script finds the most recently modified PDF file in ~/Google Drive/My Drive/notes/pdf and opens it with zathura PDF viewer.

Dependencies

  • zathura (PDF viewer)

Usage

./most_recent_note.sh

How It Works

  1. Searches for all PDF files in ~/Google Drive/My Drive/notes/pdf
  2. Sorts them by modification time (newest first)
  3. Opens the most recent PDF with zathura

Notes

  • Requires Google Drive to be synced to the local machine
  • Assumes notes are stored in the specific path: ~/Google Drive/My Drive/notes/pdf
  • zathura must be installed and available in PATH