This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-05-23
Channels
- # announcements (19)
- # babashka (6)
- # beginners (47)
- # cljs-dev (4)
- # cljsrn (3)
- # clojure (18)
- # clojure-australia (3)
- # clojurescript (50)
- # code-reviews (1)
- # conjure (16)
- # datomic (6)
- # editors (4)
- # emacs (1)
- # fulcro (10)
- # graphql (3)
- # helix (7)
- # jackdaw (10)
- # malli (1)
- # off-topic (3)
- # pathom (4)
- # sci (2)
- # shadow-cljs (39)
- # testing (3)
- # tools-deps (5)
- # vscode (1)
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
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
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