Total Complexity | 8 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 5 | ||
Bugs | 0 | Features | 3 |
1 | # coding=utf-8 |
||
6 | class QuickGotoFileCommand(QuickGotoCommand): |
||
7 | def run(self, edit): |
||
8 | for sel in self.view.sel(): |
||
9 | if sel.empty(): |
||
10 | self.view.window().run_command("show_overlay", {"overlay": "goto", "show_files": True}) |
||
11 | else: |
||
12 | word_sel = self.view.substr(sel) |
||
13 | word_sel = word_sel.strip() |
||
14 | self.view.window().run_command("show_overlay", {"overlay": "goto", "show_files": True, "text": word_sel}) |
||
15 | self.view.window().run_command("select_all") |
||
16 | |||
17 |