<s> import sublime , sublime_plugin <EOL> import re <EOL> class ListCriticsCommand ( sublime_plugin . TextCommand ) : <EOL> def run ( self , edit ) : <EOL> self . markers = [ ] <EOL> self . view . find_all ( r'<STR_LIT>' , <NUM_LIT:0> , "<STR_LIT>" , self . markers ) <EOL> self . view . window ( ) . show_quick_panel ( self . markers , self . goto_critic , sublime . MONOSPACE_FONT ) <EOL> def goto_critic ( self , choice ) : <EOL> if choice == - <NUM_LIT:1> : <EOL> return <EOL> else : <EOL> findmarker = self . markers [ choice ] <EOL> self . view . sel ( ) . clear ( ) <EOL> findmarker = findmarker . replace ( "<STR_LIT:{>" , "<STR_LIT>" ) . replace ( "<STR_LIT:}>" , "<STR_LIT>" ) . replace ( "<STR_LIT:[>" , "<STR_LIT>" ) . replace ( "<STR_LIT:]>" , "<STR_LIT>" ) . replace ( "<STR_LIT:(>" , "<STR_LIT>" ) . replace ( "<STR_LIT:)>" , "<STR_LIT>" ) . replace ( "<STR_LIT:+>" , "<STR_LIT>" ) <EOL> pt = self . view . find ( findmarker , <NUM_LIT:0> ) <EOL> self . view . sel ( ) . add ( pt ) <EOL> self . view . show ( pt ) </s>
