obsidian-text-expand icon indicating copy to clipboard operation
obsidian-text-expand copied to clipboard

Expanding Query Doesn’t Work in Reading View

Open ShyamGadde opened this issue 2 years ago • 3 comments

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.

ShyamGadde avatar Sep 23 '23 06:09 ShyamGadde

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

mrjackphil avatar Sep 23 '23 10:09 mrjackphil

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!

ShyamGadde avatar Sep 23 '23 13:09 ShyamGadde

@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.

mrjackphil avatar Sep 24 '23 05:09 mrjackphil