How do I move notes to a folder without using built in move command?

In my current daily notes setup, I’m trying to design a button labeled “crumple” using the meta-bind plugin. The idea is just that at the end of the day, I press crumple and it “crumples” the daily note, archiving it in a separate folder. The code for the button looks like this:

style: primary
label: Crumple
action:
  type: command
  command: file-explorer:move-file

I’d love for it to just use the built-in move-file command, but the problem is that I can’t figure out how to supply parameters to commands in meta-bind so what ends up happening is, this button just pulls up the same dialog that running the move file command does (I.e. it asks you where you’d like to move the file). Is there any way to set up a button (in meta-bind or otherwise. I’m not picky) to move a file to a particular location without prompting the user for anything? Maybe I have to write a custom command that does this without taking any parameters and then use that command in the meta-bind button? Idk but I’d love to hear your solutions.

Thanks in advance!

You could define a QuickAdd macro that

  1. Asks for the target, and
  2. Moves the file.

Modify the button to call that QuickAdd action I stead if the built-in file move command.

1 Like

Hello skasper, I am newbie to obsidian. Could you please write step by step instruction how to implement this functionality using quickadd? Thanks

I apologize for the delay. Somehow, I missed the notification of your reply.

If you - or others - still need it, here is a step-by-step guide for

  • creating a new QuickAdd action of the “macro” type
  • creating a metabind button calling that action.

Metabind and QuickAdd | Scribe

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.