This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # announcements (11)
- # aws (5)
- # babashka (69)
- # beginners (138)
- # calva (5)
- # cider (11)
- # cljsrn (3)
- # clojure (86)
- # clojure-europe (8)
- # clojure-italy (2)
- # clojure-nl (5)
- # clojure-norway (13)
- # clojure-uk (21)
- # clojurescript (13)
- # conjure (58)
- # core-typed (2)
- # data-science (2)
- # datomic (5)
- # degree9 (4)
- # emotion-cljs (4)
- # figwheel-main (8)
- # fulcro (29)
- # graalvm (70)
- # interop (2)
- # joker (1)
- # lein-figwheel (2)
- # leiningen (13)
- # liberator (4)
- # off-topic (21)
- # pedestal (2)
- # re-frame (10)
- # shadow-cljs (42)
- # spacemacs (29)
- # spire (1)
- # tools-deps (11)
- # vim (26)
- # xtdb (5)
https://clojurians.slack.com/archives/CK143P6D7/p1592061883212600 i gave this a try this morning on a whim, and i like it! it's something i didn't know that i would want, but now that it's here, i totally want it
i didn't realize it, but without this feature, i had developed a habit of avoiding moving my cursor immediately after evaluating something. now i can eval something and then feel free to keep moving, which feels liberating
Ooo that’s great to hear! Thanks for the feedback! Still not sure about turning it on by default (99% sure no) but glad you like it!
Let me know if you see any weird race condition things where it closes when it shouldn’t or something
i'm trying to test using AnsiEsc in the conjure HUD now, but having trouble getting it to do the thing
i see that i need to run
:AnsiEsc manually to get it to interpret the ANSI escape codes, but i think i would need to have the HUD focused in order to do that, right? and i can't seem to focus the HUD
my setup is that i'm using the clojure.term.colors package,
(require '[clojure.term.colors :as term])
and then i'm running
(println (term/red "hey")) which should print they word "hey" in red
It applies to the buffer, not the window, and the HUD is just a small window onto the buffer
Would I be able to get this code as text? Will be useful in stress testing my hacky AnsiEsc fork!
(doseq [color (keys term/*colors*) :let [color-fn (ns-resolve 'clojure.term.colors (symbol (name color)))]] (println (color-fn color)) (println (term/bold (color-fn (str "bold " color)))))
oh hey, it looks like it does a bunch more stuff too: https://github.com/trhura/clojure-term-colors
i haven't even tried the fancier stuff, like FG vs. BG colors, blinking text (wat?), underlining
it seems like there are some minor kinks to work out with some of the bold escape sequences though
I know some of the colouring bleeds into other things, haven’t worked that out yet… it’s to do with vim syntax contains and containedin logic I think :thinking_face:
It was like a two hour hack on top of an existing plugin, so could definitely be improved furhter!
Hmmmm interesting. Although I can’t think of any other vimmy things that work like this :thinking_face: going to replace the config system with a simple vim table soon anyway.
When setting a conjure config variable, does it write into a config file (which you’ve implicitly confirmed as no)
Hmm that only existed because Conjure ran a JVM that needed configuring. Now it's all in nvims process that config should be done in the nvim way, which is g:... variables... I think. I don't know another plugin that uses it's own config file and syntax :thinking_face: if I did anything like this again it wouldn't be edn.
I kinda want to say "here's the value you need to set, do that where you normally do for all plugins"
As soon as it’s released I’m planning on adding backwards compatible support for these things. I think I will have to make some small changes, I don’t think they use the same op names and arguments? If they do it’ll work out of the box.
Yeaaah, it's worse than it seems. The problem with my error handling system there is that it doesn't show the stack trace. So I just had to find it through intuition and knowledge of the code, I won't be so lucky next time.