Replies: 6 comments 5 replies
-
Thanks for the suggestion. I don't know enough about the consequences of using indexedDB within Obsidian to understand the proposal...
But I am very confident about this: there are plenty of simple, small, safe incremental refactorings that could be made to greatly simplify the current query code without needing a complete rewrite of the underlying code and adoption of new technology. I have held off making them because other PRs are in flight that make changes to the same areas of code. When we have a few days of stability with all recent PRs merged, I would love to go ahead and simplify the current code, to remove repetition and unify existing concepts. |
Beta Was this translation helpful? Give feedback.
-
I should have said that I do totally agree with your desire to simplify the code for query managing, by which I presume you mean for parsing instruction lines, executing the instructions, and testing the behaviour! |
Beta Was this translation helpful? Give feedback.
-
I would love to learn more about how this would work, what you have in mind... I don't even know what I don't know! :-)
Would data be stored in Obsidian's IndexedDB? If so, what kinds of data? Would it be local to each Obsidian install, or does it get shared via Obsidian Sync? Searching for indexeddb in all plugins, I see a bunch of uses. I can't see any jsstore references though. Which is fine, it just means I can't see any examples of use. |
Beta Was this translation helpful? Give feedback.
-
@schemar and @claremacrae I threw caution to the wind and hack the tasks plugin, I have a hard fork called task-x. However, this is now the query you can use. Needs a bit of cleanup but full SQL queries are now supported. I mostly implemented it so old and new works but made a ton of changes as I was playing do definitely not a single change type commit. https://github.com/sytone/obsidian-tasks-x has the code.
|
Beta Was this translation helpful? Give feedback.
-
Thank you! There's lots in here that's really exciting, and seeing concrete code definitely helps explain what you mean. |
Beta Was this translation helpful? Give feedback.
-
By hard fork, I presume you mean what you've done here, to give the plugin a new name and URL... Which is great for prototyping, and allowing both versions to be installed at once. In case it helps, I really hope that we can work together on this and avoid you needing a permanent hard fork! |
Beta Was this translation helpful? Give feedback.
-
So was looking at options to simplify the query management. Did you consider using indexeddb as a cache and then something like jsstore as the app on top. It using sql like query so we can just translate the existing query over to it.
Was considering a hard fork to do a prototype to accelerate task management in obsidian for me, but it is a larger rewrite and not sure if you want to take this approach long term in which case I will look at a potential fork of the plug-in.
Beta Was this translation helpful? Give feedback.
All reactions