1.2.4 • Published 4 years ago

pasty-clipboard-editor v1.2.4

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Pasty - The Clipboard Editor

Edit the text directly on your clipboard (paste bin/whatever) with some built in functions.

Installation

npm install pasty-clipboard-editor

Usage

pasty-clipboard-editor will install a global command pasty to your bin which will be accessible via the command prompt (or run box if you're on Windows). You have some text on your clipboard, and you can call one of the built in functions, or one of your own saved functions and your text is updated.

Built-in commands are:

CommandDescription
repreplaces with a regular expression
capcapitalizes or lower cases
columnAlignAligns delimited data by column
countcounts characters or lines
dedupDeduplicates a list
urlencodeencode/decode a url/xml/base64
grepyou know, GREP...
helpgets help on functions
insertconverts a delimited text to SQL insert statement
newidgenerates a new UUID
repreplaces with a RegExp
setTextsets the content to the passed in string
sortSorts a list
xmlPretty prints xml inside the string

You can also define your own functions comprised of a set of the above list in a local ~/pasty.json file. An example file is given in the repository.

Pasty will also work via a shell pipe, so echo "test" | pasty rep s x will output text. This is very useful in text editors that work with stdio like VIM.

Pasty in action

Pasty will work on your clipboard, so its macros work for any text editor.

Pasty running in xed

1.2.4

4 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.9

5 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago