Recent File Manager

Intr

usage


recent.get().push(filename)

TODO : 要改进一下,不光记录文件路径,还应该记录文件的元信息,以便找到对应的打开方法,及打开时所选参数

API

interface imagect.api.recent.IRecent[source]

push a file to recent file list

push(file)

add to top a the list

clear()

clear the list

getFiles()

return a list a files

imagect.api.recent.get()[source]

IMPL

+:undoc-members: :show-inheritance:

class imagect.core.recent.Rec(time, path)

Bases: tuple

path

Alias for field number 1

time

Alias for field number 0

class imagect.core.recent.Recent[source]

Bases: object

recent file manager

clear()[source]

clear the list

getFiles() → List[str][source]

return a list a files

load()[source]

load file list from file

push(path: str)[source]

add to top a the list

if exist in the list, remove and then push to top

save()[source]