The Archive + Keyboard Maestro/Alfred macros
Here's a list of discussions about Keyboard Maestro or Alfred macros you will surely find interesting.
Now also on https://zettelkasten.de/the-archive/macros/
Bundles
- Alfred workflow: bundle of many different actions to work with your Zettelkasten from anywhere
Writing and linking
- Link & tag auto-completion bundle by @Will
Insert link to notes with auto-completion/type-ahead search
- Variant by @Will, inserting the ID
- Variant by @kaidoh, inserting the full note title
- Variant by @Vinho, periodically updating a KM variable
- Extract new note from selected text by @sfast
- Table of Contents link: Inset link with spacing to right-align links
- Copy note links in 3 different formats by @Will
- For an alternative to one of these formats: Convert The Archive's copied links from
[[YYMMDDHHMM Title]]
to[[YYMMDDHHMM]] Title
also by @Will
- For an alternative to one of these formats: Convert The Archive's copied links from
Creating Notes
- Create new note from selecton
- Create & update Zettel and its metadata (Alfred workflow)
- Create Zettel (Keyboard Maestro)
- Insert note header/template
Getting Stuff into The Archive
- Take screenshot and save into The Archive: saves the picture in your media folder and prepares the Markdown to insert an image in your clipboard.
- Paste without newlines, e.g. to copy from PDFs.
- Copy link to mail, media, or website into The Archive by @Will
Maintenance, Search and Replace
- Rename note and update all links
- Global find and replace for titles in all notes
- Global find and replace for whole note contents
- Print all tags from .txt files (run from archive directory) a.k.a. Create a "Tag Cloud" note.
- Create note that adds details to tag
Visualization
- Generate a statistics dashboard
- Visualize network of selected notes via graphviz
- Create nested list from connections of selected notes
- Create & update note backlink back-matter
Working with Other Apps
- Insert BibDesk citekey, choose from list
- Insert links to Evernote notes. a.k.a. Using Evernote as a PDF and article archive.
- Move image to /media and put syntax in clipboard: Select files in Finder and copy to the media directory and create in the system clipboard a formatted link for pasting, e.g.
![](media/001.jpg)
. - Search for note by ID at cursor position from any application
- Present a random note a.k.a Presenting a random note.
Miscellaneous
- Poor Man's Roam: "Creates a new note with all paragraphs containing search term"
- Insert URLs to notes from other apps with auto-completion/type-ahead search
- Open note that matches selection from other apps (like external wiki linking)
How to Contribute
- Create a discussion with your macro or internet find, preferably in the "The Archive" category
- Add a reply to this discussion with a link and maybe short description
- Please do not discuss macros here to keep the overview nature; replies that do not expand the list will be deleted
Post edited by ctietze on
Author at Zettelkasten.de • https://christiantietze.de/
Howdy, Stranger!
Comments
@Will 's Keyboard Maestro macros:
Will Simpson
My zettelkasten is for my ideas, not the ideas of others. I don’t want to waste my time tinkering with my ZK; I’d rather dive into the work itself. 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.
kestrelcreek.com
(Split off from main post)
@kaidoh 's Keyboard Maestro macros:
[[wiki links]]
.Author at Zettelkasten.de • https://christiantietze.de/
Quick insertion of links to Evernote notes. a.k.a. Using Evernote as a PDF and article archive.
Will Simpson
My zettelkasten is for my ideas, not the ideas of others. I don’t want to waste my time tinkering with my ZK; I’d rather dive into the work itself. 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.
kestrelcreek.com
Inset Note Link with 80 spacing a.k.a. How do you do that cool link per line formatting thing?
Keyboard Maestro macro
Will Simpson
My zettelkasten is for my ideas, not the ideas of others. I don’t want to waste my time tinkering with my ZK; I’d rather dive into the work itself. 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.
kestrelcreek.com
Automatic completion when adding a link or a tag to zettel. A.K.A. Using [[ and # to launch type ahead search and insertion of link or tag.
Keyboard Maestro Macro
Will Simpson
My zettelkasten is for my ideas, not the ideas of others. I don’t want to waste my time tinkering with my ZK; I’d rather dive into the work itself. 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.
kestrelcreek.com
Some Fun with Randomness and Context a.k.a Presenting a random note.
Keyboard Maestro Macro
Will Simpson
My zettelkasten is for my ideas, not the ideas of others. I don’t want to waste my time tinkering with my ZK; I’d rather dive into the work itself. 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.
kestrelcreek.com
Script to print all tags from .txt files (run from archive directory) a.k.a. Create a "Tag Cloud" note.
Keyboard Maestro Macro
Will Simpson
My zettelkasten is for my ideas, not the ideas of others. I don’t want to waste my time tinkering with my ZK; I’d rather dive into the work itself. 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.
kestrelcreek.com
Yet another Keyboard Maestro Macro.
Quick insertion of links to other Zettels with type-ahead search (using Keyboard Maestro) a.k.a. Insert link into a note interstitially with a [[ and typeahead search. Results are like
[[201901212335]]
Will Simpson
My zettelkasten is for my ideas, not the ideas of others. I don’t want to waste my time tinkering with my ZK; I’d rather dive into the work itself. 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.
kestrelcreek.com
Scans a .bib file for citekeys (e.g. "@author2019"), allows the user to select one of those and inserts it at the current cursor position.
Requires "The Silver Searcher" (https://github.com/ggreer/the_silver_searcher) to be installed.
Setup: In the first command ("execute shell script"), replace "path/to/bibliography.bib" with the path to your .bib file.
Inserting links to notes in your clipboard with the "fancy" table of contents style:
See here for the macro:
https://forum.zettelkasten.de/discussion/comment/2559/#Comment_2559
Author at Zettelkasten.de • https://christiantietze.de/
Yet another Keyboard Maestro Macro.
Quickly copy files (images) to media folder and create formatted media links using Keyboard Maestro
Highlight a file or files in Finder and copy to the media directory and create in the system clipboard a formatted link for pasting in a zettel.
Output
![](media/001.jpg)
This creates a quick simple macro for an association of an image file with a zettel.
Will Simpson
My zettelkasten is for my ideas, not the ideas of others. I don’t want to waste my time tinkering with my ZK; I’d rather dive into the work itself. 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.
kestrelcreek.com
Another macro:
Searches all the zettel-titles in your zettelkasten and replaces a text string of your choice with another text string of your choice wherever the former appears
And one that replaces a text string with another text string in all your zettel bodies (as long as there is no built-in solution) – particularly handy for changing, replacing or deleting tags.
A macro to visualise the links between a group of selected zettels in The Archive with the tool Graphviz. You need to select the notes in the note list of TA, then trigger it and it will produce an SVG-file with the resulting graph. It can be customised in various ways.
And one to create a nested list of the children of a selected zettel to a depth of choice – either on a (new) note in The Archive or with the app OmniOutliner that allows folding and unfolding.
Alfred workflow to create Zettel notes with metadata, updating existing headers upon subsequent launches: https://forum.zettelkasten.de/discussion/675/alfred-workflow-for-creating-new-zettels-including-metadata
(Adding this here for @sai because I've just changes the discussion title to include Alfred )
Author at Zettelkasten.de • https://christiantietze.de/
Search The Archive for a UID under the cursor from any application. Can also be easily modified to "search the archive for whatever is on your clipboard".
Stats Dashboard
Will Simpson
My zettelkasten is for my ideas, not the ideas of others. I don’t want to waste my time tinkering with my ZK; I’d rather dive into the work itself. 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.
kestrelcreek.com
Poor Man's Roam-Style Contextual Backlinks
Creates a new note with all paragraphs containing search term (see screenshots in post).
Zettel Title Search a.k.a. A simple unsophisticated text only (no regex) Keyboard Maestro macro for searching title names and then displaying the note in the editor window.
Will Simpson
My zettelkasten is for my ideas, not the ideas of others. I don’t want to waste my time tinkering with my ZK; I’d rather dive into the work itself. 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.
kestrelcreek.com
New Zettel from Selection
KM macro to create/regenerate backlinks
Alfred workflow for The Archive
Creating new Zettels using Keyboard Maestro.
Will Simpson
My zettelkasten is for my ideas, not the ideas of others. I don’t want to waste my time tinkering with my ZK; I’d rather dive into the work itself. 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.
kestrelcreek.com
Rename Note and Update Wikilinks to It
This Keyboard Maestro macro will rename a specified note and update all
[[wikilinks]]
to it.Open a File Outside the Zettelkasten Identified by a UID
This Keyboard Maestro macro will open the file in a specified directory with a filename containing the currently selected text.
Keyboard Maestro macro that creates a new note the can be used for recording details about individual tags. Details are in the link.
In the case, the tag is #tag_details but could be anything.
Will Simpson
My zettelkasten is for my ideas, not the ideas of others. I don’t want to waste my time tinkering with my ZK; I’d rather dive into the work itself. 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.
kestrelcreek.com
Version 2.0 of the Note Linking Trivecta
Insert Inline Note Link (UID only)
[[202008011415]]
Insert Title 1st Note Link -
Zettelkasting Dashboard [[202008011415]]
Insert UID 1st Note Link -
[[202008011415]] Zettelkasting Dashboard
Will Simpson
My zettelkasten is for my ideas, not the ideas of others. I don’t want to waste my time tinkering with my ZK; I’d rather dive into the work itself. 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.
kestrelcreek.com
Paste without line breaks.
I use it when I copy and paste from a pdf. Often there are unwanted line breaks.
I am a Zettler
Highlight the text you want to extract to its own note in your Zettelkasten (Software: The Archive) and invoke macro:
https://github.com/SaschaFast/Keyboard-Maestro-Macros/blob/main/Refactor.kmmacros
I am a Zettler