Replies: 3 comments
-
This is caused by auto pairs of quotes, braces, etc. and I think it's the intended behavior. If you want to replace If the replacement text is longer (not a single character), yank the desired replacement text, then Edit: Regarding the discrepancy between |
Beta Was this translation helpful? Give feedback.
-
@CptPotato I perhaps need to open a bug on auto-pairs then because they’re really not working as they should. e.g., If I type: html` in JavaScript to create a tagged template, I get:
Then, since auto pairs failed, if I type another `, I get:
(I’ve added the | to show where the cursor is placed. That’s not in the actual output.) Should I open a separate issue for this? |
Beta Was this translation helpful? Give feedback.
-
I think that's an instance of #4100 |
Beta Was this translation helpful? Give feedback.
-
Summary
Replacing multiple quotation marks results in inconsistent behaviour.
Reproduction Steps
To reproduce
Select all and then select all double quote marks.
% s"
Press c and type a single quote(
'
)What should happen
All double quotes should be replaced with one single quote.
What actually happens
Some double quotes are replaced with one single quote, others are replaced with two.
This is also inconsistent with r which does the right thing.
Helix log
n/a
Platform
Linux (Fedora Silverblue 37)
Terminal Emulator
Black Box
Helix Version
helix 22.12 (0f2ae35)
Beta Was this translation helpful? Give feedback.
All reactions