Skip to content

/资源 搜索与插入资源文件的异常 #12932

Closed
@TCOTC

Description

@TCOTC
Contributor
  1. 无法搜索到超过一层文件夹的资源文件(好像需要重启思源)
  2. 插入的资源文件链接锚文本错误,比如锚文本应该是 一层文件夹.txt ,但实际是 assets/.txt
default.webm

关联 https://ld246.com/article/1728814976221/comment/1730003959220#comments

Activity

88250

88250 commented on Oct 27, 2024

@88250
Member

那个 一层文件夹.txt 是不是之前插入过,不然不应该出现在搜索里的,笔记本级资源文件不支持 /搜索

image

我先关闭了,你确认后给我说声,多谢。

TCOTC

TCOTC commented on Oct 27, 2024

@TCOTC
ContributorAuthor

是 assets 文件夹哇,不是笔记本

image

88250

88250 commented on Oct 27, 2024

@88250
Member

哦哦,不好意思没注意,等会我测试看看。

reopened this on Oct 27, 2024
self-assigned this
on Oct 27, 2024
88250

88250 commented on Oct 27, 2024

@88250
Member
  1. 这个问题是因为用的 github.com/fsnotify/fsnotify 文件系统监听的库不是递归监听,新建文件夹以后需要再次 watch,思源中这种场景不多所以不考虑实现了
  2. @Vanessa219 帮忙看看
added a commit that references this issue on Oct 27, 2024
Vanessa219

Vanessa219 commented on Oct 27, 2024

@Vanessa219
Member

第二点已修复,不拉进版本了。

TCOTC

TCOTC commented on Oct 29, 2024

@TCOTC
ContributorAuthor

应该去掉路径,只保留文件名:

image

88250

88250 commented on Oct 30, 2024

@88250
Member

这个考虑过的,但是觉得有路径信息更好。

TCOTC

TCOTC commented on Oct 30, 2024

@TCOTC
ContributorAuthor

对于插入文件的锚文本来说,路径是多余的,完整的路径可以在悬浮提示里看,或者在链接输入框复制。

默认的资源文件锚文本应该始终是文件名本身。

default.webm
88250

88250 commented on Oct 30, 2024

@88250
Member
added a commit that references this issue on Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@Vanessa219@TCOTC

      Issue actions

        /资源 搜索与插入资源文件的异常 · Issue #12932 · siyuan-note/siyuan