Great minds think alike (and fools seldom differ)! I have something very similar set up, and I find it works very well. I am hoping to build it out into a plugin eventually so that set up can work straight from a single URL scheme command…

7 Likes

Thanks so much for this writeup. I might be doing something wrong, but for me, when I trigger the Templater script to archive a note, it seems to move the note to the archive folder that I specified, but the active pane still. has that same note in it. It does not pull up the next available note in the original folder (in my case the original notes are in the vault root folder). Any idea what I am screwing up?

Sorry I missed this, looks like I don’t have notifications set up for new replies.

I just tested and I think the scripts don’t work for the root folder. I can see if we can make a fix for it to work for that folder, but for now, if you have the files inside any folder besides root it should work.

Thanks so much for reply – yes, I noticed over the weekend that using a folder works fine, so it’s just the root folder that was the issue.

These are excellent ideas and implementations for quick capture @maggiedelano – thank you for posting them.

Love the ideas here and the execution. Any joy getting it to work on root vault?

Thanks for the reminder! Yes, we were able to fix this for both the move/archive templater script and the trash one. Check out the latest versions and let me know if you have any issues.

Thanks very much! I’ve followed the instructions but getting a Templater error when I try to run any of the 3 templates/commands.

I changed some of the settings on the Hotkeys for Templates plugin which was causing some other issues (now all sorted), and now the error on these archive/move & trash templates is this:

Hmm, from that picture it looks like your archive path is not in quotes. It should look like:

let archivePath = '/00 Meta/02 Bins/Archive/';

Does that help? Do you get a similar error when you have the following?

let archivePath = null;

1 Like

Yes you’re exactly right. I updated the archive path to be wrapped in quotes and it now works. Thanks v much Maggie!

1 Like

Hi - Thanks for sharing this!! I tried following all the directions but whenever I trigger the macro, the advanced URI keeps pointing to vault in iCloud and I can’t figure out how to change this to the vault on my computer that I want to use - I did figure out how to modify the file path but not the location of the vault. Any ideas? Thank you!

This is the error message that flashes when I trigger the macro:

@uvie – what is your setting for “Optimize Mac Storage” in System Preferences > iCloud?

If that box is un-checked (as shown) then documents will be stored locally as well as in the cloud. Otherwise, if checked, iCloud will decide where the documents and folders are stored – locally or in the cloud. You can override that on a folder-by-folder basis from the contextual menu in Finder.

Hi! When you open up the iOS shortcut there is a text section that has the word “iCloud” in it (it’s the one right above the text that inputs the URL). You need to change that to the name of your vault.

This is great. Not sure I’m to this point yet—I still like the extra processing step from Drafts, which seems to result in a less-convenient but better, more intentionally written note, at least for me.

But I’d love to have a quick way to open a specific vault on MacOS, whether a keystroke or just a shortcut icon in my dock. Anyone have a way to pull that off?

Depends on the automation tools you use, but you can do that by opening an Obsidian URL:

https://help.obsidian.md/Advanced+topics/Using+obsidian+URI

1 Like

Thank you! I didn’t realize that it could work for entire vaults.

1 Like

Oh I think I was misreading the original post and also left out info in my question – I am trying to do this on my laptop with Keyboard Maestro on the Mac OS rather than on iOS right now (though I eventually want to do this on iOS as well).

Is there a way to do this without the iOS shortcut?

Hey all, I recently posted a video where I go into how to set up this quick capture workflow. You can check it out here.

Thanks, this was a great gem to uncover as I try and implement the weekly review stage of my Second Brain/PARA setup!

I noticed that the archive/move script was a little slow, taking several seconds to open up the dialog for selecting a folder, breaking my flow. I checked the code and noticed it built a set of folders recursively.

I simplified the code for my use case, removing the archive folder path, and using the file explorer’s built in move dialog (which is much faster) and a callback to advance.

The resulting gist is Obsidian: Archive current file and then open next file in folder (Templater script) · GitHub

I’m sure it could be improved further if I understood the execution, variable scope, and callback model better, but this is good enough for me!

1 Like