src/mailto.py
def toggle_format(self):
        """Change format between name+email and email-only."""
        if self.wf.settings.get('use_name', True):
            self.wf.settings['use_name'] = False
            msg = 'Changed format to Email Only'

        else:
            self.wf.settings['use_name'] = True
            msg = 'Changed format to Name & Email'

        log.debug(msg)
        self.notify(msg)

        # Re-open settings
        run_alfred('{} '.format(CONFIG_KEYWORD))
Change format between name+email and email-only.
Change format between name+email and email-only.
Change format between name + email and email - only .
def toggle_format(self):
        if self.wf.settings.get('use_name', True):
            self.wf.settings['use_name'] = False
            msg = 'Changed format to Email Only'
        else:
            self.wf.settings['use_name'] = True
            msg = 'Changed format to Name & Email'
        log.debug(msg)
        self.notify(msg)
        run_alfred('{} '.format(CONFIG_KEYWORD))
def toggle_format ( self ) : if self . wf . settings . get ( 'use_name' , True ) : self . wf . settings [ 'use_name' ] = False msg = 'Changed format to Email Only' else : self . wf . settings [ 'use_name' ] = True msg = 'Changed format to Name & Email' log . debug ( msg ) self . notify ( msg ) run_alfred ( '{} ' . format ( CONFIG_KEYWORD ) )
Change format between name+email and email-only.
Change format between name + email and email - only .
"""Change format between name+email and email-only.""" # Re-open settings
self