#NEWLINE# def delete_gist( res , options ) : #NEWLINE# #INDENT# if ( 'fileFullName' in options ) : #NEWLINE# #INDENT# file_full_name = options [ 'fileFullName' ] #NEWLINE# ( base , filename ) = os . path . split ( file_full_name ) #NEWLINE# settings = util . get_settings ( ) #NEWLINE# util . close_view_by_filename ( file_full_name ) #NEWLINE# os . remove ( file_full_name ) #NEWLINE# show_message ( ( '%s delete succeed' % filename ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# filename = settings [ 'fileName' ] #NEWLINE# show_message ( ( 'Gist %s is delete successfully' % filename ) ) #NEWLINE# #UNINDENT# sublime . active_window ( ) . run_command ( 'choose_gist' , { #NEWLINE# #INDENT# 'read_cache' : False , #NEWLINE# #UNINDENT# } )