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

Use format-as-you-type for Paredit #1924

Closed
PEZ opened this issue Oct 29, 2022 · 0 comments
Closed

Use format-as-you-type for Paredit #1924

PEZ opened this issue Oct 29, 2022 · 0 comments
Labels
configuration paredit Paredit and structural editing

Comments

@PEZ
Copy link
Collaborator

PEZ commented Oct 29, 2022

When formatting, Calva has two basic ”modes”:

  1. On demand: Strictly follow the users settings
  2. On type: The users settings, but relax trimming surrounding and trailing whitespace, and, consecutive blank lines.

The formatting that happens with Paredit is, as I see it, format-as-you-type. But Calva doesn't treat it that way, and instead uses on-demand formatting. Why? I don't remember why. Could be an honest mistake. Could be some good reason. Although, I really can't think of the reason.

As things are, we get issues like this one:

I think we should try format-as-you-type for Paredit, even for a release, and see what the feedback is. We might find some cases where we miss some whitespace trimming, but I am guessing that we will be able to fix those, case by case, rather than going back to on-demand format.

@PEZ PEZ added paredit Paredit and structural editing configuration labels Oct 29, 2022
@PEZ PEZ changed the title Consider using format-as-you-type for Paredit Use format-as-you-type for Paredit Oct 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
configuration paredit Paredit and structural editing
Projects
None yet
Development

No branches or pull requests

1 participant