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

Add command for inserting a Rich Comment #1324

Closed
PEZ opened this issue Oct 9, 2021 · 0 comments
Closed

Add command for inserting a Rich Comment #1324

PEZ opened this issue Oct 9, 2021 · 0 comments

Comments

@PEZ
Copy link
Collaborator

PEZ commented Oct 9, 2021

I find myself wanting a really quick way to add a rich comment block. I think it should work like so:

  • If the cursor is on the top level insert an ”open” rich comment block at the cursor.
  • If the cursor is inside a form, insert the comment below the current top level form.
  • Ensure at least one empty line above and below the rich comment

Example (the cursors is represented with |:

(defn greet
  "I'll greet yo|u"
  [s]
  (str "Hello " s "!"))

(comment
  (greet "World"))

Add a Rich Comment

(defn greet
  "I'll greet you"
  [s]
  (str "Hello " s "!"))

(comment
  |
  )

(comment
  (greet "World"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant