Pinned Results
A pinned result is a snapshot of a search’s matches, kept in a tab of the Pinned results panel. The search panel shows one search at a time; pin a search to keep its matches at hand while you run others.
Pin the results of a search
Section titled “Pin the results of a search”Run a text or regular expression search, open the actions row with More actions (…) in the search panel, and select Pin. The Pinned results panel opens in the sidebar with a tab for the search.
Pin appears after a search that finished with at least one match, including the result of a combined search. It is not available for hex byte and strings searches.
A pinned tab keeps the first 10,000 matches of the search. If the search found more, Vaste shows Pinned first 10,000 of followed by the total. See The 10,000-match limit.
Open the Pinned results panel
Section titled “Open the Pinned results panel”Press Ctrl + Shift + P, select the pin icon in the sidebar rail, or select More actions (…) → Pinned results. The panel opens only when at least one result is pinned.
Each row in a tab shows the line number and the text around the match. Select a row to scroll to its line.
Work with pinned tabs
Section titled “Work with pinned tabs”Each tab shows a label and the number of matches. The label is the search pattern, or the chain for a combined search, shortened when it is long. A ⁺ after the number means the search found more matches than the tab keeps. Hover over a tab to see the full pattern, the number of matches, and how long the search took.
- Rename a tab: double-click its label, type a name, and press
Enter. PressEscto keep the old name. - Close a tab: select the close button on the tab (Close pinned result).
The panel holds up to 10 tabs. When you pin an eleventh result, Vaste closes the oldest tab and shows Closed oldest pinned tab with its label.
Stale tabs
Section titled “Stale tabs”A pinned tab records line numbers. If the file changes in a way that can move lines, Vaste marks the tab stale. Hover over the mark to see file changed since pinning, line numbers may be off, followed by click the marker to run the search again when the tab can be re-run.
A tab becomes stale when:
- A reload finds that the file changed somewhere other than at its end, for example when it was rewritten or truncated.
- A reload fails.
- You reopen the file with another encoding.
A reload that only adds lines to the end of the file keeps the tabs current, because the existing lines do not move. A stale tab still lists its matches, but rows whose text had not loaded yet show … instead.
To bring a stale tab up to date, select its stale marker (Run this search again). Vaste runs the tab’s search again with the same pattern and options, without changing the search panel, and replaces the matches in the tab. The tab keeps its position and its label, including a name you gave it. While the search runs, the marker shows a spinning icon.
A tab pinned from a combined search cannot be re-run, because its matches came from several searches. Its marker is plain text. Run the combination again and pin it to get a current tab.
How long pinned results last
Section titled “How long pinned results last”Pinned results stay until you close the file or open another file with Open file. They are not saved with the session, so they are gone after you restart Vaste.
Next steps
Section titled “Next steps”- Combining searches: pin the lines that match several searches
- Live reload: how reloads affect search results