Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't strip special characters from view name

The view name is more useful if it has the exact shell command that was
executed. Users can choose how to sanitize the command if they decide to save
its output.
  • Loading branch information...
commit e5ae93698637e5d935ea51467dc8985345c25b93 1 parent 75d9a04
@misfo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  shell_turtlestein.py
View
2  shell_turtlestein.py
@@ -169,7 +169,7 @@ def process_region(self, active_view, selection, cwd, shell_cmd, outpt):
elif outpt == '>':
self.window.run_command("new_file")
new_view = self.window.active_view()
- new_view.set_name(re.sub(r"[<>:\"/\\|?*]", " ", shell_cmd).strip())
+ new_view.set_name(shell_cmd.strip())
edit = new_view.begin_edit()
new_view.insert(edit, 0, output)
new_view.end_edit(edit)

0 comments on commit e5ae936

Please sign in to comment.
Something went wrong with that request. Please try again.