Fork me on GitHub

how does one make keyboard shortcuts apply to the repl? ex: i have alt+backspace mapped to delete a subword at a time in vscode


I assume by repl, you're referring to the repl window. The action you describe sounds like the paredit action Kill/Delete Sexp Backward, which is mapped by default to ctrl+alt+backspace . Force Delete Backward is mapped to alt+backspace. If you re-mapped alt+backspace to Kill/Delete Sexp Backward, then it should work that way in the repl window.


Btw, I did the re-mapping described above and verified it works in the repl window. Let me know if I misunderstood something or you need more help.


ah, i guess the repl has it's own set of commands


i niavely assumed the usual vscode commands could be applied


(the specific one in question is an extension that deletes subwords e.g. ThisSubword| + "Alt-Bckspc" => This


The REPL window is a separate editor. It shares paredit commands with the regular editor, but not much more than that. Most often you shouldn't really need the REPL window though. It's generally better to work inside the editor windows and enjoy the full vscode editing support.


👍 makes sense esp. given that it's separate

Tom Helmuth20:07:39

@U0ETXRFEW How would you recommend trying out a function you just wrote if not in the REPL window?


I write a comment form below the function and try it out from there.

Tom Helmuth20:07:09

With what command? Calva evaluate current form?

Tom Helmuth20:07:56

I find that annoying, because my cursor is usually in the middle of the code when I want to evaluate it, not at the end of the form.


With evaluate current top level form.

Tom Helmuth18:07:29


👍 3