Tk Library Source Code

View Ticket
Login
Ticket UUID: 627521
Title: patch to searching the chat history
Type: Patch Version: None
Submitter: pascalscheffers Created on: 2002-10-23 15:07:49
Subsystem: app: tkchat Assigned To: patthoyts
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2003-03-11 04:18:10
Resolution: Accepted Closed By: patthoyts
    Closed on: 2003-03-10 21:18:10
Description:
This patch adds two commands /? and /! to start
searching and cancel searching for a search string:

/?pascal

will search for the regular expression 'pascal' and
mark it orange (by default). 

/? 

Will search again for the last expression and mark the
next one found.

/! will clear all markers and jump the widget back to
[.txt see end]

I've also added the color to the color preferences, so
you can customize the color.
User Comments: patthoyts added on 2003-03-11 04:18:10:
Logged In: YES 
user_id=202636

Committed both patches with minor modifications.

pascalscheffers added on 2003-03-10 22:38:42:

File Added - 44627: patch.hilite_all

pascalscheffers added on 2003-03-10 22:38:41:
Logged In: YES 
user_id=582857

Added a highlight [while] loop to mark all occurences in one
go and then start jumping through the results.

patthoyts added on 2003-03-10 21:42:13:
Logged In: YES 
user_id=202636

I've tested this with 1.88 and it seems to be working fine.
I'll check it in later today.

Nice work. :)

pascalscheffers added on 2002-10-23 22:08:02:

File Added - 33699: tkchat-search.diff

Attachments: