Use case: I want to:
- copy a (long, not handy to manually type)
newstring, - replace all occurrences of another (long, not handy to manually type)
stringbynewstring.
Current process (not handy):
- Copy (mark +
M-w)stringin the (main) buffer. - Start the query replace process, using copied
string(M-% C-y <RET>). - Select another window (
C-x o) to switch from the minibuffer to the main one. - In the (main) buffer, (optional: search (
C-s) fornewstringand) copy (mark +M-w)newstring. - Select another window (
C-x o) to switch from the main buffer to the minibuffer. - Paste (
C-y)newstringand continue the query replace process (<RET>).
Possible start of track: This answer provides the a nice way (C-s C-w) to search for the word after the current mark.
Question: I wonder if:
- the previous track could be extended to replace for the word after the current mark,
- or if there is another, better, track for my use case.