def goto_grep(line):
 parsed_line = parse_grep_line(line)
 if parsed_line:
  (filename, line_number, contents) = parsed_line
  do(cmds.Edit, [filename], line_number=line_number)

def goto_grep ( line ) : parsed_line = parse_grep_line ( line ) if parsed_line : ( filename , line_number , contents ) = parsed_line do ( cmds . Edit , [ filename ] , line_number = line_number )
called when search -> greps right-click goto action .