Trying to learn plugin dev for adding a feature in this plugin: github.com/divmain/GitSavvy
On core\commands\log.py:98 there’s
self.window.run_command("gs_log", {"filename": self.file_path})
This is supposed to run git log
(or some variation of it) but I’m trying to understand what exactly does run_command
do?
I’m looking at the API reference where it says it “Runs the named Command with the (optional) given arguments. Window.run_command is able to run both any sort of command, dispatching the command via input focus.”
So it’s obviously running the gs_log
command but where exactly does gs_log
come from? I’ve searched the code for gs_log
but all mentions of it are only in using it, I couldn’t find the actual definition anywhere. Either the definition is not by the same name (gs_log
), or that it’s actually a part of Sublime itself (I’m thinking unlikely because I couldn’t find anything).
Essentially I want to find out where exactly does this code go next? Where might gs_log
be defined?
Any help appreciated…