delete all words/lines containing "__" keybind?
-
hello, i was wondering if there was a keybind that would delete every word or line containing a specific letter or word. This would be a huge help for some things. thanks!
-
No, but you could create a replacement macro and then assign that to a keycombo.
Start with this replacement, assuming your word is
foo
and you want to match its case, i.e., you don’t want to matchFOO
orFoo
, onlyfoo
:Find:
(?-is)^.*?foo.*\R
Replace: make sure this box is empty
Options: Wrap around, Regular expression
Action: Replace allThis would match
food
and other parts of words containingfoo
as well, but if you don’t want that there are ways around it… -
@Alan-Kilborn
tysm it worked!