From bde34d4979749439079b3b615ee73bf2bec4bfc1 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 26 May 2024 09:13:38 +0100 Subject: Fixes old path to journal notes --- journal/get_journal_tags.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/journal/get_journal_tags.pl b/journal/get_journal_tags.pl index 713babf..e6f47d3 100644 --- a/journal/get_journal_tags.pl +++ b/journal/get_journal_tags.pl @@ -3,7 +3,7 @@ use warnings; my @tags; -foreach my $fn (glob "~/Notes/journal/*.md") { +foreach my $fn (glob "~/Documents/Notes/journal/home/*.md") { open my $FH, "<", $fn or die "Cannot open $fn"; while (<$FH>) { while (/(\s:[A-Z]\w+)/g) { @@ -12,6 +12,7 @@ foreach my $fn (glob "~/Notes/journal/*.md") { } } +# This just ensures the tags are unique my %truetags = map { $_, 1 } @tags; my @trutags = keys %truetags; print @trutags, "\n"; -- cgit v1.2.3