mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-09 02:08:50 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
a3f05b4bec
7 changed files with 107 additions and 39 deletions
6
.github/CONTRIBUTING.md
vendored
6
.github/CONTRIBUTING.md
vendored
|
|
@ -14,10 +14,10 @@ Install pnpm: `npm install -g pnpm@10.11.0`
|
|||
|
||||
Set the Electron mirror environment variable and install Electron:
|
||||
|
||||
* macOS/Linux: `ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install electron@v35.4.0 -D`
|
||||
* macOS/Linux: `ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install electron@v35.5.0 -D`
|
||||
* Windows:
|
||||
* `SET ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/`
|
||||
* `pnpm install electron@v35.4.0 -D`
|
||||
* `pnpm install electron@v35.5.0 -D`
|
||||
|
||||
NPM mirror:
|
||||
|
||||
|
|
@ -27,7 +27,7 @@ NPM mirror:
|
|||
|
||||
Enter the app folder and execute:
|
||||
|
||||
* `pnpm install electron@v35.4.0 -D`
|
||||
* `pnpm install electron@v35.5.0 -D`
|
||||
* `pnpm run dev`
|
||||
* `pnpm run start`
|
||||
|
||||
|
|
|
|||
6
.github/CONTRIBUTING_zh_CN.md
vendored
6
.github/CONTRIBUTING_zh_CN.md
vendored
|
|
@ -14,10 +14,10 @@
|
|||
|
||||
设置 Electron 镜像环境变量并安装 Electron:
|
||||
|
||||
* macOS/Linux:`ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install electron@v35.4.0 -D`
|
||||
* macOS/Linux:`ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install electron@v35.5.0 -D`
|
||||
* Windows:
|
||||
* `SET ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/`
|
||||
* `pnpm install electron@v35.4.0 -D`
|
||||
* `pnpm install electron@v35.5.0 -D`
|
||||
|
||||
NPM 镜像:
|
||||
|
||||
|
|
@ -27,7 +27,7 @@ NPM 镜像:
|
|||
|
||||
进入 app 文件夹执行:
|
||||
|
||||
* `pnpm install electron@v35.4.0 -D`
|
||||
* `pnpm install electron@v35.5.0 -D`
|
||||
* `pnpm run dev`
|
||||
* `pnpm run start`
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
"id": "20200924100950-9op5xi1",
|
||||
"title": "Shortcuts",
|
||||
"type": "doc",
|
||||
"updated": "20250423105931"
|
||||
"updated": "20250529111226"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
|
@ -3679,7 +3679,7 @@
|
|||
"HeadingLevel": 2,
|
||||
"Properties": {
|
||||
"id": "20210106154056-koo4wdj",
|
||||
"updated": "20250303234918"
|
||||
"updated": "20250529110920"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
|
@ -3698,7 +3698,7 @@
|
|||
"HeadingLevel": 3,
|
||||
"Properties": {
|
||||
"id": "20210106154319-v9tt3e2",
|
||||
"updated": "20250303234918"
|
||||
"updated": "20250529110920"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
|
@ -3718,7 +3718,7 @@
|
|||
"Properties": {
|
||||
"colgroup": "||",
|
||||
"id": "20240112150534-wiik5sl",
|
||||
"updated": "20250303234918"
|
||||
"updated": "20250529110920"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
|
@ -7316,7 +7316,13 @@
|
|||
},
|
||||
{
|
||||
"Type": "NodeTableCell",
|
||||
"Data": "td"
|
||||
"Data": "td",
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "The function in the backlink panel is to open the block where the cursor is located"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -16266,7 +16272,7 @@
|
|||
"HeadingLevel": 3,
|
||||
"Properties": {
|
||||
"id": "20220902200437-58why4v",
|
||||
"updated": "20250115161129"
|
||||
"updated": "20250529111226"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
|
@ -16285,7 +16291,7 @@
|
|||
"Properties": {
|
||||
"colgroup": "|",
|
||||
"id": "20220902200448-06bh19l",
|
||||
"updated": "20250115161129"
|
||||
"updated": "20250529111226"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
|
@ -16492,6 +16498,15 @@
|
|||
"Type": "NodeText",
|
||||
"Data": " / "
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
"TextMarkType": "kbd",
|
||||
"TextMarkTextContent": "Copy file"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": " → "
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
"TextMarkType": "kbd",
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
"id": "20200813004551-gm0pbn1",
|
||||
"title": "快捷键",
|
||||
"type": "doc",
|
||||
"updated": "20250423105922"
|
||||
"updated": "20250529111202"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
|
@ -3677,7 +3677,7 @@
|
|||
"HeadingLevel": 2,
|
||||
"Properties": {
|
||||
"id": "20201227133317-rkh4bji",
|
||||
"updated": "20250303234645"
|
||||
"updated": "20250529110805"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
|
@ -3692,7 +3692,7 @@
|
|||
"HeadingLevel": 3,
|
||||
"Properties": {
|
||||
"id": "20201227133317-kazyttz",
|
||||
"updated": "20250303234645"
|
||||
"updated": "20250529110805"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
|
@ -3716,7 +3716,7 @@
|
|||
"Properties": {
|
||||
"colgroup": "||",
|
||||
"id": "20201227133317-vopotjc",
|
||||
"updated": "20250303234645"
|
||||
"updated": "20250529110805"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
|
@ -7292,7 +7292,13 @@
|
|||
},
|
||||
{
|
||||
"Type": "NodeTableCell",
|
||||
"Data": "td"
|
||||
"Data": "td",
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "在反链面板中的作用是打开光标所在块"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -16198,7 +16204,7 @@
|
|||
"HeadingLevel": 3,
|
||||
"Properties": {
|
||||
"id": "20220901210205-d5z8hhk",
|
||||
"updated": "20250115155218"
|
||||
"updated": "20250529111202"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
|
@ -16217,7 +16223,7 @@
|
|||
"Properties": {
|
||||
"colgroup": "|",
|
||||
"id": "20220902201053-imb47bl",
|
||||
"updated": "20250115155218"
|
||||
"updated": "20250529111202"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
|
@ -16424,6 +16430,15 @@
|
|||
"Type": "NodeText",
|
||||
"Data": " / "
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
"TextMarkType": "kbd",
|
||||
"TextMarkTextContent": "复制文件"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": " → "
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
"TextMarkType": "kbd",
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
"id": "20211226122549-jktxego",
|
||||
"title": "快捷鍵",
|
||||
"type": "doc",
|
||||
"updated": "20250423105919"
|
||||
"updated": "20250529111304"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
|
@ -3671,7 +3671,7 @@
|
|||
"HeadingLevel": 2,
|
||||
"Properties": {
|
||||
"id": "20211226122652-htptsmh",
|
||||
"updated": "20250303234747"
|
||||
"updated": "20250529111040"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
|
@ -3686,7 +3686,7 @@
|
|||
"HeadingLevel": 3,
|
||||
"Properties": {
|
||||
"id": "20211226122652-xp1hi60",
|
||||
"updated": "20250303234747"
|
||||
"updated": "20250529111040"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
|
@ -3706,7 +3706,7 @@
|
|||
"Properties": {
|
||||
"colgroup": "||",
|
||||
"id": "20240112151141-ggglv0f",
|
||||
"updated": "20250303234747"
|
||||
"updated": "20250529111040"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
|
@ -7309,7 +7309,13 @@
|
|||
},
|
||||
{
|
||||
"Type": "NodeTableCell",
|
||||
"Data": "td"
|
||||
"Data": "td",
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "在反鏈面板中的作用是打開遊標所在區塊"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -16324,7 +16330,7 @@
|
|||
"HeadingLevel": 3,
|
||||
"Properties": {
|
||||
"id": "20220902195608-jh61ukq",
|
||||
"updated": "20250115160036"
|
||||
"updated": "20250529111304"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
|
@ -16343,7 +16349,7 @@
|
|||
"Properties": {
|
||||
"colgroup": "|",
|
||||
"id": "20220902195638-92scg94",
|
||||
"updated": "20250115160036"
|
||||
"updated": "20250529111304"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
|
@ -16550,6 +16556,15 @@
|
|||
"Type": "NodeText",
|
||||
"Data": " / "
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
"TextMarkType": "kbd",
|
||||
"TextMarkTextContent": "複製文件"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": " → "
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
"TextMarkType": "kbd",
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
"id": "20240530101000-xsbxokr",
|
||||
"title": "ショートカット",
|
||||
"type": "doc",
|
||||
"updated": "20250423105910"
|
||||
"updated": "20250529111249"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
|
@ -3627,7 +3627,7 @@
|
|||
"Properties": {
|
||||
"ID": "20240530101000-twmuxke",
|
||||
"id": "20240530101000-675gu9g",
|
||||
"updated": "20250303234901"
|
||||
"updated": "20250529111052"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
|
@ -3653,7 +3653,7 @@
|
|||
"Properties": {
|
||||
"ID": "20240530101000-tkbdrth",
|
||||
"id": "20240530101000-9wkmh8w",
|
||||
"updated": "20250303234901"
|
||||
"updated": "20250529111052"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
|
@ -3673,7 +3673,7 @@
|
|||
"Properties": {
|
||||
"colgroup": "||",
|
||||
"id": "20240530101000-1isfzez",
|
||||
"updated": "20250303234901"
|
||||
"updated": "20250529111052"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
|
@ -7276,7 +7276,13 @@
|
|||
},
|
||||
{
|
||||
"Type": "NodeTableCell",
|
||||
"Data": "td"
|
||||
"Data": "td",
|
||||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "バックリンクパネルの機能は、カーソルが位置するブロックを開くことです。"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -16404,7 +16410,7 @@
|
|||
"Properties": {
|
||||
"ID": "20240530101000-84m3izj",
|
||||
"id": "20240530101000-q5l68vs",
|
||||
"updated": "20250115162016"
|
||||
"updated": "20250529111249"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
|
@ -16433,7 +16439,7 @@
|
|||
"Properties": {
|
||||
"colgroup": "|",
|
||||
"id": "20240530101000-4pvglr9",
|
||||
"updated": "20250115162016"
|
||||
"updated": "20250529111249"
|
||||
},
|
||||
"Children": [
|
||||
{
|
||||
|
|
@ -16649,6 +16655,15 @@
|
|||
"Type": "NodeText",
|
||||
"Data": " / "
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
"TextMarkType": "kbd",
|
||||
"TextMarkTextContent": "ファイルのコピー"
|
||||
},
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": " → "
|
||||
},
|
||||
{
|
||||
"Type": "NodeTextMark",
|
||||
"TextMarkType": "kbd",
|
||||
|
|
|
|||
|
|
@ -476,7 +476,7 @@ func GetBacklink(id, keyword, mentionKeyword string, beforeLen int, containChild
|
|||
var paragraphParentIDs []string
|
||||
for _, link := range links {
|
||||
for _, ref := range link.Refs {
|
||||
if "NodeParagraph" == ref.Type {
|
||||
if "NodeParagraph" == ref.Type || "NodeHeading" == ref.Type {
|
||||
paragraphParentIDs = append(paragraphParentIDs, ref.ParentID)
|
||||
}
|
||||
}
|
||||
|
|
@ -494,7 +494,7 @@ func GetBacklink(id, keyword, mentionKeyword string, beforeLen int, containChild
|
|||
}
|
||||
for _, link := range links {
|
||||
for _, ref := range link.Refs {
|
||||
if "NodeParagraph" == ref.Type {
|
||||
if "NodeParagraph" == ref.Type || "NodeHeading" == ref.Type {
|
||||
if processedParagraphs.Contains(ref.ParentID) {
|
||||
continue
|
||||
}
|
||||
|
|
@ -580,7 +580,7 @@ func buildLinkRefs(defRootID string, refs []*sql.Ref, keywords []string) (ret []
|
|||
var paragraphParentIDs []string
|
||||
for _, link := range links {
|
||||
for _, ref := range link.Refs {
|
||||
if "NodeParagraph" == ref.Type {
|
||||
if "NodeParagraph" == ref.Type || "NodeHeading" == ref.Type {
|
||||
parentRefParagraphs[ref.ParentID] = ref
|
||||
paragraphParentIDs = append(paragraphParentIDs, ref.ParentID)
|
||||
}
|
||||
|
|
@ -615,7 +615,15 @@ func buildLinkRefs(defRootID string, refs []*sql.Ref, keywords []string) (ret []
|
|||
continue
|
||||
}
|
||||
|
||||
if "" != strings.TrimSpace(c.Text()) {
|
||||
text := c.Text()
|
||||
if strings.HasPrefix(text, "#") {
|
||||
tmp := strings.ReplaceAll(text, "#", "")
|
||||
if " " == tmp { // 如果是标题标记符则跳过
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
if "" != strings.TrimSpace(text) {
|
||||
paragraphUseParentLi = false
|
||||
break
|
||||
}
|
||||
|
|
@ -640,7 +648,7 @@ func buildLinkRefs(defRootID string, refs []*sql.Ref, keywords []string) (ret []
|
|||
}
|
||||
for _, link := range links {
|
||||
for _, ref := range link.Refs {
|
||||
if "NodeParagraph" == ref.Type {
|
||||
if "NodeParagraph" == ref.Type || "NodeHeading" == ref.Type {
|
||||
if processedParagraphs.Contains(ref.ParentID) {
|
||||
continue
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue