Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A Sublime Text plugin to demonstrate the quick panel width/margin/padding bug
#
# ST Command: quick_panel_bug_demo
#
# Run from the console with the command:
# window.run_command("quick_panel_bug_demo")
#
# Or assign it to a key binding using:
# { "keys": ["ctrl+whatever"], "command": "quick_panel_bug_demo" }
#
import sublime, sublime_plugin
class QuickPanelBugDemoCommand(sublime_plugin.WindowCommand):
def run(self):
display_text = []
display_text.append("1234567-10-234567-20-234567-30")
display_text.append("1234567-10-234567-20-234567-30-234567-40")
display_text.append("1234567-10-234567-20-234567-30-234567-40-234567-50")
display_text.append("1234567-10-234567-20-234567-30-234567-40-234567-50-234567-60")
# display_text.append("1234567-10-234567-20-234567-30-234567-40-234567-50-234567-60-234567-70")
# display_text.append("1234567-10-234567-20-234567-30-234567-40-234567-50-234567-60-234567-70-234567-80")
# display_text.append("1234567-10-234567-20-234567-30-234567-40-234567-50-234567-60-234567-70-234567-80-234567-90")
# display_text.append("1234567-10-234567-20-234567-30-234567-40-234567-50-234567-60-234567-70-234567-80-234567-90-23456-100")
self.window.show_quick_panel(display_text, self.on_quick_panel_done)
def on_quick_panel_done(self, index):
# Do nothing.
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.