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

Updates #31

Merged
merged 10 commits into from
Aug 20, 2023
Merged

Updates #31

merged 10 commits into from
Aug 20, 2023

Conversation

cshuaimin
Copy link
Owner

I'm on this branch for a while and there's already many changes, so I want to merge this to main branch. Note that some changes are not final and will be changed in next few months. Notable changes are:

  • Fixed unexpected behavior with reused placeholders #15. Now you can use $a == $a to match foo == foo but not foo == bar.
  • Prevent accidentally opening another file in the ssr window.
  • SSR window is now bound to the original window. Previously it was bound to original buffer. This means you can change the buffer shown in the original window and ssr.nvim will be refreshed. Note that I'm planning to make ssr.nvim able to search multiple files so SSR window may be changed to be global and not bound to a window.
  • The small confirmation window is now blocking. Which means nvim will wait for your input before do other things. This and previous changes make it possible to run ssr with quickfix :cfdo lua require('ssr').replace_confirm() .

The next major feature I want to work on is #13, because I'm not sure how other few will look like.

@cshuaimin cshuaimin merged commit b2f35df into main Aug 20, 2023
4 checks passed
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.

unexpected behavior with reused placeholders
1 participant