Filter and view by Labels

Hi,
I am new to scrivener and already find it is transforming my redraft of my latest manuscript. I wondered if it is possible to search documents by their label status and have just those with a certain status appear in the cork board? Further than this is it possible to view all text throughout a manuscript, that share a certain label status, as one single document/text view (omitting any text that does not share the selected label)?

Many thanks in advance!

Filtering in either the corkboard or outliner view can be accomplished with a simple ⌘F. Click the expansion arrow on the left to reveal further options, such as label inclusion/exclusion. Visit §11.4, Filter Outliner & Corkboard Views, in the user manual PDF, for more information on that feature.

Now from there you could also go on to edit the filtered documents as a pseudo-text file, via the Scrivenings feature. You’ll need to make the filtered collection of files a thing, to do so however. This is easy to do:

  1. ⌘A to select all of the filtered cards.
  2. Tap the Spacebar to load the selection into the editor. Yeah, seems redundant, but look at what happens. The header bar changes to “Multiple Selection”, and the filter goes away. Notably, what you’ve done is similar to clicking on a folder or an item in the binder. What you now have is a loose collection of items that, although the collection doesn’t “exist” in the binder like a folder does, but it does exist in your editor history, meaning you can jump back to it in the future via the Back button in the header bar.

With this being a “thing” now, we can freely switch between Corkboard, Outliner and Scrivenings view (⌘1), the latter of which will let us edit this selection as though it were a linear text document.

There is another approach as well, and that is using the Project Search tool. Click on the magnifying glass in the toolbar to open that, type in the label name above the binder, and now you have a list of documents in the sidebar that use this label. Click the “hook arrow” button in the header bar to load that into the main editor, where it can be edited in Scrivenings, etc.

Searches can be saved as Collection tabs. That will be a useful technique for stuff you want to do this for regularly. Useful points of reference:

  • §10.2, Using Collections, pg. 220.
  • §10.2.4, Saved Search Result Collections, pg. 227.
  • §11.1, Project Search, pg. 254.
  • §6.4, Multiple Selections, pg. 108.

You can do both these things, although note that when you do this, you won’t be able to move things around in the corkboard since you’ll be looking at an arbitrary set of documents and not the subdocuments of any particular folder.

Anyway, what you need for this job is Collections. Try this:

  1. Use project search by clicking the magnifying glass in the toolbar or hitting Shift-Cmd-F.

  2. Click on the little magnifying glass or down-arrow icon in the left of the search field that appears above the binder. Options will appear to refine your search.

  3. Choose to search by label.

  4. Type the name of the label you want to find in the search field.

At this point, the search results will show all documents in the project that use the label you are interested in. (If you only want to view documents with this label that are inside the Draft folder, there’s an option for that in the list too.)

You can just use the search results, but I’m assuming that you might want to do this frequently, in which case you can save this search as a collection like this:

  1. Click on the leftmost icon in the toolbar - the view options item - and choose “Show Collections”. You’ll see that by default there is just the binder and the search results here.

  2. Now click on the magnifying glass/arrow in the search filed again, and this time choose “Save Search as Collection…” from the bottom of the menu list.

  3. Save the collection.

Now you can click on the binder, the search results or your new collection. The collection will always show the documents that have this label applied. (You can change the colour of the collection using the down-pointing chevron next to the collection name in the header bar at the top of the binder, but you’ll probably want to leave it using the label colour.)

Now try clicking on the curved arrow next to the “x” in the collection header bar. This will load the entire contents of the collection into the current editor group view mode - on the corkboard, in the outline, or as scrivenings. This does exactly what you want, in other words. (You can do this with the search results, so you didn’t have to save a collection, but the collection is useful if you want to view documents with this label regularly.)

Hope that helps,
Keith

P.S. Ninja’d by Ioa.