def get_user_selection(self, sel):
""" get user selection and return her in string """
# get the whole word from this point
self.location = sel;
get_word = self.view.word(sel)
self.word_point = get_word
# pt1 = get_word.begin()
# pt2 = get_word.end()
# self.view.add_regions('ToolTipHelper', [sublime.Region(pt1, pt2)], 'invalid', '' , sublime.DRAW_NO_FILL)
# get the word in string
get_word_str = self.view.substr(get_word)
return get_word_str.strip()
评论列表
文章目录