Just occurred to me (sorry if this is obvious) that the export tab could let you type in a couple of tag/value pairs and generate a link to OSMXAPI of the area with the filter you've specified. So you could export (e.g.) all train lines within the visible area, without too much new code...