diff --git a/TeXmacs/progs/link/link-navigate.scm b/TeXmacs/progs/link/link-navigate.scm index b0a5ec7fc3e48b100ab46ef3024a706b81930b93..be440e3b9562c3422b230727897cbefe2bf545ef 100644 --- a/TeXmacs/progs/link/link-navigate.scm +++ b/TeXmacs/progs/link/link-navigate.scm @@ -482,6 +482,7 @@ (cond ((== qry "") (noop)) ((== fm "tmu-file") (texmacs-file-post qry)) ((== fm "texmacs-file") (texmacs-file-post qry)) + ((== fm "unix-executables-file") (texmacs-file-post qry)) ((== fm "generic-file") (generic-file-post qry)) ((== fm "scheme-file") (source-file-post qry)) ((== fm "cpp-file") (source-file-post qry)) diff --git a/devel/202_57.md b/devel/202_57.md index 0f19b6503646e556466710b13ee32f369d7d35ad..c14379c67099cd82037830f583184a33eb8e1e6a 100644 --- a/devel/202_57.md +++ b/devel/202_57.md @@ -6,6 +6,17 @@ 3. 点击“website link”和“file link”应当处于编辑文本状态 4. 将鼠标悬停在它们上面,应该显示:"按住CTRL并单击鼠标以跟踪链接:" + (链接地址) 5. 按住CTRL并单击它们,应当转跳到网页和外部文件 +6. 打开`TeXmacs\tests\tmu\61_2_python_plugin.tmu`,点击目录应该能正常转跳 + +## 2025/11/28 +### What +打开某些文件的超链接时无法转跳到对应文档位置 + +### Why +部分文件的文档内锚点,由于它的url节点构造不包含suffix部分(如:``,仅仅只有`qry=auto-1`,`suffix=空`),会被`file-format`函数默认识别成"unix-executables-file",在`default-post-handler`中并没有对这种默认作处理,导致无法转跳。 + +### How +现加上这个分支并正常走`(texmacs-file-post qry)`即可 ## 2025/11/17 ### What