Last active
April 8, 2016 17:07
-
-
Save sri/f2abfaac19dc439a687d to your computer and use it in GitHub Desktop.
Have Sublime Text 3 open "Find in Files..." is a new buffer each time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sublime, sublime_plugin | |
# Open "Tools" -> "New Plugin..." and paste this in. And save it. | |
# Although we reuse the name Find for each buffer, Sublime will | |
# open each one in a new "Find" buffer. | |
# | |
# NOTE: This will break other plugins that depend on the find results | |
# buffer being name "Find Results". | |
class FindInFilesNewBufferForEverySearch(sublime_plugin.EventListener): | |
def on_activated_async(self, view): | |
if view.name() == "Find Results": | |
view.set_name("Find") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for this! I've wanted this feature for a long time.