This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-07
Channels
- # announcements (6)
- # babashka (17)
- # beginners (72)
- # calva (27)
- # cider (26)
- # circleci (6)
- # clj-kondo (35)
- # cljdoc (3)
- # clojure (22)
- # clojure-australia (2)
- # clojure-dev (45)
- # clojure-france (2)
- # clojure-italy (2)
- # clojurescript (60)
- # conjure (16)
- # cursive (8)
- # datahike (10)
- # datascript (1)
- # datomic (3)
- # emacs (5)
- # fulcro (16)
- # graalvm (4)
- # honeysql (1)
- # joker (10)
- # luminus (3)
- # malli (7)
- # off-topic (28)
- # pathom (4)
- # pedestal (2)
- # polylith (1)
- # re-frame (6)
- # reagent (9)
- # reveal (4)
- # shadow-cljs (48)
- # slack-help (1)
- # tools-deps (30)
- # vim (24)
Using and appreciating the new comment form bindings Olical! Good call to add teh full motion support
I just realised I didn't add vim-repeat support for things like <prefix>Ea)
etc, not sure how easy or essential that is but still :thinking_face:
I actually have no idea how you'd capture the keys used in a motion following <prefix>E...
, or if it's possible at all.
It mostly is to help often repeated actions, such as evaling a form, which already is sooo handy 🙂
Yeah, I would love to make it so <prefix>E[some clever motion]
was repeatable, but I just don't know how you'd do that with vim, like, no idea. I can't think of a way to get vim to give me that, all I get is some vague idea of "was the selection character or line wise and where does it start and end", not the characters that defined that range.
Anyone know of a good guide step-by-step guide for setting up a shadow-cljs REPL for a :target :node-script
environment? The shadow-cljs docs are pretty terse and I feel like I'm missing something. So far I can connect via :ConjureConnect 7001
but only to a plain Clojure REPL that doesn't understand shadow-cljs stuff like (ns my-ns (:require ["fs" :as fs]))
.
OK, I got it working by starting the shadow watch/REPL manually from within a plain clj-repl
. That is, instead of:
npx shadow-cljs watch app
I did:
$ shadow-cljs clj-repl
shadow-cljs - config: /home/tamayo/projects/media-player/server/shadow-cljs.edn
shadow-cljs - connected to server
shadow-cljs - REPL - see (help)
To quit, type: :repl/quit
shadow.user=> (shadow/watch :app)
[:app] Configuring build.
[:app] Compiling ...
[:app] Build completed. (56 files, 55 compiled, 0 warnings, 8.63s)
:watching
shadow.user=> (shadow/repl :app)
> [:app] Compiling ...
[:app] Build completed. (56 files, 1 compiled, 0 warnings, 0.05s)
>
per https://shadow-cljs.github.io/docs/UsersGuide.html#_nrepl_usage.I think you're only missing the final "select" step as documented in the wiki https://github.com/Olical/conjure/wiki/Quick-start:-ClojureScript-(shadow-cljs)#connect-and-select :thinking_face:
So you set up your shadow-cljs nREPL server / build.
Then you connect Conjure to it (which gives you a regular Clojure REPL, kind of the meta shadow REPL that lets you hop into other things)
Then you use ConjureShadowSelect [build name]
to switch that nREPL session over to your CLJS build and hook it up to your JS environment, such as your browser. All that Conjure command does is send the shadow-cljs build select code for you.