Open LvShuaiChao opened 3 years ago
No quanta store
quanta
is not a database, but each of those remnote-...
databases should have an object store called quanta
.
I actually have found a method to further automate the database selection which is not pushed yet. This finds the database name for the currently opened Knowledge Base:
function getSettings() {
return {
DATABASE_NAME: `remnote-${currentKnowledgeBaseId()}`,
DATABASE_VERSION: 28,
SMART_REM_PREFIX: ">>>"
};
}
Can you use smart REM now?
quanta
is not a database, but each of thoseremnote-...
databases should have an object store calledquanta
.I actually have found a method to further automate the database selection which is not pushed yet. This finds the database name for the currently opened Knowledge Base:
function getSettings() { return { DATABASE_NAME: `remnote-${currentKnowledgeBaseId()}`, DATABASE_VERSION: 28, SMART_REM_PREFIX: ">>>" }; }
This is the case after my operation. Is this step normal?
Looks good to me. The first and third error are not from smart rem. They must be from other user scripts you installed.
The second error d3 is not defined
is a race condition that I had fixed here: https://gist.github.com/hannesfrank/d241e10d3fff32068bc9b60253d58371#file-smart-rem-user-js-L1274
But there were a few other issues due to recent markup changes in RemNote. I patched them as best as I could and the above gist works for me now again.
Just tested with violentmonkey. It works for me so I don't know how to help you. Did you reload remnote after installing the script? What is shown in the console after you installed the script?
There are only 2 more things to keep in mind:
lnotes
in the web version. But the desktop app
DATABASE_NAME: `remnote-${currentKnowledgeBaseId()}`,
is more likely to work.
As you suggested, after I change the name of the database and refresh remnote with Ctrl + R, the script will work. But I still have some small problems
Every time I press Ctrl + enter, I always convert REM to todo rem. do you have this problem?
That is a shortcut of RemNote, so a feature, not a bug 😄
"> >" = will automatically become "> > ≥"
Yes, I made the calculator before these shortcodes got implemented 😉 I updated the matcher to include the space you tried (this line), but I'm not going spend too much time fixing stuff since most things are far to hacky anyway (just proof of concepts aka basically useless 😛) and the new plugin system is already in development.