Skip to content

Conversation

@jramosg
Copy link
Contributor

@jramosg jramosg commented Feb 3, 2026

What has changed?

  • Fixed the issue where nested ' could not be delete when there was after a opening list form: '('(1 2 3))
  • Add unit tests
  • Add examples in sandbox
  • Includes Prefix deletion consistency #3022 changes but this will be squashed if it gets approved and diff will be much smaller

Fixes #3020

My Calva PR Checklist

I have:

  • Read How to Contribute.
  • Directed this pull request at the dev branch. (Or have specific reasons to target some other branch.)
  • Made sure I have changed the PR base branch, so that it is not published. (Sorry for the nagging.)
  • Made sure there is an issue registered with a clear problem statement that this PR addresses, (created the issue if it was not present).
    • Updated the [Unreleased] entry in CHANGELOG.md, linking the issue(s) that the PR is addressing.
  • Figured if anything about the fix warrants tests on Mac/Linux/Windows/Remote/Whatever, and either tested it there if so, or mentioned it in the PR.
  • Added to or updated docs in this branch, if appropriate
  • Tests
    • Tested the particular change
    • Figured if the change might have some side effects and tested those as well.
  • Formatted all JavaScript and TypeScript code that was changed. (use the prettier extension or run npm run prettier-format)
  • Confirmed that there are no linter warnings or errors (use the eslint extension, run npm run eslint before creating your PR, or run npm run eslint-watch to eslint as you go).

@netlify
Copy link

netlify bot commented Feb 3, 2026

Deploy Preview for calva-docs ready!

Name Link
🔨 Latest commit cb4e8f7
🔍 Latest deploy log https://app.netlify.com/projects/calva-docs/deploys/6983442fad049a0008f4d12d
😎 Deploy Preview https://deploy-preview-3023--calva-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@jramosg jramosg changed the title Fix/delete quote prefix from right after quoted list Fix: delete quote prefix that is right after quoted list Feb 3, 2026
Copy link
Collaborator

@PEZ PEZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Adjust the condition to determine if the cursor is right after a quote
prefix. This change allows for the deletion of the quote when the cursor
is positioned between the quote and an opening parenthesis, improving
the editing experience.
Fixes Delete Operations with Single Quote (')
Fixes BetterThanTomorrow#3020
This commit introduces tests to verify the deletion of quote prefixes
from quoted lists, nested quoted lists, and quoted vectors. These
tests ensure that the backspace and deleteForward functions handle
quote prefixes correctly, addressing issue BetterThanTomorrow#3020.
Simplify the parameters for the analyzePrefixDeletionContext
function by removing the nextToken argument. This change
improves code clarity and maintains the functionality of
prefix deletion during structural backspace operations.
@jramosg jramosg force-pushed the fix/delete-quote-prefix-from-right-after-quoted-list branch from e335343 to cb4e8f7 Compare February 4, 2026 13:05
@jramosg jramosg merged commit 51ba782 into BetterThanTomorrow:dev Feb 4, 2026
5 checks passed
@jramosg jramosg deleted the fix/delete-quote-prefix-from-right-after-quoted-list branch February 4, 2026 13:07
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

Successfully merging this pull request may close these issues.

2 participants