line-commands

An in document command engine. Custom commands can be run directly from inside a document

mguid65

810

0

0.3.0

MIT

GitHub

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