Reputation: 52528
When I press command + shift + f, I can search for all instances of a string in an entire project.
But when I do it a second time, it brings up the second search in the same panel. This gets very messy very quickly when conducting many searches.
Question: How can I bring up the second (and subsequent) search results in their own, new panel?
Example: 5 searches would result in 5 result sets each of their own panels (i.e. 5 panels total). Also, if possible, I'd like to set this as a default for future if it's simple to do so.
Upvotes: 1
Views: 148
Reputation: 701
There is currently no way to have different search results buffer for different searches. All of the search results would be appended in the buffer with the name Find Results
.
If you want different different search result tabs, then you will need to rename the current search result buffer with a different name than Find Results
i.e. Find Results (1)
. This way, the next time, you perform a find in files, ST would create a new Find Results
buffer.
It's actually quite simple to write a small plugin that uses View.set_name()
to set the name of the current buffer and then you can bind it to a key (So that you can just change the Find buffer name in one stroke and have other search results in new buffers)
Upvotes: 4