Fork me on GitHub
#calva
<
2023-02-11
>
M Ilham Hidayat01:02:17

hello, recently I'm learning clojure with visual studio code + calva extension. I have an issue where I couldn't delete the prior word / entire word using vscode + calva in mac os using alt + delete shortcut. In mac os we can delete prior word using alt + delete shortcut. I'm able to delete prior word with alt + delete shortcut using vscode and another programming language (javascript, go) is there any configurations that I need to change?

wevrem02:02:56

Check out the visual guide to paredit on the Calva website. https://calva.io/paredit/ Backspace and delete try not to destroy opening/closing delimiters, including quote marks around strings (which BTW should be double, not single). Using the ALT modifier changes that to ‘force’ and all bets are off as far as keeping delimiters balanced. All of that is explained right at the top of the visual guide. Farther down you’ll find ‘Kill Sexp Backward’ which I think is a good match to your question about deleting a prior ‘word’. I actually don’t use that Kill command. I normally first select the prior (or next) sexp and then hit delete.

gratitude 2
M Ilham Hidayat02:02:21

select backward up sexp is the shortcut that I'm looking for thank your for your help 👍

pez12:02:51

Caution: select backward up sexp is quite seldom what you'll need when deleting something, because it will unbalance the document. (It's very handy in some evaluation use cases, so a very good selection command to know how to find.)