Run roam-toolkit over roam/js
Stvad opened this issue · 8 comments
You can run it now via the following roam/js snippet: (How to use roam/js)
var s = document.createElement('script')
s.type = "text/javascript"
// Version with all features enabled
// s.src = "https://roam-toolkit.glitch.me/entry.js"
// Version with Spatial Mode & Live preview disabled
s.src = "https://roam-toolkit.glitch.me/no_preview_spatial.js"
s.async = true
document.getElementsByTagName('head')[0].appendChild(s)
Known issues:
- no access to settings ui
- It's likely there are a bunch of unknown issues :p
Would it be possible to add settings to the roam/js version somehow? I absolutely love the Roam Toolkit SRS but am not a VIM user and would like to turn it off. I've been using the extension for a long time and would love to keep using it in Roam desktop (which lacks extension support).
You can run it now via the following roam/js snippet: (How to use roam/js)
var s = document.createElement('script') s.type = "text/javascript" // Version with all features enabled // s.src = "https://roam-toolkit.glitch.me/entry.js" // Version with Spatial Mode & Live preview disabled s.src = "https://roam-toolkit.glitch.me/no_preview_spatial.js" s.async = true document.getElementsByTagName('head')[0].appendChild(s)Known issues:
- no access to settings ui
- It's likely there are a bunch of unknown issues :p
@Stvad, how did you build the code that's displayed there? I'm wanting to build my own version which I can host, so that I can then change the settings I want.
@RobertKirk See roam-js
branch. It removes the dependencies incompatible with running in roam-js, then do normal build as described in contribution guide and use the resulting content script
@Stvad thanks a lot!
@RobertKirk Did you end up building a version without VIM mode activated? If so, would you share the .js script?
I wanted vim mode activated, but I haven't gotten around to it, sorry.