Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

虚拟引用 Virtual ref #2249

Closed
88250 opened this issue Jun 28, 2021 · 11 comments
Closed

虚拟引用 Virtual ref #2249

88250 opened this issue Jun 28, 2021 · 11 comments
Assignees
Labels
Milestone

Comments

@88250
Copy link
Member

88250 commented Jun 28, 2021

虚拟引用是一种根据已有块链的锚文本来自动探测的“块链”,但它并不会真实链接到块上,而是仅在编辑器内标记,并支持浮窗预览。

@88250 88250 added the Feature label Jun 28, 2021
@88250 88250 changed the title 双链探测 反向提及编辑器内标记和浮窗预览(双链探测) Jun 28, 2021
@roverway
Copy link

roverway commented Jun 29, 2021

其实我感觉可以对整个笔记本全部笔记进行分词,允许用户自定义配置添加或忽略某些关键词,之后对剩余词汇做个词云图,或者类似tag列表的东西,点击对应项目就提示相应的笔记或块。

然后能允许求交集并集之类的复杂查询。

似乎比这个探测更好用。

@88250
Copy link
Member Author

88250 commented Jun 29, 2021

@roverway 这个看社区是否有人用挂件块实现

@roverway
Copy link

@roverway 这个看社区是否有人用挂件块实现

现在开发挂件块的用户还很少。挂件块推出早期,D大是否考虑搞几个官方挂件?一方面向用户充分展示挂件的潜力,吸引流量,另一方面,也顺便解决一些问题或者提供一些新特性?

@88250
Copy link
Member Author

88250 commented Jun 29, 2021

@roverway 是有这样的计划,但目前挂件块尚处于早期阶段,预计会在今年第四季度开始着手。

@88250 88250 pinned this issue Jul 20, 2021
@88250 88250 changed the title 反向提及编辑器内标记和浮窗预览(双链探测) 虚幻链接 Jul 20, 2021
@88250 88250 changed the title 虚幻链接 虚幻链接 Virtual Link Jul 20, 2021
@88250 88250 added this to the 1.2.2 milestone Jul 20, 2021
88250 added a commit to 88250/lute that referenced this issue Jul 20, 2021
@deerainw
Copy link

deerainw commented Jul 20, 2021

感觉这个功能上的坑还是很多的,比如:

  • 两个子文件夹下都有名叫「简介」的笔记,有这样的重名笔记时如何处理(没有文件夹系统的大纲笔记就不存在这个问题)
  • 「简介」是一个比较高频的词汇,像这样的高频词汇如果不排除,就会导致满篇都是提示,那就需要有根据用户字典来排除的功能
  • 支持别名也是很自然的需求......
  • 分词问题、性能问题......
    😢

@88250 88250 changed the title 虚幻链接 Virtual Link 虚幻引用 Virtual Ref Jul 20, 2021
@88250
Copy link
Member Author

88250 commented Jul 20, 2021

@deerainw 多谢帮忙考虑,我们补充一下你再看看是否可行:

  • 使用命名、别名来搜索(已有块链的锚文本是否要加入还在考虑),文档名不包含在内
  • 如果有重复命名,通过类似引用数上那样进行多个引用展示
  • 支持别名搜索,不知道你说的是不是这个?
  • 应该没有分词问题,忽略大小写全匹配;性能应该问题不大,一开始的渲染只需要查询一次命名别名,鼠标悬浮的时候才真正搜索加载

其他还有什么地方感觉有问题麻烦再看看,谢谢。

@88250 88250 changed the title 虚幻引用 Virtual Ref 虚拟引用 Virtual ref Jul 20, 2021
88250 added a commit to 88250/lute that referenced this issue Jul 20, 2021
@88250 88250 modified the milestones: 1.2.2, backlog Jul 20, 2021
@88250 88250 unpinned this issue Jul 20, 2021
@deerainw
Copy link

deerainw commented Jul 20, 2021

@deerainw 多谢帮忙考虑,我们补充一下你再看看是否可行:

  • 使用命名、别名来搜索(已有块链的锚文本是否要加入还在考虑),文档名不包含在内
  • 如果有重复命名,通过类似引用数上那样进行多个引用展示
  • 支持别名搜索,不知道你说的是不是这个?
  • 应该没有分词问题,忽略大小写全匹配;性能应该问题不大,一开始的渲染只需要查询一次命名别名,鼠标悬浮的时候才真正搜索加载

其他还有什么地方感觉有问题麻烦再看看,谢谢。

既然命名也避免不了会有重复,那还是包含文档名吧...... 在 roam edit 里,鼠标放到一个检测到的链接上会出现一个预览浮窗,它不存在重复的问题、呈现逻辑就很简单,最主要的麻烦还是重复内容该怎么呈现

@88250 88250 pinned this issue Aug 6, 2021
88250 added a commit to siyuan-note/appearance that referenced this issue Aug 12, 2021
@88250 88250 unpinned this issue Aug 13, 2021
@88250 88250 modified the milestones: backlog, 1.2.6 Aug 20, 2021
@88250
Copy link
Member Author

88250 commented Aug 21, 2021

考虑了下,不包含命名和别名了,仅在已有块链的锚文本中进行搜索。

88250 added a commit to siyuan-note/appearance that referenced this issue Aug 21, 2021
88250 added a commit to siyuan-note/appearance that referenced this issue Aug 21, 2021
@88250 88250 closed this as completed Aug 21, 2021
@BettyJJ
Copy link

BettyJJ commented Aug 24, 2021

RoamEdit 把这个叫做“链接探测”,个人觉得比虚拟引用好,主要是虚拟引用有点看不懂是什么意思

@loveshizuka
Copy link

其实,叫作 “潜在引用” 又直接又达意。

@Elliootalderson
Copy link

虚拟引用,怎么使用啊,完全不会

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants