コード例 #1
0
    def run(self, edit):
        global project_base_directory

        directory = Validate.view(self.view, config)
        if directory is False:
            # validates adjusted project directory which may become annoying since project is still valid
            return sublime.status_message(
                "FuzzyFilePath: Abort. Current file is not within a project")

        project_base_directory = directory["base"]
        ffp_settings = get_ffp_project_settings()
        project_directory = ffp_settings.get("project_directory", "")
        sublime.active_window().show_input_panel(
            "FuzzyFilePath: change project directory to a sub directory",
            project_directory, changeDirectoryDone, changeDirectoryChange,
            changeDirectoryCancel)
コード例 #2
0
    def run(self, edit):
        global project_base_directory

        directory = Validate.view(self.view, config)
        if directory is False:
            # validates adjusted project directory which may become annoying since project is still valid
            return sublime.status_message("FuzzyFilePath: Abort. Current file is not within a project")

        project_base_directory = directory["base"]
        ffp_settings = get_ffp_project_settings();
        project_directory = ffp_settings.get("project_directory", "")
        sublime.active_window().show_input_panel(
            "FuzzyFilePath: change project directory to a sub directory",
            project_directory,
            changeDirectoryDone,
            changeDirectoryChange,
            changeDirectoryCancel
        )
コード例 #3
0
 def run(self, edit):
     project = ProjectManager.get_current_project()
     if project:
         Validate.view(self.view, project.get_settings(), True)
コード例 #4
0
 def run(self, edit):
     Validate.view(self.view, settings.current(), True)