Fork me on GitHub
#conjure
<
2021-05-23
>
GitHub06:05:56

[Olical/conjure] Issue opened by frenchy64

Olical14:05:02

Automatic babashka nrepl jack-in is working on develop! https://asciinema.org/a/415758 you can configure it to start any kind of nREPL, see the help text for more info if you need that.

3
👍 6
🙌 3
Olical14:05:15

You can basically open any .clj and evaluate immediately now.

Olical14:05:24

(if it's supported within bb)

dave15:05:25

Oh man. That's exciting!

dave15:05:38

One could add something like my vims (mnemonic: "vim scratch") function to their bashrc and use it to easily open a throwaway .clj file in /tmp and experiment right away with Conjure via bb.

vims() {
  local ext="${1-adoc}"
  vim "/tmp/scratch-$(date '+%Y%m%d%H%M%S').$ext"
}

# usage:
# vims     # opens /tmp/scratch-20210523115453.adoc in Neovim
# vims clj # opens /tmp/scratch-20210523115523.clj in Neovim

uwo14:05:22

Thanks!!! stolen!

dave15:05:34

I actually use Fish shell -- I translated it to Bash above because I figured it would be helpful for a larger group of people 🙂 Here's the Fish version that I actually use, for those of us who might be using Fish:

function vims
  set -l ext "adoc"

  if test (count $argv) -gt 0
    set ext $argv[1]
  end

  vim /tmp/scratch-(date '+%Y%m%d%H%M%S').$ext
end

dharrigan16:05:05

A slight variation on the theme

dharrigan16:05:29

function vimbb() {
    vim $(mktemp --suffix=".clj")
}

💡 3
dharrigan16:05:47

you should have mktemp on your OS too 🙂

dharrigan16:05:10

this should work too

dharrigan16:05:04

vims() {
  vim $(mktemp --suffix=${1:-.adoc})
}

dharrigan16:05:41

Just tried out the bb auto nrepl

dharrigan16:05:44

pretty awesome 😉

🎉 3
GitHub19:05:02

[Olical/conjure] Issue closed by frenchy64