sublimetext2 - Select and 'go to selection' in Sublime -


i work files containing names other files: stacktraces, documentation, etc. need jump specific file/position , select part of line containing filename, copy it, open 'go to' window , paste , press enter.

it's working fine, pollutes clipboard.

are there solutions open 'go to' window text selected inserted there? i've checked default keymap , found nothing that.

nothing built in, can plugin.

import sublime_plugin   class gotofilecommand(sublime_plugin.windowcommand):     def run(self):         window = self.window         view = window.active_view()         regions = view.sel()         if len(regions) == 1:             if not regions[0].empty():                 window.run_command("show_overlay",                                    {"overlay": "goto", "show_files": true,                                    "text": view.substr(regions[0])})                 return         window.run_command("show_overlay", {                            "overlay": "goto", "show_files": true}) 

then rebind ctrl/cmd+p go_to_file.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -