Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run roam-toolkit over roam/js #164

Open
Stvad opened this issue Oct 2, 2020 · 8 comments
Open

Run roam-toolkit over roam/js #164

Stvad opened this issue Oct 2, 2020 · 8 comments

Comments

@Stvad
Copy link
Member

Stvad commented Oct 2, 2020

#133 has some initial investigations/thoughts

@Stvad
Copy link
Member Author

Stvad commented Nov 29, 2020

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

@cansar
Copy link

cansar commented Jun 2, 2021

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

@Stvad
Copy link
Member Author

Stvad commented Jun 3, 2021 via email

@RobertKirk
Copy link

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.

@Stvad
Copy link
Member Author

Stvad commented Apr 26, 2022

@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

@RobertKirk
Copy link

@Stvad thanks a lot!

@mharmel
Copy link

mharmel commented Oct 7, 2022

@RobertKirk Did you end up building a version without VIM mode activated? If so, would you share the .js script?

@RobertKirk
Copy link

I wanted vim mode activated, but I haven't gotten around to it, sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants