Help with modifying a KM script please?
in The Archive
Hi, at some point I've taken a KM script from here (don't know who posted it, apologies) that inserts a link to existing notes.

It's coming up with two suggestions for each note - I suspect it's becuase in the folder there's a plist file for every .md note, because I used another app to access the folder and that's what it generates. Annoyingly.
The script is this - can this be modified to only show the one expected entry?
ls | sed -E -e 's/.[^.]*$//' -e 's!^([0-9]+)[[:space:]-]+(.+)!\2 [[\1]]!'
If not, it's no big deal, I've only accessed this folder with the other app to prepare for my exams and it's not part of my long term ZK approach, so I'll just start afresh once I'm through - but it would be really good. Thanks in advance.
Howdy, Stranger!
Categories
- 3K All Categories
- 152 Research & Reading
- 692 The Zettelkasten Method
- 7 Knowledge Work
- 100 Writing
- 464 Software & Gadgets
- 154 Workflows
- 730 The Archive
- 15 Plug-In Showcase
- 88 Resolved Issues
- 225 Projects Logs and Journals
- 83 Project: Zettelkasten.de
- 53 Critique my Zettel
- 171 Random
- 373 Introduce Yourselves!
Comments
Do you mean like this?
This is a result of the plist shenanigans. This should work.
ls | sed -E -e 's/\..*$//' -e 's!^([0-9]+)[[:space:]-]+(.+)!\2 [[\1]]!' | sort -uWill Simpson
My peak cognition is behind me. One day soon, I will read my last book, write my last note, eat my last meal, and kiss my sweetie for the last time.
My Internet Home — My Now Page
That's fantastic, thank you. I'll try that tomorrow.
:wq