# QuickAdd Plugin

**URL:** <https://forum.obsidian.md/t/quickadd-plugin/20032>\
**Category:** Plugins\
**Tags:** plugin-release\
**Created:** [June 24, 2021, 12:37pm UTC](https://forum.obsidian.md/t/quickadd-plugin/20032 "2021-06-24T12:37:38Z")\
**Posts on this page:** 20\
**Page:** 8

<div class="post-metadata">

**Author:** ![holroy](https://forum.obsidian.md/user_avatar/forum.obsidian.md/holroy/32/77699_2.png) [@holroy](https://forum.obsidian.md/u/holroy)\
**Post date:** [June 26, 2023, 2:14pm UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/146 "2023-06-26T14:14:36Z")

</div>

You could also use the idea suggested below, which do work in recent edition of Obsidian/QuickAdd.

> <https://github.com/chhoumann/quickadd/issues/288#issuecomment-1366656176>
>
> It would be really interesting if you could implement a Date Picker (Similar to …the one in Notion) to pick specific Dates or set time-periods. Just a little niche thing, but still a cool addition.
> 
> !\[image\](https://user-images.githubusercontent.com/5614680/193962168-8184fb4b-c060-4e3b-943d-db53e1a12e19.png)

---

<div class="post-metadata">

**Author:** ![Jeremy](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/j/82dd89/32.png) [@Jeremy](https://forum.obsidian.md/u/Jeremy)\
**Post date:** [June 28, 2023, 12:14pm UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/147 "2023-06-28T12:14:06Z")

</div>

Thanks - will give this a try.

---

<div class="post-metadata">

**Author:** ![benfish91](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/b/9de053/32.png) [@benfish91](https://forum.obsidian.md/u/benfish91)\
**Post date:** [August 6, 2023, 6:02pm UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/148 "2023-08-06T18:02:01Z")

</div>

Is there anyway to have variables in a section but if you don’t want the selected variables you can still write your own?

```auto
tags: {{VALUE:tech💾/purchase,Home/purchase,car🚗}}

```

In my template, that currently asks how I want to assign a tag to my purchase. Lets say I didn’t want to assign any of those, either wanted it blank or something new.

What are my options 🙂

---

<div class="post-metadata">

**Author:** ![Brandan](https://forum.obsidian.md/user_avatar/forum.obsidian.md/brandan/32/52394_2.png) [@Brandan](https://forum.obsidian.md/u/Brandan)\
**Post date:** [August 21, 2023, 3:55am UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/149 "2023-08-21T03:55:14Z")

</div>

Obsidian API line to delete contents of a note. ( Excluding Title )

```auto
this.app.workspace.activeLeaf.view.editor.setValue('');

```

---

<div class="post-metadata">

**Author:** ![Brandan](https://forum.obsidian.md/user_avatar/forum.obsidian.md/brandan/32/52394_2.png) [@Brandan](https://forum.obsidian.md/u/Brandan)\
**Post date:** [August 27, 2023, 1:35am UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/150 "2023-08-27T01:35:37Z")

</div>

Updated API call. ActiveLeaf is deprecated.

```auto
this.app.workspace.getLeaf(false).view.editor.setValue('');

```

---

<div class="post-metadata">

**Author:** ![RiaGruen](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/r/3e96dc/32.png) [@RiaGruen](https://forum.obsidian.md/u/RiaGruen)\
**Post date:** [September 28, 2023, 9:07pm UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/151 "2023-09-28T21:07:26Z")

</div>

I just saw your question, so I’m sorry for being late.

Just add a space and a comma in your values. Example:  
tags:{{value: , tech, home}}

---

<div class="post-metadata">

**Author:** ![Anwen](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/a/b5e925/32.png) [@Anwen](https://forum.obsidian.md/u/Anwen)\
**Post date:** [December 9, 2023, 8:32pm UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/153 "2023-12-09T20:32:25Z")

</div>

JI’m looking to create a macro and I think it would be possible with quickadd but I’m not sure. I’m not comfortable with javascript yet.  
I have the moviegrabber, game search and book search plugins to create book, game and movie notes, each with a command. I’m looking to create a command that combines these commands. Basically, I’m looking to create a macro that opens a suggester input with the choice between books, movies, games and series, and launches the corresponding command. Does anyone have any ideas on how to do this?  
Thanks

---

<div class="post-metadata">

**Author:** ![Anwen](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/a/b5e925/32.png) [@Anwen](https://forum.obsidian.md/u/Anwen)\
**Post date:** [December 9, 2023, 10:28pm UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/154 "2023-12-09T22:28:06Z")

</div>

Nervermind, I found a solution I hadn’t thought of. I created a macro for each and a multi in which I grouped the macros.

---

<div class="post-metadata">

**Author:** ![reaty](https://forum.obsidian.md/user_avatar/forum.obsidian.md/reaty/32/44331_2.png) [@reaty](https://forum.obsidian.md/u/reaty)\
**Post date:** [December 11, 2023, 9:52am UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/155 "2023-12-11T09:52:36Z")

</div>

Can someone help me, is it a way to set up prompt with default value for note name? I want QuickAdd to ask me for a name when I create a new note, but if I leave the prompt empty, I want it to use some default name instead of throwing the error. Is it possible to do this without writing script?

---

<div class="post-metadata">

**Author:** ![sanyaissues](https://forum.obsidian.md/user_avatar/forum.obsidian.md/sanyaissues/32/58181_2.png) [@sanyaissues](https://forum.obsidian.md/u/sanyaissues)\
**Post date:** [December 12, 2023, 9:43pm UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/156 "2023-12-12T21:43:28Z")

</div>

@Outis I was asking myself the same thing a few days ago, so I adapted his OMDB script to connect to TMDb. Here’s the script [tmdb-obsidian](https://github.com/lemachinarbo/tmdb-obsidian)

---

<div class="post-metadata">

**Author:** ![sanyaissues](https://forum.obsidian.md/user_avatar/forum.obsidian.md/sanyaissues/32/58181_2.png) [@sanyaissues](https://forum.obsidian.md/u/sanyaissues)\
**Post date:** [December 12, 2023, 10:59pm UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/158 "2023-12-12T22:59:34Z")

</div>

@reaty I don’t know how to do it without a script, but you can paste this in the Capture Format section of your prompt and it will provide you a default message if the prompt is empty.

 ![capture-format](https://forum.obsidian.md/uploads/default/original/3X/c/1/c1fe6d1b68e5421997d8aea00d5eae4fe8c1f4bf.png)

````auto
```js quickadd
const input = await this.quickAddApi.inputPrompt("Your prompt title") || "Your default message";
return `Input given: ${input}`; ```

````

---

<div class="post-metadata">

**Author:** ![marcotaffi](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/m/59ef9b/32.png) [@marcotaffi](https://forum.obsidian.md/u/marcotaffi)\
**Post date:** [December 13, 2023, 9:22am UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/159 "2023-12-13T09:22:08Z")

</div>

Please, how to create a pop-up “contentEl.setText()”, in a quickadd script.js?  
I can’t load Modal …  
thanks!

---

<div class="post-metadata">

**Author:** ![Outis](https://forum.obsidian.md/user_avatar/forum.obsidian.md/outis/32/47537_2.png) [@Outis](https://forum.obsidian.md/u/Outis)\
**Post date:** [December 14, 2023, 1:15pm UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/160 "2023-12-14T13:15:49Z")

</div>

Thank you so much, @sanyaissues.

---

<div class="post-metadata">

**Author:** ![aliastrench](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/a/9fc29f/32.png) [@aliastrench](https://forum.obsidian.md/u/aliastrench)\
**Post date:** [January 5, 2024, 11:46am UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/161 "2024-01-05T11:46:21Z")

</div>

Hi everyone,

I’ve been trying to use quick add for tasks, but I’ve been running into an issue with quick Add where it will not accept the syntax for VDATE.  
What I’m trying to add is the following:

- {{VALUE:Task name}} {{VALUE:⏫,🔼, ,🔽}} 📅{{VDATE:Due date, YYYY-MM-DD}} \n

But what ends up happening is I put in {{VDATE:due or {{VDATE:date and obsidian freezes.

Any help would be great because otherwise I’ll just have to quick add the other parts of the task and then manually add in the due dates on my tasks.

---

<div class="post-metadata">

**Author:** ![aliastrench](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/a/9fc29f/32.png) [@aliastrench](https://forum.obsidian.md/u/aliastrench)\
**Post date:** [January 5, 2024, 1:30pm UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/162 "2024-01-05T13:30:25Z")

</div>

Update: I’ve managed to get, as far as I can tell, the correct code in (had to force close obsidian and then copy in the correct code from note pad)  
 ![image](https://forum.obsidian.md/uploads/default/original/3X/d/9/d9aa9a750759ad362ce7a4c12e58ce0c74d68bc0.png)  
but it’s giving me an invalid date error, so I’m not sure what I’m doing wrong.

---

<div class="post-metadata">

**Author:** ![Anwen](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/a/b5e925/32.png) [@Anwen](https://forum.obsidian.md/u/Anwen)\
**Post date:** [January 5, 2024, 2:07pm UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/163 "2024-01-05T14:07:00Z")

</div>

It’s normal for it to tell you that this is an invalid date because you haven’t entered a date here yet and it is therefore invalid. You need to test to make sure it works.

---

<div class="post-metadata">

**Author:** ![Yolkin](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/y/bb73d2/32.png) [@Yolkin](https://forum.obsidian.md/u/Yolkin)\
**Post date:** [February 2, 2024, 10:59am UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/164 "2024-02-02T10:59:52Z")

</div>

Is there a way how can I run `executeChoice` without asking for input, please?

My idea:

1. ask for the user input
2. create folder with title after user input
3. run `executeChoice` with input collected from the first action

My task:

1. ask for input
2. create new folder, create new note with the title matching folder name, then insert templater template into the note.

---

<div class="post-metadata">

**Author:** ![Yolkin](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/y/bb73d2/32.png) [@Yolkin](https://forum.obsidian.md/u/Yolkin)\
**Post date:** [February 2, 2024, 2:01pm UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/165 "2024-02-02T14:01:47Z")

</div>

Ok I did it.

```auto
module.exports = async (params) => {
    const {
        app,
    } = params;	
	
	console.log("start here")
	console.log("app found " + app);
	
	const templater = app.plugins.plugins["templater-obsidian"].templater;
	console.log("templater found " + templater);
	
	const tp = app.plugins.plugins['templater-obsidian'].templater.current_functions_object;
	console.log("tp found " + tp);
	
	// prompt for file name input
	title = "🪐 " + await tp.system.prompt("Title");
	
	// get path of current file
	let filePath = app.workspace.getActiveFile().path;
	console.log("filePath " + filePath);
	
	// trim file name from the path
	let match = filePath.match(/.*\//);
	if(match)
		folderPath = match[0] + title;
	console.log("folderPath " + folderPath);
	
	// create folder
	await app.vault.createFolder(folderPath);
	
	// run note creation with template
	const template = tp.file.find_tfile("MOC Template"); 
	console.log("template found " + template);
	const folder = app.vault.getAbstractFileByPath(folderPath);
	console.log("folder found " + folder);
	console.log("title is still " + title);
	await tp.file.create_new(template, title, true, folder); 
}

```

Beware of this [here](https://forum.obsidian.md/t/templater-api/59117/6), took me an hour to troubleshoot

---

<div class="post-metadata">

**Author:** ![RowingVol](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/r/ac91a4/32.png) [@RowingVol](https://forum.obsidian.md/u/RowingVol)\
**Post date:** [March 5, 2024, 4:00am UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/166 "2024-03-05T04:00:59Z")

</div>

Hi. I really love the plugin. I’ve noticed something odd recently and I’m wondering if anyone else has seen this. In one of my vaults, I’m trying to add a capture to create a meeting note and give it the file name: MEETING - Meeting Name. I also wanted to capture a date for the meeting date in case it is different than the current date.

The issue I’m seeing is every time I type a comma (to format the date) in the capture format box Obsidian completely freezes and I have to shut it down. This doesn’t happen in other vaults just this one.

 ![Screenshot 2024-03-04 215601](https://forum.obsidian.md/uploads/default/original/3X/7/1/71816d0192dca9529875ba5999568f6e1ad0ce4e.png)

---

<div class="post-metadata">

**Author:** ![Monotype](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@Monotype](https://forum.obsidian.md/u/Monotype)\
**Post date:** [April 21, 2024, 3:47pm UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/167 "2024-04-21T15:47:02Z")

</div>

I am trying to add a Quick Add shortcut to create a ToDo, that would ask me what type of ToDo I want so that I can select it from a list of 3 options and it populates the “type” property in the resulting new note.

I’ve been playing with the QuickAdd macros and it’s documentation but I can’t figure it out, any suggestions?

[Previous page](https://forum.obsidian.md/t/quickadd-plugin/20032.md?page=7)

[Next page](https://forum.obsidian.md/t/quickadd-plugin/20032.md?page=9)
