This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-06-03
Channels
- # announcements (6)
- # babashka (14)
- # beginners (17)
- # biff (3)
- # calva (19)
- # circleci (3)
- # clj-on-windows (1)
- # cljdoc (21)
- # cljs-dev (6)
- # clojure (119)
- # clojure-australia (2)
- # clojure-europe (28)
- # clojure-france (3)
- # clojure-norway (12)
- # clojure-survey (2)
- # clojure-uk (7)
- # clojurescript (25)
- # core-typed (1)
- # cursive (11)
- # datomic (53)
- # emacs (14)
- # events (1)
- # gratitude (1)
- # holy-lambda (21)
- # integrant (2)
- # jobs (1)
- # jobs-discuss (3)
- # juxt (3)
- # kaocha (1)
- # lsp (17)
- # nbb (14)
- # off-topic (25)
- # pathom (11)
- # re-frame (24)
- # releases (1)
- # remote-jobs (2)
- # rewrite-clj (10)
- # shadow-cljs (11)
- # sql (3)
- # tools-build (6)
- # tools-deps (83)
- # vim (26)
- # xtdb (10)
https://pathom3.wsscode.com/docs/indexes/#index-io > This is a good index to create auto-complete features in editors for Pathom integration. Any examples of this in the wild yet?
this is what Pathom Viz uses
Thanks @U066U8JQJ. Do you know of any cases of someone integrating the index in an editor or IDE?
not yet, but I've considered in the past, would be awesome for example to have contextual auto-complete when writing the query part of Fulcro components
also, there is this simpler version if you don't care about nested possibilities: https://github.com/wilkerlucio/pathom3/blob/bda89b7e437454320d1fc446a63b6585485fdc1c/src/main/com/wsscode/pathom3/connect/indexes.cljc#L329-L346
That's good, I didn't know about that second fn. I'm thinking of adding some custom Reveal actions to make Pathom-based data exploration possible by clicking around in the Reveal window.
Integration right in the editor would be nice too, my vimscript just isn't strong enough to pull that off, I don't think. Adding Pathom awareness to Reveal might be a low hanging fruit.
@UPWHQK562 an interesting option with Reveal/Portal is to use the Datafy API, Pathom Smart Maps have native support for it, so if you log a smart map, you can use the clojure Nav protocol (which is supported by Reveal) to navigate though the data
I made a video about it a long time ago: https://www.youtube.com/watch?v=n_MJOKEqqnM
@U066U8JQJ very cool. I'll try it out. I guess I missed it in the https://pathom3.wsscode.com/docs/smart-maps/#datafy.