5 ###$ unix <Control-u><Control-u><Control-s>
7 ###$ event <<find-again>>
10 ###$ unix <Control-u><Control-s>
12 ###$ event <<find-selection>>
16 ###$ event <<find-in-files>>
19 ###$ event <<replace>>
22 ###$ event <<goto-line>>
29 '<<find-again>>': ['<Control-g>', '<F3>'],
30 '<<find-in-files>>': ['<Alt-F3>'],
31 '<<find-selection>>': ['<Control-F3>'],
32 '<<find>>': ['<Control-f>'],
33 '<<replace>>': ['<Control-h>'],
34 '<<goto-line>>': ['<Alt-g>'],
38 '<<find-again>>': ['<Control-u><Control-s>'],
39 '<<find-in-files>>': ['<Alt-s>', '<Meta-s>'],
40 '<<find-selection>>': ['<Control-s>'],
41 '<<find>>': ['<Control-u><Control-u><Control-s>'],
42 '<<replace>>': ['<Control-r>'],
43 '<<goto-line>>': ['<Alt-g>', '<Meta-g>'],
49 ('_Find...', '<<find>>'),
50 ('Find a_gain', '<<find-again>>'),
51 ('Find _selection', '<<find-selection>>'),
52 ('Find in Files...', '<<find-in-files>>'),
53 ('R_eplace...', '<<replace>>'),
54 ('Go to _line', '<<goto-line>>'),
58 def __init__(self
, editwin
):
59 self
.editwin
= editwin
61 def find_event(self
, event
):
63 SearchDialog
.find(self
.editwin
.text
)
66 def find_again_event(self
, event
):
68 SearchDialog
.find_again(self
.editwin
.text
)
71 def find_selection_event(self
, event
):
73 SearchDialog
.find_selection(self
.editwin
.text
)
76 def find_in_files_event(self
, event
):
78 GrepDialog
.grep(self
.editwin
.text
, self
.editwin
.io
, self
.editwin
.flist
)
81 def replace_event(self
, event
):
83 ReplaceDialog
.replace(self
.editwin
.text
)
86 def goto_line_event(self
, event
):
87 text
= self
.editwin
.text
88 lineno
= tkSimpleDialog
.askinteger("Goto",
96 text
.mark_set("insert", "%d.0" % lineno
)