mrjackphil / obsidian-text-expand

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

Expanding Query Doesn’t Work in Reading View #90

Open ShyamGadde opened 11 months ago

ShyamGadde commented 11 months ago

I noticed that the plugin doesn’t expand the query when I try to do so in the reading view. It only works in the source view and preview mode. I’m not sure if this is a limitation or a bug specific to my Obsidian instance, possibly due to conflicts with other plugins. I couldn’t find any relevant information in the developer console either. Additionally, I was wondering about the purpose of having the “Run expand query” button in the reading view if it doesn’t work there. This made me suspect that there might be something wrong with my Obsidian instance or some settings. I would greatly appreciate it if someone could help me resolve this issue.

mrjackphil commented 11 months ago

@ShyamGadde you're right it works only on source or live mode. For now, at least.

ShyamGadde commented 11 months ago

Ok, got it. By the way, I was wondering if the feature I requested is on the roadmap for development. I understand that plugin development for Obsidian might be challenging, but I noticed that the QuickAdd plugin is able to update pages even in Reading Mode. If you’re busy, perhaps I could work on developing that feature myself? I’m not familiar with Obsidian plugin development, but I’m willing to give it a try!

mrjackphil commented 11 months ago

@ShyamGadde I'm working on it when Im able. Which is not much last year.

So I encourage you to try to bring this functionality yourself. PR are always welcome.

The main difference with reading mode - you can't imitate user's behavior and use source/live editor API as far as I remember. But it might be my misconception.

Anyway it should be doable at least by reading current file and making changes there but it might be trickier.