Columns, Numbers

From TED Notepad
Revision as of 12:11, 8 May 2010 by Jsimlo (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You see work in progress here; this section already reflects future TED Notepad version 5.4.1.1.
This section may contain incomplete, premature, or mistaken information, prone to change without notice.

Columns, Numbers... (Alt+Ctrl+Y)

Cuts portions from each line and then gnerates new lines according to the given Output mask. The mask may contain any text, and may also include these special variables:

  • %0 - returns the entire original line.
  • %1-%9 - return the columns cut according to rules specified in the corresponding tab.
  • %d - returns a decimal number from the Counter. You may specify the Start and the Step.
  • %x - returns a lower case hexadecimal number from the Counter.
  • %X - returns an upper case hexadecimal number from the Counter.
  • %b - returns a binary number from the Counter.
  • %o - returns an octal number from the Counter.
  • %n - returns a simple newline.

All these veriables might be furthermore qualified with an aligning specifier:

  • < - aligns the entire column to the left, using spaces to fill the shorter lines from right.
  • > - aligns the entire column to the right, using spaces to fill the shorter lines from left.
  • + - aligns the entire column to the right, using 0 to fill the shorter lines from left.
  • ^ - aligns the entire column to the center, using spaces to fill the shorter lines from both sides.

Optionally, you may choose to Modify non-empty lines only, if you need to keep the empty lines intact.


Example of an Output mask. This mask will cut the first column from each line and place it in the results after a decimal number, colon and a space. The numbers will be aligned to the right by zeroes, so that they all have the same number of digits:

%+d, %1