mrjackphil / obsidian-text-expand

A simple text expand plugin for Obsidian.md
186 stars 12 forks source link

[BUG] Not work when search panel didn't placed in left panel #72

Open Devon22 opened 2 years ago

Devon22 commented 2 years ago

Hello, 0.11.2 doesn't seem to work. Rebooting or reinstalling doesn't help.

mrjackphil commented 2 years ago

@Devon22 Could you provide an error from "Console" tab in inspector (Ctrl+Shift+I) when you try to trigger a plugin? Also, which version of Obsidian do you use?

Devon22 commented 2 years ago

Obsidian v0.14.15


    at TextExpander.getSearchView (plugin:mrj-text-expand:629:108)
    at TextExpander.getSearchValue (plugin:mrj-text-expand:636:27)
    at TextExpander.saveLeftPanelState (plugin:mrj-text-expand:604:24)
    at TextExpander.eval (plugin:mrj-text-expand:539:18)
    at Generator.next (<anonymous>)
    at eval (plugin:mrj-text-expand:26:71)
    at new Promise (<anonymous>)
    at __awaiter (plugin:mrj-text-expand:22:12)
    at TextExpander.runTemplateProcessing (plugin:mrj-text-expand:532:16)
    at TextExpander.eval (plugin:mrj-text-expand:527:31)```
mrjackphil commented 2 years ago

@Devon22 Is there an actual error message at the top of the error stack?

Devon22 commented 2 years ago

Just found out that moving the search block back to the default position works. It doesn't work when moved to another location.

mrjackphil commented 2 years ago

Ouch... I forgot about it. Now I get it.

rywng commented 2 years ago

Hello, I got the same error, but the search bar is placed at the default location:

image

and the console doesn't show any error messages

Obsidian 0.15.6, Linux appimage version Text expand 0.11.2

mmdzt commented 1 year ago

To make it more specific: not work when search panel didn't placed in left up panel.

Here is an example, and this does not work

image
er1chu commented 1 year ago

Having this bug as well