Title

recent -- Recently used files and directories

Syntax

recent [data]

recent {cdl | project | sql path | other data}

Description

recent displays lists of recently used data and locations, of a few varieties. The lists are in chronological order, and include clickable links to switch to or use most of the locations/data sources.
The lists are remembered across Stata sessions, and are specific to stata instances, when instance is turned on using elfs startup.

The most recent entry in the list is the current one, which (except for other data) plays a special role in most commands that use the data or locations.

Data Sources

recent [data] lists the current and recent data sources. The current data source is, roughly, the most recently used external source of data; the commands that set the current data source are:

usel, always

clearl, always

sql get, always

sqli and sql do, when they download data

collect, when not appending

savel, when it saves all the data in memory to a stata file

usel, savel, and collect set the data source to the (first) file that they use or save.
clearl sets the data source to 'none', empty. sql get and sql i set it to the query they used.
sql do is similar to clearl -- it is identified as the current source of data, but the query isn't retained or reusable.

Window Title

When the current data source is updated, the main window title is updated to reflect it. You can specify how the currrent data source is reflected in the window title with elfs misc.

Directories

recent cdl and recent project list recent working and project directories, respectively, both of which are set with the cdl command.

recent sql path lists those, as described in sql path.

Other Data

recent other data lists recent data files other than recent data sources. Specifically, data files used by finddata, collect, and savel (when saving partial datasets or foreign formats).