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

Regex matches replaced by first instance only #39

Open
zanodor opened this issue Mar 30, 2023 · 0 comments
Open

Regex matches replaced by first instance only #39

zanodor opened this issue Mar 30, 2023 · 0 comments

Comments

@zanodor
Copy link

zanodor commented Mar 30, 2023

Actually, the same issue happens in Obsidian's built-in multiple cursors: when multiple matches are highlighted, regex replacements are only done per match of the first instance, like so (Wikilinks changed to bold text in this example):
[[Hugo]] > **Hugo**,
[[Bubu]] > **Hugo**,
[[Dudu]] > **Hugo**,
etc.

When you make a normal selection with the mouse, the search+replace carries out with no problem.

I made a note of this in Obsidian as well:
https://forum.obsidian.md/t/multiple-cursors-hotkeys-only-respect-the-last-selected-cursor/34648/2

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