Skip to content
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

Line comment continuation needs some tweaking #1137

Closed
PEZ opened this issue Apr 21, 2021 · 0 comments
Closed

Line comment continuation needs some tweaking #1137

PEZ opened this issue Apr 21, 2021 · 0 comments

Comments

@PEZ
Copy link
Collaborator

PEZ commented Apr 21, 2021

When continuing a comment within a form I thought it was a good idea to enable the command, and do the same continuation regardless of where on the line the cursor is. Having used it during the workday I have noticed that this is not optimal. I think it boils down to these two problems:

  1. In the leading whitespace before a comment, I expect the top-level evaluation to happen when I press alt+enter.
  2. When the cursor is not at the end of the line I expect the trailing part of the comment to be moved down to the new comment line.

The first one:

(foo
 |  ; foo
   :foo)

alt+enter

Expected: Evaluation of top level form

Actual: Comment continuation

The second one:

   ; foo |bar

alt+enter

Expected:

   ; foo 
   ; |bar

Actual:

   ; foo bar
   ; |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant