I want to make a simple plugin that will show a popup Output
in a certain view after a build is completed.
But It shows the popup when I press Ctrl+B or click “Build” from the menu,
But I want it to call show_popup()
function after the build is finished.
Is there any separate EventListener to implement this?
Here is the python script that I made:
import sublime
import sublime_plugin
import time
import threading
class BuildAndAlertCommand(sublime_plugin.EventListener):
def on_post_window_command(self, window, command_name, args):
if(command_name == "build"):
v = window.find_open_file("output.txt")
v.show_popup("Output")