Esempio n. 1
0
    def run(self, view, contexter, kw):
        matches = []

        for i, selection in enumerate(contexter):
            args = kw.copy()

            if self.last_matches and not i >= len(self.last_matches):
                last_match.update(self.last_matches[i])

            zencoding.run_action(args.pop('action'), editor, **args)
            matches.append(last_match.copy())

        self.last_matches = matches
Esempio n. 2
0
    def run(self, view, contexter, kw):
        matches = []

        for i, selection in enumerate(contexter):
            args = kw.copy()

            if self.last_matches and not i >= len(self.last_matches):
                last_match.update(self.last_matches[i])

            zencoding.run_action(args.pop('action'), editor, **args)
            matches.append(last_match.copy())

        self.last_matches = matches