This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-06
Channels
- # babashka (19)
- # beginners (68)
- # calva (9)
- # cider (27)
- # clj-kondo (64)
- # clj-on-windows (2)
- # cljdoc (8)
- # clojure (11)
- # clojure-europe (58)
- # clojure-italy (1)
- # clojure-nl (23)
- # clojure-uk (5)
- # clojurescript (9)
- # cryogen (18)
- # cursive (14)
- # data-science (17)
- # emacs (6)
- # gorilla (6)
- # graphql (1)
- # gratitude (2)
- # holy-lambda (10)
- # introduce-yourself (1)
- # jackdaw (3)
- # jobs (1)
- # leiningen (2)
- # malli (3)
- # missionary (33)
- # off-topic (21)
- # pedestal (7)
- # polylith (8)
- # quil (3)
- # random (1)
- # releases (1)
- # remote-jobs (7)
- # shadow-cljs (18)
- # specter (1)
- # sql (8)
How can I edit the REPL history in Calva?
Not even manually? Like pointing me to the file where the history is stored. I have a lot of duplicate entries I want to remove
The history is stored in workspaceState, which is provided by the VS Code extension API: https://github.com/BetterThanTomorrow/calva/blob/d8033a5a3626adad3b40a42a436200fef75fda6f/src/results-output/repl-history.ts#L49. I’m not sure how to edit that, but it must be persisted somewhere since the history is retrievable after closing and reopening VS Code.
Info on workspaceState is here: https://code.visualstudio.com/api/references/vscode-api#ExtensionContext
I don’t see info there on how to modify it though, or know if it’s intended to be modifiable. Anyway, I think what might also solve your problem is if Calva deduplicated the history entries. Like if the history was [1 2 2] now, it could be [1 2] if deduplicated. However, it probably would only make sense to deduplicate entries next to each other. So [1 2], if 1 were added, would be [1 2 1].
The 44th marketplace review on Calva just in. It took me two minutes to dare open it. Would it be the first sub-5 rating? It wasn’t. It was the 44th five-star rating, and with a wonderful review message. “instrumental to my Clojure learning experience”. Wow, that is so much what we work for! I’m such a happy puppy now! ❤️ 🙏 https://marketplace.visualstudio.com/items?itemName=betterthantomorrow.calva&ssr=false#review-details
Also. A new Calva out, v2.0.214:
• https://github.com/BetterThanTomorrow/calva/issues/1001
• https://github.com/BetterThanTomorrow/calva/issues/1311
• Fix: https://github.com/BetterThanTomorrow/calva/issues/1310
• https://github.com/BetterThanTomorrow/calva/issues/1319
It’s pretty awesome to jack a bb or nbb REPL in to the file you have opened. Try it! Also thanks @ariel for upgrading deps.clj
! 🙏