I implemented it by changing the plugin which opens the file path panel.
To do the file path auto completion on the panels, now it is necessary to import the class:
try:
from AutoFileName.autofilename import FileNameComplete as NameComplete
class SampleListener(sublime_plugin.EventListener):
def on_post_window_command(self, window, command, args):
if command == "hide_panel":
NameComplete.isOnFilePathPanel = False
except:
class NameComplete():
isOnFilePathPanel = False
And set the attribute NameComplete.isOnFilePathPanel = True
, when opening the panel.