Fork me on GitHub
#calva
<
2020-09-30
>
caleb.macdonaldblack00:09:24

Any idea why my tab key doesn’t work? If I disable calva is works. Only having the issue in clojure files

bringe00:09:34

Tab is mapped to Format Current Form. See the keyboard shortcuts if you'd like to remap it, but this is a pretty handy shortcut. With Calva's auto formatting you don't need to use tab to add spaces/tabs. But to each their own, so you can re-map it if you like.

sogaiu01:09:49

@pez @brandon.ringe the property-based testing i was doing turned up this case: https://github.com/sogaiu/tree-sitter-clojure/issues/7 i briefly tested with an out-of-calva scanner: https://gist.github.com/sogaiu/0bce398360c7c1ea36ca006e36bf9dda any thoughts? fwiw, here are some bits regarding whether # is allowed in keywords / symbols: https://github.com/sogaiu/tree-sitter-clojure/blob/master/notes.txt#L124-L148

bringe02:09:51

I'll defer to @pez since this is his area of expertise

sogaiu03:09:40

ok. as a side note, it seems to me that something like the following might be helpful guidelines when writing clojure code to avoid this sort of difficulty: 1) try not to use # in symbols and keywords 2) try to put at least one whitespace character before and after #_ i think i can guess that 1) might be hinted at looking at the http://clojure.org reader reference, but i have not heard 2) so far.

pez05:09:57

Good find! Can you file an issue about it? We should try to fix this.