[TxMt] some tools: show duplicate lines, sort table by column

Hans-Joerg Bibiko bibiko at eva.mpg.de
Wed Aug 8 10:54:49 UTC 2007


Hi,

I often use the following commands. Maybe there are other users who  
do find them useful too.

###
Show duplicate Lines
Show duplicate Lines (ign. leading spaces&tabs)

Bound to F5

Both commands (more or less a one-liner in bash ;) display as a tool  
tip only those lines which occurs at least twice in the document sorted.


###
Sort Table by Column
Sort Table by Column numerically

Bound to F5

It is often the case that I have to sort tables (delimiter TAB) by a  
specific column in a document alphanumerically or numerically.
If your document contains only a table you can place the caret in  
that column which should be the key for sorting.
If you select a portion of a table it will ask you for the column as  
inline menu.

Best,
Hans

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Show duplicate Lines.tmCommand
Type: application/octet-stream
Size: 781 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20070808/fb226227/attachment.tmCommand>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Show duplicate Lines (ign_ leading spaces&tabs).tmCommand
Type: application/octet-stream
Size: 834 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20070808/fb226227/attachment-0001.tmCommand>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Sort Table by Column.tmCommand
Type: application/octet-stream
Size: 1081 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20070808/fb226227/attachment-0002.tmCommand>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Sort Table by Column numerically.tmCommand
Type: application/octet-stream
Size: 1099 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20070808/fb226227/attachment-0003.tmCommand>


More information about the textmate mailing list