Store history of visited folders in a hand-written tree data structure. When the app exists, save the history to a file specified by the --history-file arg, and load it when the app is started the next time.
Bump version number to 0.0.4
todo:
[x] fix: history tree goes out of sync with actual folder when following symlinks...
[x] update README.md with documentation of --history-file arg.
[x] play around with this for a while and see if the history file becomes huge. If it does, implement some periodical trimming of the tree, with last_visited_timestamp or something.
After more than 1 month of testing, my history tree file is around 9 kB, so I see no reason to trim the file for now.
Store history of visited folders in a hand-written tree data structure. When the app exists, save the history to a file specified by the
--history-file
arg, and load it when the app is started the next time.Bump version number to 0.0.4
todo:
--history-file
arg.last_visited_timestamp
or something.After more than 1 month of testing, my history tree file is around 9 kB, so I see no reason to trim the file for now.
This PR supersedes #21, and fixes #22, fixes #7.