This commit is contained in:
joelchrono12 2024-02-16 18:59:35 -06:00
parent 254b42d5d9
commit 3d52fc00a1
Signed by: chrono
GPG Key ID: E23D9C7FA57497A6
3 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,13 @@
#!/usr/bin/env bash
edittags(){
posts="/home/chrono/git/joelchrono12.ml/_posts/"
file=$(/usr/bin/ls ${posts} | rofi -dmenu -p "Pick post")
oldtags=$(cat ${posts}${file} | grep "tags:" | head -1 | awk '{for (i=2; i<NF; i++) printf $i " "; print $NF}')
newtags=$(rofi -dmenu -p "Tags" -filter "$oldtags")
sed -i "s/$oldtags/$newtags/g" "${posts}${file}"
}
edittags

View File

@ -0,0 +1,6 @@
will this work I wonder?
What about spaces and such things?
I am curious to see

View File

@ -0,0 +1,47 @@
[?1049h[?1h=]11;?[?2004h[?u[?25h[?25l(B[?1004h[?25h[?25l[?1002h[?1006h






















(B (B1 (B
(B~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
(B NORMAL (B test.txt (B unix | utf-8 | text (B 100% (B 0:0 (B
[?25h