(self, edit)
| 254 | |
| 255 | class SelectLinesCommand(sublime_plugin.TextCommand): |
| 256 | def run(self, edit): |
| 257 | buffers = get_buffer_text(self.view) |
| 258 | findstr = get_console_text(self.view).strip('\n').split('\n') |
| 259 | if len(findstr) == 0: |
| 260 | sublime.message_dialog('[error] Please select input text and input finding strings') |
| 261 | return |
| 262 | |
| 263 | text = '' |
| 264 | for line in buffers.split('\n'): |
| 265 | for fs in findstr: |
| 266 | if fs in line or fs == line: |
| 267 | text += line.strip() + '\n' |
| 268 | |
| 269 | new_view(self.view, edit, text) |
| 270 | |
| 271 | |
| 272 | class AddPrefixSuffixCommand(sublime_plugin.TextCommand): |
nothing calls this directly
no test coverage detected