Feature: add a remote Open command with large-file confirmation

Add an Open item atop the remote file list context menu: a single file is
pulled back and previewed through the existing flow, a single folder
navigates into its subdirectory, and multi-selection disables it. Files
over the 8 MiB preview limit ask for confirmation; once confirmed the
explicit-open path caps the first-packet size gate at the confirmed size
and relaxes the hash query, total timeout and cache eviction so even very
large files transfer and open. When preview is disabled the explicit Open
shows a message instead of doing nothing. Double-click preview behavior is
unchanged. Localize the new menu item and dialogs in en_US/zh_TW/de_DE.

Co-Authored-By: Qoder
This commit was merged in pull request #11.
This commit is contained in:
yuanyuanxiangandQoder committed 2026-12-05 19:55:51 +01:00
1 parent ee20326bbf
commit 4bc51d2498
8 files changed
+113 -18

No files matched your search

+6
View File
@@ -2383,3 +2383,9 @@ MCP
正在预览 %s ...=Previewing %s ...
获取远程文件信息失败(错误码 %u)=Failed to get remote file information (error %u)
预览下载失败(错误码 %u)=Preview download failed (error %u)
; File manager remote Open (preview) menu + large-file confirmation
打开(&O)=&Open
文件较大:%s(%llu MB,超过 %u MB 预览上限)。\n仍要传输到本机并打开吗?大文件传输可能耗时较长。=Large file: %s (%llu MB, exceeds the %u MB preview limit).\nTransfer it to this machine and open anyway? Large transfers may take a while.
; File manager remote Open: preview disabled feedback
预览功能已禁用,无法打开文件。可在参数中启用预览后重试。=Preview is disabled, so the file cannot be opened. Enable preview in Settings and try again.