Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Added sort plugin. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
331233bf2a05a89a3cc915056a40ca3e |
User & Date: | peter.spjuth@gmail.com 2011-10-15 00:10:52.000 |
Context
2011-10-15
| ||
01:00 | Added Show in plugin dialog. check-in: 2828c7cb68 user: peter.spjuth@gmail.com tags: trunk | |
00:10 | Added sort plugin. check-in: 331233bf2a user: peter.spjuth@gmail.com tags: trunk | |
2011-10-14
| ||
23:57 | Added procedure editor. check-in: 7abe7c695a user: peter.spjuth@gmail.com tags: trunk | |
Changes
Added plugins/sort.tcl.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | ##Eskil Plugin : Compare files after sorting lines # Example file for a plugin. # A plugin must start exactly like this one. # The text after : is the summary you can get at the command line # This plugin compares the set of words in files. # A plugin must define this procedure to do the job. # side: left or right # chi: An input channel for reading the original file. # cho: An output channel for writing the processed file. proc PreProcess {side chi cho} { set data [read $chi] set endingNewLine 0 if {[string index $data end] eq "\n"} { set data [string range $data 0 end-1] set endingNewLine 1 } set lines [split $data \n] # Allow sort parameters in info set lines [lsort -dictionary {*}$::Info $lines] puts -nonewline $cho [join $lines \n] if {$endingNewLine} { puts $cho "" } # Signal that the file after processing should be used both # for comparison and for displaying. return 1 } |