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

feat: reopen() with last input #26

Closed
wants to merge 1 commit into from

Conversation

llllvvuu
Copy link

@llllvvuu llllvvuu commented Jul 18, 2023

This saves what the user was working on in the search/replace window so they can come back to it.

It's particularly useful for #13. You can:

  1. Do a rough grep e.g. fn to open a quickfix window
  2. Do a proper SSR e.g. of fn(a, b)
  3. Step through the quickfix window (:cn and :cp keys, :bd key to close buffer) and press the require("ssr").reopen() key for each file.

I tested the cross-buffer/cross-file capability like this:

  1. Open large file and do SSR in the middle of the file w/ multiline pattern and multiline template.
  2. Close large file
  3. Open small file without match and reopen()
  4. Open small file with match and reopen()
  5. Call replace_confirm() and replace_all() in small file

@llllvvuu llllvvuu force-pushed the feat/open_last_pattern branch 3 times, most recently from a97c7c0 to 030d499 Compare July 18, 2023 08:39
@llllvvuu llllvvuu changed the title feat: reopen() with last pattern feat: reopen() with last pattern and template Jul 18, 2023
@llllvvuu llllvvuu changed the title feat: reopen() with last pattern and template feat: reopen() with last input Jul 18, 2023
@llllvvuu llllvvuu closed this Nov 19, 2023
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.

None yet

1 participant