@@ -46,8 +46,7 @@ def get_viewer():
4646 viewer = get_plugin (viewer_name )
4747 except NoSuchPluginException :
4848 sublime .error_message (
49- f"Cannot find viewer { viewer_name } .\n "
50- "Please check your LaTeXTools Preferences."
49+ f"Cannot find viewer { viewer_name } .\n Please check your LaTeXTools Preferences."
5150 )
5251 raise NoViewerException ()
5352
@@ -69,7 +68,6 @@ def get_viewer():
6968# Jump to current row in PDF file
7069# NOTE: must be called with {"from_keybinding": <boolean>} as arg
7170class LatextoolsJumptoPdfCommand (sublime_plugin .WindowCommand ):
72-
7371 def is_visible (self ):
7472 view = self .window .active_view ()
7573 return view and view .match_selector (0 , "text.tex" )
@@ -102,12 +100,14 @@ def run(self, **args):
102100 if from_keybinding :
103101 forward_sync = True
104102
105- logger .debug (f"from_keybinding={ from_keybinding } , keep_focus={ keep_focus } , forward_sync={ forward_sync } " )
103+ logger .debug (
104+ f"from_keybinding={ from_keybinding } , keep_focus={ keep_focus } , forward_sync={ forward_sync } "
105+ )
106106
107107 file_name = view .file_name ()
108108 if not is_tex_file (file_name ):
109109 if from_keybinding :
110- file_name = os .path .basename (file_name ) if file_name else ' untitled'
110+ file_name = os .path .basename (file_name ) if file_name else " untitled"
111111 sublime .error_message (f"{ file_name } is not a TeX source file: cannot jump." )
112112 return
113113 # If not invoked from keybinding, it is invoked by the
@@ -188,7 +188,6 @@ def run(self, **args):
188188
189189
190190class LatextoolsViewPdfCommand (sublime_plugin .WindowCommand ):
191-
192191 def is_visible (self , * args ):
193192 view = self .window .active_view ()
194193 return view and view .match_selector (0 , "text.tex" )
0 commit comments