I use BBedit on Mac OS, which has a great feature that allows you to store and reuse search patterns (including grep/regex patterns) in a popup menu inside the search/replace menu.

I'm using Ubuntu now because the Mac has gotten so slow after the latest OS update to Sierra. Does Atom have a feature or addon that has this feature? If not, is there another Linux editor that does?

  • I use medit on Ubuntu, which handles regular expressions which are more or less compatible with grep and sed, with a few extra features.
    – AFH
    Mar 9 '17 at 15:56
  • Thanks @AFH for the tip. Are you able to store the patterns so they're easy to re-use?
    – Lido
    Mar 9 '17 at 18:54
  • medit does appear to remember search and replace strings between invocations, but I have never investigated their long-term permanency nor the associated buffer sizes. At the very least you can copy and paste from a text file open in another tab.
    – AFH
    Mar 9 '17 at 23:15
  • I've checked, and (on Ubuntu) medit saves its recent find and replace strings in ~/.cache/medit/state.xml , but I don't know how many entries are saved: mine currently has 12 finds and 10 replaces, but adding extra entries doesn't change the drop-down lists. If these are enough, you can copy over this file on each invocation.
    – AFH
    Mar 10 '17 at 17:50


replacing-pattern-collection package

This package helps using find-and-replace. If you often use same complex pattern in find-and-replace, this package is helpful. This package save patterns to file, and load patterns from file.

See package docs for usage help.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.