Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Added grep plugin |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
1880320ff243d833cee1b7d3571d7bf7 |
User & Date: | peter 2015-04-19 17:47:46.905 |
Context
2015-04-19
| ||
18:01 | Handle -sep better check-in: 3f444e8cd2 user: peter tags: trunk | |
17:47 | Added grep plugin check-in: 1880320ff2 user: peter tags: trunk | |
17:33 | More efficient fill of table diff check-in: 6259027c72 user: peter tags: trunk | |
Changes
Changes to Changes.
1 2 3 4 5 6 7 | 2015-04-09 Started working on a edit buttons shown between diffs. 2015-03-18 Allow plugins to yield if Eskil is run in Tcl 8.6 or newer. Added swap plugin to exemplify this. | > > > > | 1 2 3 4 5 6 7 8 9 10 11 | 2015-04-19 Started working on table diff. Added grep plugin. 2015-04-09 Started working on a edit buttons shown between diffs. 2015-03-18 Allow plugins to yield if Eskil is run in Tcl 8.6 or newer. Added swap plugin to exemplify this. |
︙ | ︙ |
Added plugins/grep.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 31 | ##Eskil Plugin : Compare after filtering 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 only compares lines that match a pattern. # 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} { if {[catch {llength $::Info}]} { puts $cho "Grep plugin needs -plugininfo parameter to be a list" return 1 } # Look for parameters in info string set opts(-re) "." foreach {opt val} $::Info { set opts($opt) $val } while {[gets $chi line] >= 0} { if {[regexp -- $opts(-re) $line]} { puts $cho $line } } # Signal that the file after processing should be used both # for comparison and for displaying. return 1 } |