Came across this "Create layer with selected" button in the result for a Spatial Query in QGIS. And simply, this creates another layer from the same source with a query on the IDs. Does anyone know if this is available elsewhere in the GUI too? I looked around and couldn't find it, but it'd sure be handy.
There's been some confusion as to what I'm asking. I will try to clarify. If there is a subset of features I want to work with, I begin with selecting them; this could be a spatial query, manual selection, or query by attributes. Once these are selected, if I don't want to create a new shapefile (or whatever), but instead work with and maybe modify the original data, I duplicate the layer and do a query on it. If it's a subset based on a common attribute, this is fairly straightforward, but if the attributes aren't common, I either have to type in every ID into the query or export the selection into a table, copy the ID column, paste it into notepad, find and replace characters to get the search string I'm looking for, copy that and paste it into the definition query with the additional search verbiage. This button does all that for me in a second. I'm not looking to create a new shapefile. I just want a defined subset to work with in the original data. That what this button does. It takes the IDs of the selected features and creates a new layer from the original source and defines a query on the IDs for the layer.