Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meta-bind-button is putting new files in a created Extras folder rather than specified folder #491

Open
4 of 8 tasks
pantsmasterson opened this issue Jan 7, 2025 · 1 comment
Labels
bug Undesired behavior caused by this plugin

Comments

@pantsmasterson
Copy link

pantsmasterson commented Jan 7, 2025

Please fill out these Check-boxes

  • I checked for existing similar issues
  • I checked that the plugin is up to date
  • The issue persists with all other plugins and themes disabled

Plugin Version

1.2.5

This Issue Occurs on

  • Windows
  • Linux
  • macOS
  • Android
  • iOS

Debug Info

SYSTEM INFO:
	Obsidian version: v1.7.7
	Installer version: v1.7.7
	Operating system: Windows 11 Pro 10.0.26100
	Login status: logged in
	Language: en
	Catalyst license: none
	Insider build toggle: off
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: off
	Plugins installed: 11
	Plugins enabled: 11
		1: Meta Bind v1.2.5
		2: Templater v2.9.1
		3: Advanced Tables v0.22.1
		4: Daily Stats v1.0.4
		5: Dataview v0.5.67
		6: Folder notes v1.7.32
		7: Homepage v4.0.7
		8: Kanban v2.0.51
		9: Longform v2.0.7
		10: Mononote v1.2.2
		11: Tasks v7.14.0

RECOMMENDATIONS:
	Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

Describe the Issue

I have used the Meta Bind plugin to create a New People button to create people files in Obsidian per Dan Berg's "Obsidian People Note" approach.

I have created a "People" folder at the top level of my vault.

Using the following code:

`meta-bind-button
label: New People Note
icon: ""
hidden: false
class: ""
tooltip: ""
id: ""
style: default
actions:

  • type: templaterCreateNote
    templateFile: Templates/Template, People.md
    folderPath: People
    fileName: Enter Name Here
    openNote: true
    openIfAlreadyExists: true`

New notes are not created in the "People" folder at the top level of the vault, but in a folder "Extras / People." If the Extras folder is deleted, Meta Bind re-creates the Extras folder.

I have attempted to use a sub-folder (People/Peeps -- still creates in Extras). I have tried adding a trailing slash after folderPath: People/ (Error while running action, check console for details).

Console error when trying the trailing slash:

plugin:obsidian-meta-bind-plugin:52 meta-bind | ButtonMDRC >> error while running action Error: Folder not found: People/ at vy.createNoteWithTemplater (plugin:obsidian-meta…nd-plugin:130:15013) at Cd.runTemplaterCreateNoteAction (plugin:obsidian-meta…ind-plugin:52:84408) at async Cd.runAction (plugin:obsidian-meta…ind-plugin:52:82704) at async Cd.runButtonActions (plugin:obsidian-meta…ind-plugin:52:80848) at async onclick (plugin:obsidian-meta…ind-plugin:75:14157) at async HTMLButtonElement.SW (plugin:obsidian-meta…ind-plugin:75:12650)

Steps to Reproduce

  1. Create a People folder at the top level of an Obsidian vault.

  2. Create a button in Meta Bind using the following code:

`meta-bind-button
label: New People Note
icon: ""
hidden: false
class: ""
tooltip: ""
id: ""
style: default
actions:

  • type: templaterCreateNote
    templateFile: Templates/Template, People.md
    folderPath: People
    fileName: Enter Name Here
    openNote: true
    openIfAlreadyExists: true`
  1. Use the New People Note button to create a new people note. The note will be created in Extras / People rather than a pre-existing People folder.

Expected Behavior

Create the new people note in the top-level "People" folder, rather than create a top-level "Extras" folder, then a "People" subfolder, and put the people files in that folder.

@pantsmasterson pantsmasterson added the bug Undesired behavior caused by this plugin label Jan 7, 2025
@mProjectsCode
Copy link
Owner

The folder is created by templater iirc. Maybe you have some setting in Templaters settings set that causes this behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Undesired behavior caused by this plugin
Projects
None yet
Development

No branches or pull requests

2 participants