Last active
September 11, 2016 13:51
A Sublime Text plugin to demonstrate the quick panel width/margin/padding bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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