You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Since the last update, this script replaces the content in the note "advanced research notes search.md" with whatever note is open at the time I trigger the script via command palette:
It seems that even if the "await" is required before app.workspace.getLeaf, replacing content is not what should happen here. It could be that the other plugin is to blame but it's odd that it works in Templater with "await" but not without.
Expected behavior
Previously, the script without "await" worked to open "advanced research notes search.md" in a super focus mode.
The text was updated successfully, but these errors were encountered:
erazlogo
changed the title
bug: a script replaces content in a note if a step is called without "await"
bug: app.workspace.getLeaf(false).openFile() replaces content in a note if a step is called without "await"
May 25, 2024
erazlogo
changed the title
bug: app.workspace.getLeaf(false).openFile() replaces content in a note if a step is called without "await"
bug: app.workspace.getLeaf(false).openFile() replaces content in a note if called without "await"
May 25, 2024
erazlogo
changed the title
bug: app.workspace.getLeaf(false).openFile() replaces content in a note if called without "await"
bug: app.workspace.getLeaf().openFile() replaces content in a note if called without "await"
May 25, 2024
Plugin information (please complete the following information):
Describe the bug
Since the last update, this script replaces the content in the note "advanced research notes search.md" with whatever note is open at the time I trigger the script via command palette:
This script--"await" added before app.workspace.getLeaf--works as intended, opening "advanced research notes search.md" in a super focus mode:
It seems that even if the "await" is required before app.workspace.getLeaf, replacing content is not what should happen here. It could be that the other plugin is to blame but it's odd that it works in Templater with "await" but not without.
Expected behavior
Previously, the script without "await" worked to open "advanced research notes search.md" in a super focus mode.
The text was updated successfully, but these errors were encountered: