Fork me on GitHub
#conjure
<
2020-05-10
>
dominicm09:05:32

There's a cider operation for redirecting that output

Olical10:05:20

I hope everyone's having an nice weekend 🙂 got a coffee ☕ going to work on ConjureSchool a little.

Olical11:05:20

I've pushed the first pass of :ConjureSchool if anyone wants to give it a go 😄 (on develop)

Nir Rubinstein12:05:41

A workflow question: So, up until now, I had a repl running and my vim and I've sent code from my vim to my repl (which was running in a terminal in another app). Is that flow still "encouraged" in Conjure? I mean, the log buffer show a lot of stuff, but if I just want to write some current repl session code and experiment a bit, do I do it inside vim or in the terminal repl? t If inside vim, can I do it without "dirtying" up the working buffer/file with code in comments and stuff like that?

Olical12:05:25

The workflow should be near enough identical to how it was with the previous version

Olical12:05:33

So whatever worked for you then should be fine now 😊

Olical12:05:49

I never type into a repl directly, I always interact with a buffer and conjure

Olical12:05:55

It's a much nicer experience imo

Olical12:05:07

No problem! Let me know if there's anything that isn't working great for you or could be improved!

Olical12:05:19

My list is getting long but I can always add things 😅

Nir Rubinstein12:05:28

For now it's close to magic IMHO

dharrigan15:05:36

For me, I always have a repl open and use that

dharrigan15:05:10

I don't quite like using vim as my repl, I like having a window (although, using i3, it's a scratch window, so it's hidden until I need it)

dharrigan15:05:20

I'm the opposite of Oliver 🙂

Nir Rubinstein16:05:56

@U11EL3P9U - that's the way I do it, even though it's been 4 years since I last used i3. I'm currently satisfying the need with a drop-down terminal (a-la guake)

dharrigan16:05:17

oh, i3 is the bees knees 🙂

dharrigan16:05:48

but yes, having a separate window for my repl works for me. I also use rebel readline to give nice completion etc on the repl.

Nir Rubinstein16:05:36

Hmmm. rebl - should take it for a spin...

dharrigan17:05:33

Just starting to look at ConjureSchool - but interrupted for dinner

dharrigan17:05:35

Grab yourself a nice beverage and get evaluating. I hope you enjoy!

dharrigan17:05:41

I would suggest a more passive voice

dharrigan17:05:56

Grab yourself a nice beverage and let's get evaluating. I hope you enjoy!

Olical18:05:24

Ah thanks! I prefer that, I'll tweak it soon

dharrigan18:05:34

Okay, also this:

dharrigan18:05:42

;; This language is Fennel, it's quite similar to Clojure.
;; Let's learn how to evaluate it using Conjure's assortment of mappings.
;; You can learn how to change these mappings with :help conjure-mappings

dharrigan18:05:03

I don't quite get it. You don't explain why fennel is the language to use here

dharrigan18:05:51

You simply say "This language is Fennel", and yes although it's similar to Clojure, why is being used here?

Olical18:05:20

Ah fair point, I shied away from it since I thought it'd be too much detail when you're only really there to learn the mappings

RafaMedina23:05:12

Question, it's not recognizing fnl, do I need setup something in the plugin? I'm trying to "run the code"

Olical10:05:52

Neovim has no support for Fennel until you install https://github.com/bakpakin/fennel.vim However, with ConjureSchool I attempted to detect when Fennel was missing and use Clojure for the syntax highlighting instead. Is that not working for you then? :thinking_face:

RafaMedina14:05:25

Oh, I was missing that plugin, now, I can evaluate the fnl files, thanks

Olical18:05:44

Tried to keep it as simple as possible, it'll get too wordy otherwise. I can add a little explanation though

dharrigan18:05:13

Just a sentence about why we're doing Fennel

dharrigan18:05:56

All results are appended to the log buffer, when you don't have the log open the HUD will appear. perhaps All results are appended to a log buffer. If that log is not open, the HUD will appear

dharrigan18:05:08

You introduce the log buffer, without first presenting it.

dharrigan18:05:42

I was wondering All results are appened to the log buffer -- I was thinking Where is this log buffer? I don't see it - is that thing that popped up it?

dharrigan18:05:52

it's the use of the the

dharrigan18:05:03

Try opening and closing the log window to get the hang of it now. -> Try opening and closing the log window to get the hang of those key bindings

dharrigan18:05:28

(btw, all I'm saying are simply suggestions, you are free of course to accept, reject, modify as you see fit, being the author! 🙂 )

dharrigan18:05:32

Won't hurt my feelings 🙂

dharrigan18:05:34

Feel free to leave it open in a split for the next lesson to see how it behaves. -> Feel free to leave it open in a split for the next lesson to see how the log behaves.

dharrigan18:05:52

or Feel free to leave the log open in a split for the next lesson to see how it behaves.

dharrigan18:05:21

It's good to reinforce the the subject in the sentence.

dharrigan18:05:25

Awesome! You evaluated the form under your cursor. -> Awesome! You evaluated the inner form under your cursor.

dharrigan18:05:40

This line you introduce outermost evaluation ;; If we want to evaluate the outermost form under our cursor, we can use <localleader>er instead.

dharrigan18:05:56

When it's evaluated you say ;; You evaluated the root form! Nice!

dharrigan18:05:26

I would keep it consistent - either say root form in both sentences, or outermost form

dharrigan18:05:31

;; We can also evaluate a form and replace it with the result of the evaluation with <localleader>e!
;; Try that in the next lesson below.
(school.lesson-4)

dharrigan18:05:52

;; We can also evaluate a form and replace it with the result of the evaluation with <localleader>e!
;; We'll try that in the next lesson below by place your cursor inside the form below and issuing <localleader>e!
(school.lesson-4)

dharrigan18:05:23

(not completely sure about that one...)

dharrigan18:05:10

Shouldn't this ;; Now move your cursor elsewhere in the buffer and use <localleader>em to evaluate it. be ;; Now move your cursor elsewhere in the buffer and use <localleader>emf to evaluate it.?

dharrigan18:05:21

(where f was the mark that was placed?)

dharrigan18:05:22

That's all for now 🙂

Eugene Tyurin22:05:26

How do people debug their code in conjure?

4