Skip to content

Instantly share code, notes, and snippets.

@sri
Last active April 8, 2016 17:07
Show Gist options
  • Save sri/f2abfaac19dc439a687d to your computer and use it in GitHub Desktop.
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
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")
@clayenga
Copy link

clayenga commented Apr 8, 2016

Thank you for this! I've wanted this feature for a long time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment