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

[Feature] 模仿obsidian的双链方式实现zoteroNote更细粒度的双链 #958

Open
1 task done
Geo123abc opened this issue Apr 19, 2024 · 3 comments
Open
1 task done
Assignees
Labels
enhancement New feature or request stale

Comments

@Geo123abc
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Environment

  • OS: windows 10
  • Zotero Version: zotero 7 beta75
  • Plugin Version: 1.1.4-beta.71

Describe the feature request

背景:
  1. Obsidian 是以^gmbxio这样的锚点作为双链的链接
  2. zotero-note的查找功能:在zotero-note中Ctrl+F(或者点击note窗口的放大镜图标),输入字符串,可以直接高亮显示搜索结果,快速定位
问题:

zotero-better-note现有的line参数,在跳转的时候可能容易有问题:

  1. 被链接的子笔记前面又插入内容了,导致链接的内容行号变了
  2. 点击链接跳转的时候,可以打开整个子笔记(note),但是无法直接定位到子笔记的具体内容的地方
  3. 如果我在子笔记中是使用有序列表,内容很长,此时定位难度更大

Describe the solution you'd like

解决方案:

能不能模仿obsidian的方式实现双链:zotero better note 插件可以在现有的"链接参数"(参考)基础上添加一个find字段,为了和zotero的itemkey、annotation key保持形式的一致,可以使用八位大写字母+数字的组合

  1. 复制当前位置A的锚点,两种情况:

    1. 没有选中文字时,在当前位置生成字符串比如,^9BG3M5P3,并获得链接[(Wang et al., 2024)](zotero://note/u/ATMB4LBF/?line=3find=^9BG3M5P3)
    2. 选择位置A的类似^9BG3M5P3字符串,复制位置A的锚点,此时可以直接获得链接[(Wang et al., 2024)](zotero://note/u/ATMB4LBF/?line=3find=^9BG3M5P3)
  2. 在另一个地方B粘贴链接到A的链接[(Wang et al., 2024)](zotero://note/u/ATMB4LBF/?line=3find=^9BG3M5P3)

  3. 点击位置B的连接到A的链接,打开noteA,并在noteA触发查找^9BG3M5P3的操作,这样可以快速定位到具体位置

上述操作只能制作好B→A的跳转链接,并没有A→B的链接,为了完成双链功能,还需要获得B处的链接,然后粘贴到A处

上述方案兼容目前已有的内容,并且是对现有功能的加强。希望考虑一下。
谢谢。

Anything else?

No response

@Geo123abc Geo123abc added the enhancement New feature or request label Apr 19, 2024
@windingwind
Copy link
Owner

不推荐使用line链接,建议使用section链接,定位到对应段落。

个人认为,在笔记中插入定位字符对笔记的语义是破坏性的,不是特别好

@Geo123abc
Copy link
Author

不推荐使用line链接,建议使用section链接,定位到对应段落。

个人认为,在笔记中插入定位字符对笔记的语义是破坏性的,不是特别好

谢谢,我自己再试一下,我不太确定 section链接 的颗粒度怎么样

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale
Projects
None yet
Development

No branches or pull requests

2 participants