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

highlight search during replace command #175

Merged
merged 1 commit into from
May 13, 2024
Merged

Conversation

nightwing
Copy link
Collaborator

implement part of changes suggested in #160 by highlighting matches during s command

Copy link
Contributor

@sergeichestakov sergeichestakov left a comment

Choose a reason for hiding this comment

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

looks good, thanks! 🔍

src/vim.js Outdated
var regex = parseQuery(params.argString.slice(1), true, true);
if (regex) highlightSearchMatches(cm, regex);
} catch(e) {
console.log(e);
Copy link
Contributor

Choose a reason for hiding this comment

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

hmm not sure what we've been doing elsewhere but ideally we don't log too much to the user's console

@nightwing nightwing force-pushed the replace-highlight branch from 55ec9d8 to 47bdce3 Compare May 9, 2024 20:28
@nightwing nightwing force-pushed the replace-highlight branch from 47bdce3 to b475ec4 Compare May 9, 2024 20:36
@nightwing nightwing merged commit 893666e into master May 13, 2024
1 check passed
@nightwing nightwing deleted the replace-highlight branch May 13, 2024 12:06
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