-
-
Notifications
You must be signed in to change notification settings - Fork 247
Toggle ignore reader forms #583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I don't think that's a refactoring, so no need to use the |
Do you have suggestions for good default keybindings? I personally use evil-mode with the mappings Just realised that the existing family of "refactorings"
|
If something has only two states - I think that "toggle" is a better name than "cycle". As for the keybinding - perhaps something with |
Agreed, it was more about consistency with the existing command names (
I find having to switching from the Ctrl to Shift key for a |
I've noticed we actually have almost no top-level keybindings so you certainly have some options. Or you can just add them to the menu and people can decide if they want to bind those. I don't have brilliant suggestions, plus I doubt people are going to use such command that much, so perhaps we're overthinking this. |
Ok, I added them to the menu and the refactor map under |
Fair enough. Thanks for tackling this! We can always adjust the keybindings down the road. |
Closes #567, #411
Adds 3 new interactive commands:
clojure-toggle-ignore
,clojure-toggle-ignore-surrounding-form
, andclojure-toggle-defun
I added a bunch of tests which should demonstrate how the commands work.
No default keybindings added yet, I'm not sure if this should count as a "refactoring" and go under the
C-c C-r
prefix?Note about naming: the clojure.org guide calls it "discard" (https://clojure.org/guides/weird_characters), but I've seen it mostly referred to as the "ignore" form elsewhere.
Before submitting a PR mark the checkboxes for the items you've done (if you
think a checkbox does not apply, then leave it unchecked):
M-x checkdoc
and fixed any warnings in the code you've written.Thanks!