Editing Clipboard Transformations
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 25: | Line 25: | ||
Most transformations ( and perhaps all in the future ) do some general processing: | Most transformations ( and perhaps all in the future ) do some general processing: | ||
− | * Break the text into multiple lines using a variety of markers ( see Python splitlines ), | + | * Break the text into multiple lines using a variety of markers ( see Python splitlines ), |
* Delete trailing spaces on each line | * Delete trailing spaces on each line | ||
− | * Joins lines back using a standard line marker ( cmd_processor.line_join ) by default the newline character \n | + | * Joins lines back using a standard line marker ( cmd_processor.line_join ) by default the newline character \n |
* White space is used in the same sense as Python. In includes spaces, tabs \n \r and other characters. | * White space is used in the same sense as Python. In includes spaces, tabs \n \r and other characters. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
= Individual Transformations = | = Individual Transformations = | ||
− | + | The GUI names should match those below, but use a bit of caution. | |
− | |||
− | The GUI names should match those below, but use a bit of caution | ||
== Add *>url == | == Add *>url == | ||
− | * What: | + | * What: Prefixs all lines with a url with "*>url" |
* Why: to save url's in command format for later use with '''<*cmd>''' button | * Why: to save url's in command format for later use with '''<*cmd>''' button | ||
* Lines with a url have *>url pre-pended to the line. This is the command indicator for the *cmd button to go to a given url. | * Lines with a url have *>url pre-pended to the line. This is the command indicator for the *cmd button to go to a given url. | ||
Line 203: | Line 41: | ||
== Add *>shell == | == Add *>shell == | ||
− | * What: | + | * What: |
− | * Why: | + | * Why: |
== Alt Line Sort 0 == | == Alt Line Sort 0 == | ||
Line 218: | Line 56: | ||
* Why: Mostly to show off, this is actually not very useful for me. | * Why: Mostly to show off, this is actually not very useful for me. | ||
− | == | + | == Line Num == |
* What: | * What: | ||
− | * Why: | + | * Why: |
+ | |||
+ | == No Blank Lines == | ||
+ | |||
+ | |||
+ | == No Trail Space == | ||
+ | |||
+ | * What: Remove all trailing white space. | ||
+ | * Why: Trailing white space is just a waste of space and may slow down code editing. | ||
+ | |||
== lower == | == lower == | ||
Line 241: | Line 88: | ||
* What: Put sequential numbers in front of each non-blank lines | * What: Put sequential numbers in front of each non-blank lines | ||
* Why: Sometimes nice to have you lines numbered. | * Why: Sometimes nice to have you lines numbered. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== No WS == | == No WS == | ||
* What: Remove all white space. | * What: Remove all white space. | ||
− | * Why: | + | * Why: |
== Tab > Space == | == Tab > Space == | ||
− | * What: | + | * What: Rempve all tab characters changing them to spaces. |
* Why: Python programmers tend to prefer spaces over tabs. A mix of them can be confusing when editiong, and can cause Python programs that look correct to fail. | * Why: Python programmers tend to prefer spaces over tabs. A mix of them can be confusing when editiong, and can cause Python programs that look correct to fail. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
= Customization = | = Customization = | ||
Line 287: | Line 117: | ||
The return is a tuple | The return is a tuple | ||
− | * First a Boolean, it indicates the success of the operation | + | * First a Boolean, it indicates the success of the operation |
− | * Second a string a comment on the operation | + | * Second a string a comment on the operation |
− | * Third a string, the transformed text | + | * Third a string, the transformed text. |
To learn more about the transforms read the code, then write yours following the conventions in this one. | To learn more about the transforms read the code, then write yours following the conventions in this one. |