# 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:** 3

<div class="post-metadata">

**Author:** ![Christian](https://forum.obsidian.md/user_avatar/forum.obsidian.md/christian/32/10431_2.png) [@Christian](https://forum.obsidian.md/u/Christian)\
**Post date:** [October 3, 2021, 11:08am UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/41 "2021-10-03T11:08:17Z")

</div>

That’s odd. Would you file an issue for it, so we can figure it out? 🙂

> **[Issues · chhoumann/quickadd](https://github.com/chhoumann/quickadd/issues?q=is:issue%2Bis:open%2Bsort:updated-desc)**
>
> QuickAdd for Obsidian. Contribute to chhoumann/quickadd development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![curiosity](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/c/839c29/32.png) [@curiosity](https://forum.obsidian.md/u/curiosity)\
**Post date:** [October 5, 2021, 5:09am UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/42 "2021-10-05T05:09:56Z")

</div>

[Done](https://github.com/chhoumann/quickadd/issues/120)! Thanks!

---

<div class="post-metadata">

**Author:** ![Archie](https://forum.obsidian.md/user_avatar/forum.obsidian.md/archie/32/16428_2.png) [@Archie](https://forum.obsidian.md/u/Archie)\
**Post date:** [October 15, 2021, 9:29am UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/43 "2021-10-15T09:29:44Z")

</div>

i am looking for a script that fetches a metadata from the current activefile for me. can someone pls help me with that?

---

<div class="post-metadata">

**Author:** ![jdrennen](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/j/f6c823/32.png) [@jdrennen](https://forum.obsidian.md/u/jdrennen)\
**Post date:** [October 19, 2021, 3:38am UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/44 "2021-10-19T03:38:00Z")

</div>

Is there a way to “prepend” the current note name to the newly created note? So if I’m in a note named “Test\_Note\_Parent” and I select some text in that note… Say I select the word “Child” and type in the doubles [[]] brackets to create a new note. When I click to add the note, it will create the note with the name as “Test\_Note\_Parent:Chi­ld” Basically creating a new note with the selected text as the Note name, but Prepending or prefixing the current note name to the beginning of the newly created note?

---

<div class="post-metadata">

**Author:** ![Rainbell](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/r/f6c823/32.png) [@Rainbell](https://forum.obsidian.md/u/Rainbell)\
**Post date:** [October 19, 2021, 9:00am UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/45 "2021-10-19T09:00:14Z")

</div>

@Christian This app is fantastic! Thank you for developing this! I need to log in some info about my pet birds every day and Quickadd can be super useful with that…  
I also have a small question to ask: when I try to log in some fields (inserting values after three lines) with a macro,

```auto
Diet: 
Supplement: 
Daily Log: 

```

The result is always like:

```auto
Diet: 
value
Supplement: 
value
Daily Log: 
value

```

Is there a way to format it without the line breaks?

```auto
Diet: value
Supplement: value
Daily Log: value

```

Thanks again for this wonderful plugin!

---

<div class="post-metadata">

**Author:** ![toxfu](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/t/51bf81/32.png) [@toxfu](https://forum.obsidian.md/u/toxfu)\
**Post date:** [October 21, 2021, 4:36am UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/46 "2021-10-21T04:36:36Z")

</div>

How to add in one note only?

---

<div class="post-metadata">

**Author:** ![art.genosse](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/a/6de8d8/32.png) [@art.genosse](https://forum.obsidian.md/u/art.genosse)\
**Post date:** [November 10, 2021, 10:16am UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/47 "2021-11-10T10:16:07Z")

</div>

@andreirs did you find the snippets for the outline-function, or are you using your own WF?

I would be really interested in the outline-function as Eleanor showed.  
Could one just point me in that direction?

---

<div class="post-metadata">

**Author:** ![andreirs](https://forum.obsidian.md/user_avatar/forum.obsidian.md/andreirs/32/2596_2.png) [@andreirs](https://forum.obsidian.md/u/andreirs)\
**Post date:** [November 11, 2021, 6:35pm UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/48 "2021-11-11T18:35:57Z")

</div>

I’m not sure I understand your question. I linked in my previous post the scripts I’m using. Or are you referring to the outliner plugin?

---

<div class="post-metadata">

**Author:** ![gcervera](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/g/46a35a/32.png) [@gcervera](https://forum.obsidian.md/u/gcervera)\
**Post date:** [November 17, 2021, 12:53am UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/49 "2021-11-17T00:53:45Z")

</div>

Hi everyone,

Question here, is it possible to search for files and use their names as input? I’m trying to quick add tasks to projects (I have heaps of them, each with a different name) and it would be great to have this option while having the flexibility.

My idea was something like this:

1 - Open QuickAdd “Create Task”  
2 - Search for the file/project I want to add the task  
3 - Input task description  
4 - Close QuickAdd

Any ideas or comments if this is possible to implement? I tried to use the “Quick Switcher” command as part of the workflow but QuickAdd jumps to the next step before I’ve selected the file I want to add the ask.

Thanks!

---

<div class="post-metadata">

**Author:** ![Christian](https://forum.obsidian.md/user_avatar/forum.obsidian.md/christian/32/10431_2.png) [@Christian](https://forum.obsidian.md/u/Christian)\
**Post date:** [November 19, 2021, 7:30am UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/50 "2021-11-19T07:30:11Z")

</div>

Hey! Just saw your comment on my video. I’ll paste my response here for anyone else with similar questions:

That sounds like a smart feature, but doesn’t exist yet from what I know of. I suppose it wouldn’t be impossible with some scripting, though - either in QuickAdd or Templater 🙂

---

<div class="post-metadata">

**Author:** ![Christian](https://forum.obsidian.md/user_avatar/forum.obsidian.md/christian/32/10431_2.png) [@Christian](https://forum.obsidian.md/u/Christian)\
**Post date:** [November 19, 2021, 7:34am UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/51 "2021-11-19T07:34:17Z")

</div>

Hey! Could you show me the macro in question? I put

```auto
Diet: {{VALUE:DIET}}
Supplement: {{VALUE:SUPP}}
Daily Log: {{VALUE:LOG}}

```

in a template and it worked fine. I also put it in a capture, and it worked fine. 🙂

---

<div class="post-metadata">

**Author:** ![Christian](https://forum.obsidian.md/user_avatar/forum.obsidian.md/christian/32/10431_2.png) [@Christian](https://forum.obsidian.md/u/Christian)\
**Post date:** [November 19, 2021, 7:36am UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/52 "2021-11-19T07:36:12Z")

</div>

Do you have anything in the frontmatter or filename that indicates that a given file denotes a project? If so, I think it would be very possible with a script - and it would always be updated to include all projects, including new ones. 🙂

---

<div class="post-metadata">

**Author:** ![gcervera](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/g/46a35a/32.png) [@gcervera](https://forum.obsidian.md/u/gcervera)\
**Post date:** [November 20, 2021, 1:59pm UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/53 "2021-11-20T13:59:18Z")

</div>

Hey @Christian ,

Thanks for your reply. My script knowledge is limited but I’m keen to make it happen.

Coming back to your question, yes, all files have a frontmatter property called “Type” where I can identify them as Project, Notes, Archive, etc.

---

<div class="post-metadata">

**Author:** ![Archie](https://forum.obsidian.md/user_avatar/forum.obsidian.md/archie/32/16428_2.png) [@Archie](https://forum.obsidian.md/u/Archie)\
**Post date:** [November 22, 2021, 11:15am UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/54 "2021-11-22T11:15:36Z")

</div>

i was looking at metaedit api to use it in quickadd:

> update(propertyName: string, propertyValue: string, file: TFile | string)  
> Updates a property with the given name to the given value in the given file.
> 
> If the file is a string, it should be the file path. Otherwise, a TFile is fine.
> 
> This is an asynchronous function, so you should await it.

it say the update function value type is string, i have a counter in yaml that i want to go up by one number in the current active file. what should i do?

---

<div class="post-metadata">

**Author:** ![Christian](https://forum.obsidian.md/user_avatar/forum.obsidian.md/christian/32/10431_2.png) [@Christian](https://forum.obsidian.md/u/Christian)\
**Post date:** [November 25, 2021, 4:54am UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/55 "2021-11-25T04:54:13Z")

</div>

That makes it a bit easier. You’d be able to fetch all files where the type is project.  
Something like this (probably not a very efficient way to do it):

```javascript
app.metadataCache.getCachedFiles()
    .map(file => app.metadataCache.getFileCache(app.vault.getAbstractFileByPath(file)))
.filter(meta => meta?.frontmatter?.type === "Project")

```

---

<div class="post-metadata">

**Author:** ![Christian](https://forum.obsidian.md/user_avatar/forum.obsidian.md/christian/32/10431_2.png) [@Christian](https://forum.obsidian.md/u/Christian)\
**Post date:** [November 25, 2021, 4:59am UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/56 "2021-11-25T04:59:31Z")

</div>

Something like this 🙂

```javascript
const currentFile = app.workspace.getActiveFile();
if (!currentFile) return;

const cfMeta = app.metadataCache.getFileCache(currentFile);
const counter = parseInt(cfMeta.frontmatter.count);

app.plugins.plugins["metaedit"].api.update("count", counter + 1, currentFile);

```

---

<div class="post-metadata">

**Author:** ![Archie](https://forum.obsidian.md/user_avatar/forum.obsidian.md/archie/32/16428_2.png) [@Archie](https://forum.obsidian.md/u/Archie)\
**Post date:** [November 26, 2021, 4:29am UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/57 "2021-11-26T04:29:39Z")

</div>

thank you so much, i got he desired results for the counter, but couldn’t pass it to update the matadata because i couldn’t figure out that yaml key needs to be in “”. it is a bit confusing in the documentaion.

---

<div class="post-metadata">

**Author:** ![Saorsa](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/s/45deac/32.png) [@Saorsa](https://forum.obsidian.md/u/Saorsa)\
**Post date:** [January 10, 2022, 4:17pm UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/58 "2022-01-10T16:17:02Z")

</div>

Can you use the suggester, but be able to choose more than one option? How would I do that? I tried using this, {{VALUE: but could not seem to make it work. I want to be able to have options for how I slept like was up late, and fell asleep quickly or had a hard time sleeping.

---

<div class="post-metadata">

**Author:** ![Christian](https://forum.obsidian.md/user_avatar/forum.obsidian.md/christian/32/10431_2.png) [@Christian](https://forum.obsidian.md/u/Christian)\
**Post date:** [January 10, 2022, 4:55pm UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/59 "2022-01-10T16:55:05Z")

</div>

Something like `{{VALUE:Up late,Fast asleep,Poor sleep}}`?

---

<div class="post-metadata">

**Author:** ![Saorsa](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/s/45deac/32.png) [@Saorsa](https://forum.obsidian.md/u/Saorsa)\
**Post date:** [January 10, 2022, 5:25pm UTC](https://forum.obsidian.md/t/quickadd-plugin/20032/60 "2022-01-10T17:25:22Z")

</div>

I don’t think I explained what I am tying to do clearly. So, today I want to be able to say that I was Up late and Fell asleep quickly, so I want to use two of the suggested responses. Is that possible?

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

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