Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 2, 2025

Insta360Studio ships its own QuickLook with identical name and activation. When both are installed, pressing space on .insv files triggers both applications simultaneously.

Changes

  • New plugin: QuickLook.Plugin.InsvBlocker
    • Priority: int.MaxValue (highest, evaluated first)
    • Returns true for .insv extension in CanHandle()
    • Closes window immediately in View() before becoming visible
    • Allows Insta360Studio's QuickLook to handle the file exclusively

Implementation

public class Plugin : IViewer
{
    public int Priority => int.MaxValue;

    public bool CanHandle(string path)
    {
        return path.EndsWith(".insv", StringComparison.OrdinalIgnoreCase);
    }

    public void View(string path, ContextObject context)
    {
        context.ViewerContent = new TextBlock { Visibility = Visibility.Collapsed };
        context.IsBusy = false;
        
        Application.Current?.Dispatcher?.BeginInvoke(new Action(() =>
        {
            (context.Source as Window)?.Close();
        }), DispatcherPriority.Send);
    }
}

Plugin claims the file with highest priority but immediately closes, preventing UI display while allowing Insta360's handler to proceed.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • esm.ubuntu.com
    • Triggering command: /usr/lib/apt/methods/https (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>QuickLook与insta360Studio专用的QuickLook(两者同名)的兼容性问题</issue_title>
<issue_description>insta360Studio近期发布了其专用的QuickLook:

Image

两者名称、启动方式完全一样。
对于.insv文件(全景视频文件)按空格后会出现两个QuickLook窗口,其中insta360自身的效果更好。
QuickLook有没有办法支持到这种效果,或者有什么办法排除.insv文件?</issue_description>

<agent_instructions>创建一个新的插件,用于屏蔽.insv后缀的文件</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits November 2, 2025 15:51
Co-authored-by: emako <24737061+emako@users.noreply.github.com>
Co-authored-by: emako <24737061+emako@users.noreply.github.com>
Co-authored-by: emako <24737061+emako@users.noreply.github.com>
Copilot AI changed the title [WIP] Add plugin to block .insv file preview Add plugin to block .insv files for Insta360Studio compatibility Nov 2, 2025
Copilot AI requested a review from emako November 2, 2025 15:57
Copilot finished work on behalf of emako November 2, 2025 15:57
@emako emako marked this pull request as ready for review November 6, 2025 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

QuickLook与insta360Studio专用的QuickLook(两者同名)的兼容性问题

2 participants