This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-14
Channels
- # adventofcode (36)
- # announcements (5)
- # atom-editor (2)
- # babashka (19)
- # beginners (98)
- # biff (7)
- # calva (25)
- # cider (1)
- # cljdoc (10)
- # clojure (70)
- # clojure-czech (1)
- # clojure-dev (14)
- # clojure-europe (79)
- # clojure-nl (1)
- # clojure-norway (8)
- # clojure-seattle (3)
- # clojure-uk (2)
- # clojurescript (28)
- # community-development (44)
- # core-typed (3)
- # cursive (2)
- # datalevin (5)
- # datascript (5)
- # datomic (1)
- # dev-tooling (12)
- # emacs (14)
- # honeysql (3)
- # humbleui (11)
- # introduce-yourself (1)
- # java (1)
- # kaocha (1)
- # lsp (3)
- # malli (21)
- # matcher-combinators (2)
- # nbb (7)
- # off-topic (15)
- # portal (12)
- # reitit (4)
- # releases (1)
- # shadow-cljs (59)
- # sql (8)
- # tree-sitter (3)
Can I open the file for some data that has file metadata? Like I have for evaluation results when using the nrepl middleware.
Is it possible to make VS Code's keybinding work? I somehow thing it is, but it was a while since I did any webview work.
Currently this isn't supported, but it would be nice to leverage vscode key bindings in portal, just not sure how to do so or what it would look like.
Do we have access to the window
or document
of the WebView? Seems likely that standard browser semantics would come into play here.
window.addEventListener('keydown', event => {
// handle event
})
This looks promising for the case you want a keybinding to reach the WebView that would otherwise be captured by Code first. https://stackoverflow.com/questions/52142903/are-there-any-contexts-when-specified-webview-panel-is-active-in-vscode-extensio
I think the issue here is more around allowing configuration of portal shortcuts via vscode
That is what I was referring to though. Offering a possible direction of thought regarding "not sure how to do so or what it would look like."
Portal is running in a WebView, right? Does VS Code offer a direct connection between VS Code shortcuts and behaviors in a WebView? I have no idea. If so, great! Work on that.
But I suspect that a WebView is mostly its own little island. If so, it would likely require the same process of listening for and responding to a KeyboardEvent
that you would use in a browser.