Browse Source

bin/notes-log-index

Just a quick index of logs, for the moment.
main
Brennen Bearnes 3 months ago
parent
commit
1e938f5053
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      home/bin/notes-log-index

+ 12
- 0
home/bin/notes-log-index View File

@ -0,0 +1,12 @@
#!/bin/bash
sqlite3 "$HOME/notes/metadata.db" <<SQL
.mode list
.separator ' - '
SELECT '~/notes/vimwiki/' || page, title FROM pages
WHERE page LIKE 'log/%'
ORDER BY datetime DESC
SQL
# AND date('$DATE') = date(datetime);
# '[[' || page || ']]

Loading…
Cancel
Save