def getFilesToUse(self): # if we have select files, those, otherwise hovered toUse = self.getSelectedFiles() if not toUse: toUse = self.getHoveredFiles() # save the selection we are using output.outputSelection(toUse) return toUse
def getPathsToUse(self): # if we have selected paths, those, otherwise hovered toUse = self.getSelectedPaths() if not toUse: toUse = self.getHoveredPaths() # save the selection we are using if self.cursesAPI.allowFileOutput(): output.outputSelection(toUse) return toUse