From 2e78664c55c7108309b979b2776536bae5bad845 Mon Sep 17 00:00:00 2001 From: David Diaz Date: Sat, 21 Oct 2017 01:18:30 -0600 Subject: [PATCH] Added support for the documentation field. --- beau.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/beau.py b/beau.py index c252124..6e5fd00 100644 --- a/beau.py +++ b/beau.py @@ -42,9 +42,16 @@ class BeauCommand(sublime_plugin.TextCommand): self.requests[:] = [] for line in iter(proc.stdout.readline, b''): req = line.decode('utf-8').rstrip().split('\t') - method, alias, endpoint = req - self.requests.append(req) - requests.append([alias, endpoint]) + if len(req) == 3: + method, alias, endpoint = req + requests.append([alias, endpoint]) + self.requests.append(req) + elif len(req) == 5: + method, alias, endpoint, title, description = req + self.requests.append([method, alias, endpoint]) + requests.append([title, description]) + + proc.wait() active_window.show_quick_panel(requests, self.on_done)