diff --git a/README.md b/README.md index 312fef0..2e52b93 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -# Beau +# Sublime Beau + +![Usage Example](/images/demo.gif?raw=true) ## Description This plugin allows you to use beau on your beau files without having to leave sublime. diff --git a/beau.py b/beau.py index 8230924..bb89811 100644 --- a/beau.py +++ b/beau.py @@ -26,13 +26,7 @@ class BeauCommand(sublime_plugin.TextCommand): active_window.status_message('Beau can only be ran on yaml files.') return - print([ - settings, - self.path, - '-c', - active_view.file_name(), - '--clean-list' - ]) + print('Using ' + self.path) proc = Popen([ self.path, @@ -91,10 +85,16 @@ class BeauCommand(sublime_plugin.TextCommand): alias ], stdin=PIPE, stdout=PIPE, stderr=PIPE, shell=True) + for line in iter(proc.stderr.readline, b''): + print(line) + active_window.status_message(line.decode("utf-8")) + response = [] for line in iter(proc.stdout.readline, b''): response.append(line.rstrip()) + active_window.status_message('') + status, endpoint, headers, body = response status = status.decode('utf-8') diff --git a/images/demo.gif b/images/demo.gif new file mode 100644 index 0000000..6d48d76 Binary files /dev/null and b/images/demo.gif differ