Documentation
¶
Overview ¶
Package recent remembers which projects were opened, so the home screen can offer the common path in one keypress rather than three levels of explorer.
Index ¶
Constants ¶
const Max = 20
Max is how many projects are kept: long enough to cover a week of work, short enough that the card stays a shortlist rather than becoming a history.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add puts ref at the top, drops any earlier visit to the same project, and trims the list to Max.
func List ¶
List reads the most recent n projects, newest first.
A missing file, an unreadable one and a corrupt one all list nothing and report no error. This is a convenience cache: none of those is worth stopping the home screen for, and every one of them is indistinguishable to the reader from "you have not opened anything yet".
Types ¶
This section is empty.