/regex-copy-or-cut

VSCode extention that allows copying, deleting or cutting lines with regex matches

Primary LanguageJavaScriptMIT LicenseMIT

Regex Copy or Cut README

VScode extension that allows copying, cutting or even deleting all lines matching a regular expression and doing stuff with that automatically.

Commands

  • Delete Lines Matching Regex Pattern (Shortcut key: ctrl+alt+d")
  • Copy Lines Matching Regex Pattern (Shortcut key: ctrl+shift+c)
  • Cut Lines Matching Regex Pattern (Shortcut key: ctrl+shift+x)
  • Copy Lines Matching Regex Pattern and Paste Into New Document (Shortcut key: ctrl+alt+c)
  • Cut Lines Matching Regex Pattern and Paste Into New Document (Shortcut key: ctrl+alt+x)

TODO

  • Allow optionally matching on plain text

Release Notes

1.0.0

Initial version. Basic function, regex only matching.

1.1.0

Added paste into new document functionality

1.2.0

Refactor code, fix bugs, improve error handling

Contributions

Not a native JS speaker, so contributions or thoughts are welcome