コード例 #1
0
    def doShowMarked(self):

        self.clear()
        c = self.c
        pl = leoNodes.poslist()
        for p in c.all_positions():
            if p.isMarked():
                pl.append(p.copy())
        self.addHeadlineMatches(pl)
コード例 #2
0
ファイル: quicksearch.py プロジェクト: Armagedoom/leo-editor
    def doShowMarked(self):

        self.clear()
        c = self.c
        pl = leoNodes.poslist()
        for p in c.all_positions():
            if p.isMarked():
                pl.append(p.copy())
        self.addHeadlineMatches(pl)
コード例 #3
0
    def doNodeHistory(self):

        nh = leoNodes.poslist(po[0] for po in self.c.nodeHistory.beadList)
        nh.reverse()
        self.clear()
        self.addHeadlineMatches(nh)
コード例 #4
0
 def getSelectedPositions(self):
     items = self.getSelectedItems()
     pl = leoNodes.poslist(self.item2position(it) for it in items)
     return pl
コード例 #5
0
ファイル: baseNativeTree.py プロジェクト: chiamingyen/misc
 def getSelectedPositions(self):
     items = self.getSelectedItems()
     pl = leoNodes.poslist(self.item2position(it) for it in items)
     return pl
コード例 #6
0
ファイル: quicksearch.py プロジェクト: Armagedoom/leo-editor
    def doNodeHistory(self):

        nh = leoNodes.poslist(po[0] for po in self.c.nodeHistory.beadList)
        nh.reverse()
        self.clear()
        self.addHeadlineMatches(nh)