Fork me on GitHub
#clojurescript
<
2018-12-26
>
Kelly Innes00:12:00

Not sure whether there's a ClojureScript adapter for this but PouchDB is a niceish clientside NoSQL db for JS.

borkdude12:12:42

what’s a lightweight thing to use to enable automatic paren closing and highlighting for ClojureScript in a simple app. I’m considering it for http://re-find.it

borkdude12:12:44

probably codemirror then

mattly18:12:32

I’ll second parinfer

borkdude19:12:11

@souenzzo @mattly is this a thing independent from codemirror or do I use https://github.com/shaunlebron/parinfer-codemirror?

souenzzo20:12:51

I think that the parinfer "raw" library has a function that turn a string into a string. what you can use onChange.

borkdude20:12:05

a string into a string?

mattly19:12:24

Probably the latter

mattly19:12:58

Parinfer is just a Paredit alternative you can run many places

mattly19:12:21

And it’s a lot more friendly to people unfamiliar with lisps or simple editors

12
borkdude20:12:16

does parinfer also make sense for single line inputs?

dpsutton20:12:22

absolutely. typing closing parens is tough and unnecessary

borkdude20:12:34

so the question is, do I need parinfer on top of this, what does it give?

jsa-aerial01:12:28

OK, I've just gone through the learning / figuring out process for codemirror use. If you have a single line only, parinfer would be a useless addon. As you note, codemirror already has matchBrackets and autoCloseBrackets. And they work just fine

dpsutton20:12:10

ah. let your users dictate. wait for an issue?

Space Guy23:12:50

Parinfer does help a bit on single lines - if you have '0 1 2 3' and type a [ before the 1, parinfer makes it '0 [1 2 3]'. If you then type ] after the 1, the inferred one goes away for '0 [1] 2 3' - stays balanced.

jsa-aerial01:12:02

Hmmm, I may stand corrected - that would be a nice to have for single line afterall...

jsa-aerial01:12:28

OK, I've just gone through the learning / figuring out process for codemirror use. If you have a single line only, parinfer would be a useless addon. As you note, codemirror already has matchBrackets and autoCloseBrackets. And they work just fine