'Emeditor : When using the extract feature : how to also remove the extracted contents (rows) from the source document?
Example : the file "A.txt" contains several rows with phrases :
This is a phrase
Bla keyword blabla
This is another phrase
Desired results :
in A.txt :
This is a phrase
This is another phrase
in B.txt :
Bla keyword blabla
Then I use the option "Find" keyword then I use "Extract". It extracts the correct rows in a new document (B.txt) but how to also remove the full row(s) containing the selected keyword in "A.txt" ?
Solution 1:[1]
I do the same thing a lot in EmEditor and using only the keyboard, this is the quickest way I know.
Here are my steps:
- Highlight the
search stringand open the Find dialogue Ctrl + F - Alt + T to Extract the lines into a new document/tab
- Esc to close the Find dialogue (not needed if option Close when finished in the Find dialogue is active).
- Go back to the original source document Ctrl + Tab
- Re-open the Find dialogue Ctrl + F
- Bookmark the lines Alt + B
- Esc to close the Find dialogue (not needed if option Close when finished in the Find dialogue is active).
- Delete the bookmarked lines Ctrl + Shift + Backspace
Steps 3 and 7 can be skipped if using the mouse to select the original source document. I just haven't figured how to activate it with the keyboard while the Find window is still open.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Bumpyride |
