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

[BUG] Plugin Doesn't Have Option to Create an Empty File, Thus Ignores Templater Folder Rules #77

Closed
gwillcox-r7 opened this issue Jul 7, 2022 · 1 comment

Comments

@gwillcox-r7
Copy link

Problem description:

Problem:

When using Shift+ENTER to create a new note after searching for things in Omnisearch, the tool does not respect Templater plugin's settings for the template to use when creating a new note, and instead just creates its own note with its own format.

For example if I search for Testing Notes and then press SHIFT+ENTER to make a new note in the / directory I get this:

image

However if I look at Templater plugin's settings you'll notice I have a Folder Template setting to make it use Templates/New Note Template.md when creating a new file inside the / directory:

image

I'm guessing this is occurring since the description for this plugin notes the file must be empty for the Templater plugin to kick in, and since this file is created with a header containing the file name, its not kicking in.

This wouldn't be a problem if there was a way to disable this behavior but it seems that the plugin doesn't expose such an option.

Console logs:

loading FileExplorerNoteCount
plugin:dataview:20361 Dataview: version 0.5.41 (requires obsidian 0.13.11)
plugin:obsidian-kindle-plugin:16 Kindle Highlights plugin: loading plugin 7/7/2022, 10:52:40 AM
plugin:obsidian-kindle-plugin:16 Omnisearch - indexing 1199 notes
plugin:obsidian-kindle-plugin:16 Dataview: all 1199 files have been indexed in 6.976s (658 cached, 0 skipped).
plugin:obsidian-kindle-plugin:16 Omnisearch - Indexed 1199 notes in 9366ms
plugin:obsidian-kindle-plugin:16 Dataview: Dropped cache entries for 119 deleted files.
DevTools failed to load source map: Could not load content for app://obsidian.md/main.js.map: System error: net::ERR_FILE_NOT_FOUND

Your environment:

  • Omnisearch version: 1.3.2
  • Obsidian version: 0.15.4
  • Operating system: Windows 11
  • Number of notes in your vault (approx.): 1200
  • Other plugins that may be related to the issue: Templater
@gwillcox-r7 gwillcox-r7 changed the title [BUG] Plugin Doesn't Have Option to Create NonEmpty File, Thus Ignores Templater Folder Rules [BUG] Plugin Doesn't Have Option to Create an Empty File, Thus Ignores Templater Folder Rules Jul 7, 2022
@gwillcox-r7
Copy link
Author

Thanks for the quick turn around on this @scambier!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant