mProjectsCode / mProjectsCode/obsidian-meta-bind-plugin

Button (TemplaterCreateNote) - Option to Omit Folder (folderPath) property in Popup Menu

Open
#660 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
TypeScript
Stars
1k
Forks
86
PR merge metrics
No merged PRs in 30d

Description

Please fill out these Check-boxes
  • I checked for existing similar feature requests
  • I have read the docs and checked that the feature I am requesting is not already implemented
  • My feature request consists of only one feature
Is your Feature Request related to a Problem or Annoyance?

When running a TemplaterCreateNote Action through a button/inline-button/templated-inline-button, it creates the note according to the Templater template, perfectly. I add the Template File, and change nothing. "Folder" field is set to "/" root.

The expected result is: TemplaterCreateNote button is pressed in note "B" -> makes note "T" (templater note)-> note "T is placed in the same folder as note "B".
Currently, the result is: TemplaterCreateNote button is pressed in note "B" -> makes note "T" (templater note)-> note "T is placed in a newly created folder at root "/".

Which isn't, as that's what it is being told to do. But this button is a template for me, and will not always be in the same folder, so making a static Folder path is super inefficient.

I was able to find that if you go into the source note in the meta-bind-button code, you can delete the "folderPath:" property completely and it works as I expected it to. However, if I want to make a template button in the settings, the popup menu is not source code, and does not have a method to omit or "delete" the folder path for the new note. Again inefficient.

Describe the Feature you'd like

I would like the plugin to have a method to delete or omit the "Folder" path that new notes be placed in, through the popup editor menu. Placing the newly created note in the current folder where the note with the button resides.

Alternatives

Adding a variable or parameter that can be entered in the Folder Path Dialog to function the same. i.e. Similar to Folder Notes Plugin titling "{{folderName}} Overview" -> "{{currentFolder}}"

Additional Context

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the popup editor for TemplaterCreateNote and compare it with the meta-bind-button source representation, where folderPath can be omitted. Trace how the Folder field is handled when creating a button. Done when the popup editor can omit the Folder path so a new note is placed in the current folder, while fixed-folder behavior still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.