def open_config_file(config: Config, file_path: Optional[Path] = None):
    """Opens the config file in the respectable editor for that platform."""
    editor = config.editor
    platform = utils.what_platform()

    if editor is None: 
        env_editor = os.environ.get("EDITOR")        

        if env_editor is not None:
            editor = env_editor
        else:
            if platform == "Windows":
                editor = "notepad"
            elif platform == "Darwin":
                editor = "nano" # NOTE: https://support.apple.com/guide/terminal/use-command-line-text-editors-apdb02f1133-25af-4c65-8976-159609f99817/mac
            elif platform == "iOS":
                editor = "vi"
            elif platform == "Linux" or platform == "Android":
                editor = "nano"

    mov_cli_logger.debug("Opening config file...")

    appdata_path = utils.get_appdata_directory(platform)

    try:
        check_call([editor, config.config_path if file_path is None else appdata_path.joinpath(file_path)])
    except (FileNotFoundError, CalledProcessError) as e:
        mov_cli_logger.error(
            f"Failed to open config file with the editor '{editor}'! Error: {e}" \
                f"\nYou can manually edit it over here: '{config.config_path}'."
        )
Opens the config file in the respectable editor for that platform.
mov_cli/cli/configuration.py