This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-10-12
Channels
- # aleph (61)
- # announcements (2)
- # babashka (65)
- # beginners (64)
- # calva (2)
- # clerk (1)
- # cljsrn (1)
- # clojure (60)
- # clojure-austin (7)
- # clojure-europe (13)
- # clojure-italy (2)
- # clojure-losangeles (4)
- # clojure-nl (2)
- # clojure-norway (94)
- # clojure-romania (2)
- # clojure-uk (7)
- # clojuredesign-podcast (5)
- # clojurescript (3)
- # core-typed (2)
- # datomic (42)
- # docker (24)
- # emacs (10)
- # exercism (50)
- # graphql (83)
- # honeysql (25)
- # hyperfiddle (12)
- # malli (13)
- # membrane (49)
- # off-topic (50)
- # podcasts-discuss (1)
- # re-frame (3)
- # reagent (12)
- # reitit (5)
- # releases (2)
- # remote-jobs (8)
I'm using Vertico and Orderless with orderless-prefixes
so was hoping to match matvaretabellen.ingest
with query mat in
or
, but it seems like .
is not treated as a word boundary in this case. Any ideas what I'm doing wrong, or how I can fix it?
Turns out this is only the case in my CIDER REPL, for some reason. I'll investigate further.
I don’t think CIDER and orderless play nicely together. Are you aware of the issues described in https://github.com/oantolin/orderless/issues/89 and https://github.com/clojure-emacs/cider/issues/3019 ?
https://github.com/clojure-emacs/cider/commit/7e68df2bf930f9ea577ffa76172a0b00ff391fe3 hopefully made things clearer than they were before. They way forward to actually use orderless would be to pick up this snippet, or some variation https://github.com/clojure-emacs/cider/issues/3019#issuecomment-1029553163 and productionize it
(we also have https://github.com/clojure-emacs/cider/pull/3509 in transit)
works super nice for me:
(defun mm/cider-complete-at-point ()
"Complete the symbol at point."
(when (and (cider-connected-p)
(not (cider-in-string-p)))
(when-let*
((bounds
(bounds-of-thing-at-point
'symbol))
(beg (car bounds))
(end (cdr bounds))
(completion
(append
(cider-complete
(buffer-substring beg end))
(get-text-property
(point)
'cider-locals))))
(list
beg
end
(completion-table-dynamic
(lambda (_) completion))))))
(advice-add 'cider-complete-at-point :override #'mm/cider-complete-at-point)