conjure

:neovim:+:clj: https://github.com/Olical/conjure - If you're enjoying Conjure and want to say thanks: https://github.com/users/Olical/sponsorship :smile: (alt https://conjure.fun/discord)
2021-05-23T06:50:56.034900Z

[Olical/conjure] Issue opened by frenchy64

Olical 2021-05-23T14:01:02.035600Z

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.

👍 2
🙌 1
1
Olical 2021-05-23T14:01:15.036Z

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

Olical 2021-05-23T14:01:24.036200Z

(if it's supported within bb)

dave 2021-05-23T15:49:25.036900Z

Oh man. That's exciting!

dave 2021-05-23T15:55:38.038700Z

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

2021-05-28T14:24:22.088900Z

Thanks!!! stolen!

dave 2021-05-23T15:56:34.039700Z

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

dharrigan 2021-05-23T16:39:05.040Z

A slight variation on the theme

dharrigan 2021-05-23T16:39:29.040400Z

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

💡 1
dharrigan 2021-05-23T16:39:47.040700Z

you should have mktemp on your OS too 🙂

dharrigan 2021-05-23T16:41:10.040900Z

this should work too

dharrigan 2021-05-23T16:42:04.041300Z

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

dharrigan 2021-05-23T16:42:41.041500Z

Just tried out the bb auto nrepl

dharrigan 2021-05-23T16:42:44.041700Z

pretty awesome 😉

🎉 1
2021-05-23T19:48:02.042Z

[Olical/conjure] Issue closed by frenchy64