def new_method(self, words): if len(words) == 1: api.send_string( 'def (self):{left}{left}{left}{left}{left}{left}{left}') return func_name = baseutils.get_case(words[1:], self.variable_mode) api.send_string('def {}(self):{{left}}{{left}}'.format(func_name))
def guess_at_text(words): words = [baseutils.get_homophone(word) for word in words] if words[0] in baseutils.VARIABLE_TYPES and len(words) > 1: return baseutils.get_case(words[1:], words[0]) return create_variable_name(words)
def new_method(self, words): if len(words) == 1: api.send_string('def (self):{left}{left}{left}{left}{left}{left}{left}') return func_name = baseutils.get_case(words[1:], self.variable_mode) api.send_string('def {}(self):{{left}}{{left}}'.format(func_name))
def word_sep(self, words): word = baseutils.get_case(words[1:], words[0]) api.send_string(word)
def word_sep(self, words): # hom_words = [baseutils.get_homophone(w) for w in words[1:]] word = baseutils.get_case(words[1:], words[0]) api.send_string(word) vimextension.VimExtensionGrammar.definitions.append('{}_variable'.format(word))
def word_sep(self, words): # hom_words = [baseutils.get_homophone(w) for w in words[1:]] word = baseutils.get_case(words[1:], words[0]) api.send_string(word) vimextension.VimExtensionGrammar.definitions.append( '{}_variable'.format(word))