Write all marked items for --choosefiles

This facilitates the opening of additional related files in nearby directories.