Looking to create a keymap command string latexmk -c $TM_FILENAME or self.view.file_name() that will run (under the hood) and automatically recognize the name of the open file that has keyboard focus.
I have not yet figured out a method of creating a keymap that specifically uses $TM_FILENAME or self.view.file_name(). I have, however, been able to create a plugin that does: