config/doom: update snippets to roam2

This commit is contained in:
xeruf 2021-10-15 13:43:54 +02:00
parent db35fe2286
commit f614e22a06
4 changed files with 4 additions and 4 deletions

View File

@ -2,4 +2,4 @@
# name: Tag roam file as person # name: Tag roam file as person
# key: +person # key: +person
# -- # --
#+roam_tags: person #+filetags: :person:

View File

@ -2,4 +2,4 @@
# name: Tag roam file as tech # name: Tag roam file as tech
# key: +tech # key: +tech
# -- # --
#+roam_tags: tech software #+filetags: :tech:software:

View File

@ -2,4 +2,4 @@
# name: Add Org Roam tags # name: Add Org Roam tags
# key: +t # key: +t
# -- # --
#+roam_tags: #+filetags:

View File

@ -1,4 +1,4 @@
#!/bin/sh -e #!/bin/sh -e
# Move roam files into subfolders # Move roam files into subfolders
cd $DATA/2-standards/notes/roam cd $DATA/2-standards/notes/roam
find . -mindepth 1 -type d -printf '%f\n' | while read dir; do grep -l --directories=skip "roam_tags: $dir" * | xargs --verbose --no-run-if-empty mv -t "$dir"; done find . -mindepth 1 -type d -printf '%f\n' | while read dir; do grep -l --directories=skip "#+filetags: :$dir" * | xargs --verbose --no-run-if-empty mv -t "$dir"; done