#NEWLINE# def __init__( self , name , file_regex = '' , line_regex = '' , base_dir = None , word_wrap = False , line_numbers = False , gutter = False , scroll_past_end = False , syntax = 'Packages/Text/Plain text.tmLanguage' ) : #NEWLINE# #INDENT# self . name = name #NEWLINE# self . window = sublime . active_window ( ) #NEWLINE# self . output_view = self . window . get_output_panel ( name ) #NEWLINE# if ( ( not self ) and self . window . active_view ( ) and self . window . active_view ( ) . file_name ( ) ) : #NEWLINE# #INDENT# base_dir = os . path . dirname ( self . window . active_view ( ) . file_name ( ) ) #NEWLINE# #UNINDENT# settings = self . output_view . settings ( ) #NEWLINE# settings . set ( 'result_file_regex' , file_regex ) #NEWLINE# settings . set ( 'result_line_regex' , line_regex ) #NEWLINE# settings . set ( 'result_base_dir' , base_dir ) #NEWLINE# settings . set ( 'word_wrap' , word_wrap ) #NEWLINE# settings . set ( 'line_numbers' , line_numbers ) #NEWLINE# settings . set ( 'gutter' , gutter ) #NEWLINE# settings . set ( 'scroll_past_end' , scroll_past_end ) #NEWLINE# settings . set ( 'syntax' , syntax ) #NEWLINE# self . closed = False