Documentation
¶
Overview ¶
Package session makes and finds the dated markdown files that the start screen's New Session and Last Session open: one file a day, named for the date, in a sessions folder.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultDir ¶
DefaultDir is the sessions folder when none is set, under home.
func Dir ¶
Dir is the sessions folder: folder, with a leading ~ for home, or DefaultDir when folder is "".
func Last ¶
Last is the markdown file in dir changed last, or "" if dir has none or isn't there. Files in folders under dir aren't looked at.
func LoginShell ¶
LoginShell is the shell a new session's blocks run in: $SHELL, as environ has it, when it is zsh or bash, so the History pane is the shell you use and reads its rc file. Otherwise it is "", for the default /bin/sh, since mdsh runs only sh-like shells.
func Today ¶
Today is the path of the session for now's day in dir. If it isn't there it is made, with dir, as a copy of template, or a heading for the date when template is "", under front matter that sets the shell to shell unless shell is "". It reports whether it made the file; a file already there is left as it is.
Types ¶
This section is empty.