Skip to main content

Module welcome

Module welcome 

Source
Expand description

What a host started outside a project shows: the recent projects (speccoder’s own state, written when a project is opened or created) and folder names to choose from — read-only, under the person’s home.

Structs§

Recent
A recent project.
RecentView
A recent project as the welcome shows it.

Constants§

MAX_FOLDERS
The most folder names one listing returns.
MAX_RECENT
The most recent projects kept.

Functions§

default_parent
Where New Project puts a folder by default: beside the last project speccoder created, else ~/Workspaces when it exists, else home.
folders
Folder names under under (which must lie in the person’s home): directories only, hidden ones only when under’s last part asks for them, at most MAX_FOLDERS. under may end in a partial name: the folders of its parent that start with it.
forget
Removes the project at root from the recent ones.
is_project
Whether a host started at path serves it right away: a spec project, or a git repository (the setup assistant takes over there). Anywhere else the host serves the welcome.
recent
The recent projects, newest first.
remember
Records that the project at root was opened (or created) now.
tilde
~/x for a path under the home directory.
views
The recent projects with whether each folder is still there (nothing of a missing one is read) and Undo on a project created in the last day.