'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:

  1. Highlight the search string and open the Find dialogue Ctrl + F
  2. Alt + T to Extract the lines into a new document/tab
  3. Esc to close the Find dialogue (not needed if option Close when finished in the Find dialogue is active).
  4. Go back to the original source document Ctrl + Tab
  5. Re-open the Find dialogue Ctrl + F
  6. Bookmark the lines Alt + B
  7. Esc to close the Find dialogue (not needed if option Close when finished in the Find dialogue is active).
  8. 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