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

wrong mim behaviour ? #10254

Closed
O136 opened this issue Apr 7, 2024 · 1 comment
Closed

wrong mim behaviour ? #10254

O136 opened this issue Apr 7, 2024 · 1 comment
Labels
C-bug Category: This is a bug

Comments

@O136
Copy link

O136 commented Apr 7, 2024

Summary

mim for the following case does nothing
image

but mim for this case:
image

selects everything inside the [] bracket pair instead of the "" pair.
image

After more testing mim works fine for pairs like {},[],() but not for '' (single quote pair) ,"" (double quote pair), ~~(tilde), ``(back tick pair).

Using explicitly the pair character like mi" works as expected though.

Reproduction Steps

No response

Helix log

No response

Platform

ubuntu 22.04

Terminal Emulator

alacritty 0.13.2 (bb8ea18)

Installation Method

apt

Helix Version

helix 24.3 (2cadec0)

@O136 O136 added the C-bug Category: This is a bug label Apr 7, 2024
@pascalkuthe
Copy link
Member

its intentioal because you are basically always between two quotes (since its not possible to figure out where inside and outside is for a quote). This can be solved by using treesitter (see #8294) but not for plaintext files. We already have an issue about this linked in that pr so I will close this in favor of that

@pascalkuthe pascalkuthe closed this as not planned Won't fix, can't repro, duplicate, stale Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

2 participants