This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-05-19
Channels
- # announcements (3)
- # beginners (29)
- # biff (10)
- # calva (33)
- # cider (1)
- # clara (8)
- # clerk (10)
- # clj-kondo (6)
- # cljs-dev (5)
- # clojure (40)
- # clojure-dev (3)
- # clojure-europe (43)
- # clojure-gamedev (1)
- # clojure-nl (1)
- # clojure-norway (19)
- # clojure-uk (2)
- # clr (3)
- # cursive (12)
- # datomic (4)
- # devcards (3)
- # gratitude (3)
- # honeysql (13)
- # hoplon (25)
- # humbleui (3)
- # hyperfiddle (38)
- # malli (26)
- # pathom (38)
- # practicalli (2)
- # rdf (6)
- # reagent (8)
- # shadow-cljs (13)
- # xtdb (1)
Can I disable namespace aliased keyword suggestions in Cursive's auto-completion feature?
I have Datomic attributes, like :gini.user/persona
and I have (:require [gini.user :as gini-user])
, which contains logic related to our users.
This results in auto-completion only offering the ::gini-user/persona
as a candidate, which makes my datalog queries and pull expressions non-portable to other NSes, which doesn't define this NS alias.
In other words, I only use this alias for referencing functions, like gini-user/create
.
This helps Cursive to automatically require the namespace in the NS form, which wouldn't happen, if I just use gini.user/create
.
So, I don’t think so at the moment, no, but it’s a good idea. There’s also another fix I’ve got some work on waiting in a branch, which is to fully qualify elements when copying and then shortening them again when pasting. I assume it’s cutting and pasting between namespaces that is problematic for these keywords?
Ok, I’ll try to finish up the pasting issue first, since I think that’s the better solution. When that’s done, if it’s still annoying I’ll think about config for this.
We do copy-paste to Slack sometimes too, which then get pasted into my colleagues own REPL namespaces. It sounds like your proposed solution would handle this case well too! I would still like the non-aliased version being offered 1st, then the aliased, so the code does not have to change during copy-pasting.
This has bothered me for some time too. Would love to see it implemented
Can someone help this person with Cursive and REPLs, probably on Windows from the look of it, with Leiningen: https://www.reddit.com/r/Clojure/comments/13lceyo/im_having_the_same_problem_as_some_guy_had_like_3/
Saw your responses on Reddit -- thanks, @U0567Q30W!
No worries, I don’t like to RTFM but sometimes it’s just the best thing to do. I think they’ve just messed up the project setup somehow.
Yeah, that looked a bit suss to me (and I'm not familiar with IntelliJ)...