Class p.s.g.g.Grepper(Service):

Part of pida.services.grepper.grepper View In Hierarchy

Search text in files.

Grepper is a graphical grep tool used for search through the contents of files for a given match or regular expression.

Split Table into Classes Show Methods in One Table

Line # Kind Name Docs
305 Method pre_start Override to pre start up
309 Method show_grepper_in_project_source_directory Undocumented
316 Method show_grepper Undocumented
323 Method grep_current_word Undocumented
331 Method grep grep is a wrapper around _grep_file_list and _grep_file.
352 Method _grep_file_list Grep for a list of files.
375 Method _grep_file Grep a file.
397 Method set_current_project Undocumented
401 Method set_view_location Undocumented
404 Method stop Override to stop service

Inherited from Service:

Line # Kind Name Docs
31 Method __init__ Undocumented
36 Method create_all Called to create all the services by the
48 Method subscribe_all Undocumented
53 Method get_name Undocumented
56 Method get_label Undocumented
62 Method start Override for main phase of startup
68 Method stop_components Undocumented
77 Method _register_options_config Undocumented
85 Method get_options Undocumented
88 Method get_option Undocumented
91 Method opt Undocumented
94 Method set_opt Undocumented
100 Method _register_commands_config Undocumented
108 Method _get_commands Undocumented
111 Method cmd Undocumented
123 Method _register_events_config Undocumented
129 Method _subscribe_foreign_events Undocumented
132 Method _unsubscribe_foreign_events Undocumented
136 Method _get_events Undocumented
139 Method get_event Undocumented
142 Method subscribe_foreign_event Undocumented
145 Method unsubscribe_foreign_event Undocumented
148 Method subscribe_event Undocumented
151 Method unsubscribe_event Undocumented
155 Method emit Undocumented
161 Method _register_feature_config Undocumented
167 Method _subscribe_foreign_features Undocumented
170 Method _unsubscribe_foreign_features Undocumented
173 Method _get_features Undocumented
178 Method list_features Undocumented
181 Method has_foreign_feature Undocumented
184 Method subscribe_feature Undocumented
187 Method unsubscribe_feature Undocumented
190 Method subscribe_foreign_feature Undocumented
193 Method unsubscribe_foreign_feature Undocumented
196 Method features Undocumented
202 Method _register_actions_config Undocumented
208 Method _unregister_actions_config Undocumented
211 Method _subscribe_keyboard_shortcuts Undocumented
214 Method _get_actions Undocumented
217 Method get_action_group Undocumented
220 Method get_action Undocumented
223 Method get_keyboard_options Undocumented
228 Method log_debug Undocumented
231 Method log_info Undocumented
234 Method log_warn Undocumented
237 Method log_error Undocumented
243 Method get_window Undocumented
248 Method save_dlg Undocumented
251 Method open_dlg Undocumented
254 Method info_dlg Undocumented
257 Method error_dlg Undocumented
260 Method yesno_dlg Undocumented
263 Method error_list_dlg Undocumented
Line # Kind Name Docs
31 Method __init__ Undocumented
214 Method _get_actions Undocumented
108 Method _get_commands Undocumented
136 Method _get_events Undocumented
173 Method _get_features Undocumented
375 Method _grep_file Grep a file.
352 Method _grep_file_list Grep for a list of files.
202 Method _register_actions_config Undocumented
100 Method _register_commands_config Undocumented
123 Method _register_events_config Undocumented
161 Method _register_feature_config Undocumented
77 Method _register_options_config Undocumented
129 Method _subscribe_foreign_events Undocumented
167 Method _subscribe_foreign_features Undocumented
211 Method _subscribe_keyboard_shortcuts Undocumented
208 Method _unregister_actions_config Undocumented
132 Method _unsubscribe_foreign_events Undocumented
170 Method _unsubscribe_foreign_features Undocumented
111 Method cmd Undocumented
36 Method create_all Called to create all the services by the
155 Method emit Undocumented
257 Method error_dlg Undocumented
263 Method error_list_dlg Undocumented
196 Method features Undocumented
220 Method get_action Undocumented
217 Method get_action_group Undocumented
139 Method get_event Undocumented
223 Method get_keyboard_options Undocumented
56 Method get_label Undocumented
53 Method get_name Undocumented
88 Method get_option Undocumented
85 Method get_options Undocumented
243 Method get_window Undocumented
331 Method grep grep is a wrapper around _grep_file_list and _grep_file.
323 Method grep_current_word Undocumented
181 Method has_foreign_feature Undocumented
254 Method info_dlg Undocumented
178 Method list_features Undocumented
228 Method log_debug Undocumented
237 Method log_error Undocumented
231 Method log_info Undocumented
234 Method log_warn Undocumented
251 Method open_dlg Undocumented
91 Method opt Undocumented
305 Method pre_start Override to pre start up
248 Method save_dlg Undocumented
397 Method set_current_project Undocumented
94 Method set_opt Undocumented
401 Method set_view_location Undocumented
316 Method show_grepper Undocumented
309 Method show_grepper_in_project_source_directory Undocumented
62 Method start Override for main phase of startup
404 Method stop Override to stop service
68 Method stop_components Undocumented
48 Method subscribe_all Undocumented
148 Method subscribe_event Undocumented
184 Method subscribe_feature Undocumented
142 Method subscribe_foreign_event Undocumented
190 Method subscribe_foreign_feature Undocumented
151 Method unsubscribe_event Undocumented
187 Method unsubscribe_feature Undocumented
145 Method unsubscribe_foreign_event Undocumented
193 Method unsubscribe_foreign_feature Undocumented
260 Method yesno_dlg Undocumented
def pre_start(self):
Override to pre start up
def show_grepper_in_project_source_directory(self):
Undocumented
def show_grepper(self, path):
Undocumented
def grep_current_word(self, path=None):
Undocumented
def grep(self, top, regex, recursive=False, show_hidden=False):
grep is a wrapper around _grep_file_list and _grep_file.
def _grep_file_list(self, file_list, root, regex, show_hidden=False):
Grep for a list of files.

takes as it's arguments a list of files to grep, the directory containing that list, and a regular expression to search for in them (optionaly whether or not to search hidden files).

_grep_file_list itterates over that file list, and calls _grep_file on each of them with the supplied arguments.

def _grep_file(self, filename, regex):
Grep a file.

Takes as it's arguments a full path to a file, and a regular expression to search for. It returns a generator that yields a GrepperItem for each cycle, that contains the path, line number and matches data.

def set_current_project(self, project):
Undocumented
def set_view_location(self, directory):
Undocumented
def stop(self):
Override to stop service
API Documentation for PIDA, generated by pydoctor.