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

Make ^ and $ useful #82

Open
elibarzilay opened this issue Dec 8, 2022 · 1 comment
Open

Make ^ and $ useful #82

elibarzilay opened this issue Dec 8, 2022 · 1 comment

Comments

@elibarzilay
Copy link

The default mode for ^ and $ make them pretty much useless for highlights (unless you really want something anchored at the beginning/end).

If the regexp flag included m by default (though the above is useless enough that I don't think there's a need to make it an option), you'd be able to do highlights based on the beginning/end of lines.

@elibarzilay
Copy link
Author

Two supporting cases: Emacs defaults to this, which makes sense in the context of an editor; regex101.com turns on the m flag by default since it's common to try a pattern against each line.

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