Fork me on GitHub
#portal
<
2021-12-16
>
djblue05:12:32

https://github.com/djblue/portal/releases/tag/0.18.2 to fix an issue related to the last release where vega viewers were used incorrectly, sorry for any issues this may have caused.

seancorfield05:12:02

@djblue Remember we talked about showing web pages in the hiccup viewer and them not picking up stylesheets etc? I think that's because it's trying to render a full page -- rather than just the body -- inside a webview. I've backed off the auto-rendering of URLs to HTML now and display just the URL, then I copy it and show the Simple Browser (and paste the URL into the popup). Doc pages render just fine in the Simple Browser.

seancorfield05:12:33

In theory, an extension should probably be able to run the simpleBrowser.open command passing a string argument for the URL and that could short circuit that copy'n'paste. Is that something you think you could have Portal do as a command for a string that looks like a URL?

djblue06:12:48

I like this idea of going from portal back into your editor :thinking_face: However, I don't think I want to hardcode this specific example but what would a more general interface which includes other editors (emacs/cursive) look like?

djblue06:12:55

I could add an api function that would allow you to execute commands in your editors runtime :thinking_face:

djblue06:12:31

(defn open-url [url]
  (portal.api/editor-exec "simpleBrowser.open" (str url)))

djblue06:12:49

Then you would have the full power of your runtime + editor commands to do anything

seancorfield07:12:55

Ah, good point, Portal needs to work with more than VS Code.

seancorfield07:12:13

Does IntelliJ have the same concept?

Lukas Domagala12:12:07

uh, I really like the idea of using portal as a bridge into the IDE, that might make me switch to the IDE plugin. There were a few small things I wanted to do as vscode extensions, but it always seems like it’s too much trouble. Using portal as a bridge between the repl and the IDE seems like a natural way to do it and might be more general than using calva directly.