/line-commands

In document commands package for Atom

Primary LanguageJavaScriptMIT LicenseMIT

line-commands

In document command like modification from anywhere in document.

Current commands:

Instructions: Type command and parameters in any blank line in document. The run shortcut is ctrl-alt-k. You must have your cursor in the line. This line will be deleted and the command will be parsed and processed.

 replaceone <regex> <replacement>

replace the first instance of a regex search with a given string

 replaceall <regex> <replacement>

replace all instances of a regex search with a given string

 goto <lineNumber>

move the cursor to linenumber and move screen position

 delete <lineNumber>

delete a line

 delete <startline> <endline>

delete a line or range of lines(maybe fixed)

 copy <startline> <endline>

copy texts or codes from a range of lines (beta)

Demo

Demo Only Work on GitHub