From 94df3865250b039cfbd16adccf788c839e536828 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 20 Apr 2023 19:01:15 +0800 Subject: [PATCH] :memo: Support `Ctrl+Enter` and `Ctrl+Click` to use static anchor text when searching for block reference https://github.com/siyuan-note/siyuan/issues/8037 --- .../20200924101256-f8b1sbi.sy | 128 ++++++++++++++++- .../20200813013559-sgbzl5k.sy | 130 +++++++++++++++++- .../20211226120247-63nd8y5.sy | 128 ++++++++++++++++- 3 files changed, 382 insertions(+), 4 deletions(-) diff --git a/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-6yi0dv5/20200924101256-f8b1sbi.sy b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-6yi0dv5/20200924101256-f8b1sbi.sy index c728ca4b1..a243cd19e 100644 --- a/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-6yi0dv5/20200924101256-f8b1sbi.sy +++ b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-6yi0dv5/20200924101256-f8b1sbi.sy @@ -6,7 +6,7 @@ "id": "20200924101256-f8b1sbi", "title": "Ref Content Block", "type": "doc", - "updated": "20230420123252" + "updated": "20230420190018" }, "Children": [ { @@ -496,6 +496,132 @@ } ] }, + { + "ID": "20230420185940-emsw72v", + "Type": "NodeParagraph", + "Properties": { + "id": "20230420185940-emsw72v", + "updated": "20230420185940" + }, + "Children": [ + { + "Type": "NodeText", + "Data": "In the " + }, + { + "Type": "NodeTextMark", + "TextMarkType": "code", + "TextMarkTextContent": "((" + }, + { + "Type": "NodeText", + "Data": "​ search result list:" + } + ] + }, + { + "ID": "20230420185940-z74ufig", + "Type": "NodeList", + "ListData": {}, + "Properties": { + "id": "20230420185940-z74ufig", + "updated": "20230420190018" + }, + "Children": [ + { + "ID": "20230420185940-g8mpohi", + "Type": "NodeListItem", + "ListData": { + "BulletChar": 42, + "Marker": "Kg==" + }, + "Properties": { + "id": "20230420185940-g8mpohi", + "updated": "20230420190018" + }, + "Children": [ + { + "ID": "20230420185940-ro5d977", + "Type": "NodeParagraph", + "Properties": { + "id": "20230420185940-ro5d977", + "updated": "20230420190018" + }, + "Children": [ + { + "Type": "NodeText", + "Data": "Direct " + }, + { + "Type": "NodeTextMark", + "TextMarkType": "kbd", + "TextMarkTextContent": "Enter" + }, + { + "Type": "NodeText", + "Data": "​ or " + }, + { + "Type": "NodeTextMark", + "TextMarkType": "kbd", + "TextMarkTextContent": "Click" + }, + { + "Type": "NodeText", + "Data": "​ will use dynamic anchor text" + } + ] + } + ] + }, + { + "ID": "20230420185940-ksegxpq", + "Type": "NodeListItem", + "ListData": { + "BulletChar": 42, + "Marker": "Kg==" + }, + "Properties": { + "id": "20230420185940-ksegxpq", + "updated": "20230420190017" + }, + "Children": [ + { + "ID": "20230420185940-ajmbc76", + "Type": "NodeParagraph", + "Properties": { + "id": "20230420185940-ajmbc76", + "updated": "20230420190017" + }, + "Children": [ + { + "Type": "NodeText", + "Data": "Press " + }, + { + "Type": "NodeTextMark", + "TextMarkType": "kbd", + "TextMarkTextContent": "Ctrl+Enter" + }, + { + "Type": "NodeText", + "Data": "​ or " + }, + { + "Type": "NodeTextMark", + "TextMarkType": "kbd", + "TextMarkTextContent": "Ctrl+Click" + }, + { + "Type": "NodeText", + "Data": "​ to use static anchor text" + } + ] + } + ] + } + ] + }, { "ID": "20230420123242-xsz318y", "Type": "NodeHeading", diff --git a/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180320-fqgskfj/20200813013559-sgbzl5k.sy b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180320-fqgskfj/20200813013559-sgbzl5k.sy index d98330c4a..12277f8af 100644 --- a/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180320-fqgskfj/20200813013559-sgbzl5k.sy +++ b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180320-fqgskfj/20200813013559-sgbzl5k.sy @@ -6,7 +6,7 @@ "id": "20200813013559-sgbzl5k", "title": "引用内容块", "type": "doc", - "updated": "20230420123152" + "updated": "20230420190027" }, "Children": [ { @@ -423,7 +423,7 @@ "ListData": {}, "Properties": { "id": "20220623195559-r0greck", - "updated": "20220623195906" + "updated": "20230420185816" }, "Children": [ { @@ -543,6 +543,132 @@ } ] }, + { + "ID": "20230420185651-fqx6ww6", + "Type": "NodeParagraph", + "Properties": { + "id": "20230420185651-fqx6ww6", + "updated": "20230420185832" + }, + "Children": [ + { + "Type": "NodeText", + "Data": "在 " + }, + { + "Type": "NodeTextMark", + "TextMarkType": "code", + "TextMarkTextContent": "((" + }, + { + "Type": "NodeText", + "Data": "​ 搜索结果列表中:" + } + ] + }, + { + "ID": "20230420185742-g0vtyx7", + "Type": "NodeList", + "ListData": {}, + "Properties": { + "id": "20230420185742-g0vtyx7", + "updated": "20230420190027" + }, + "Children": [ + { + "ID": "20230420185742-14djxj3", + "Type": "NodeListItem", + "ListData": { + "BulletChar": 42, + "Marker": "Kg==" + }, + "Properties": { + "id": "20230420185742-14djxj3", + "updated": "20230420190025" + }, + "Children": [ + { + "ID": "20230420185742-brqgayg", + "Type": "NodeParagraph", + "Properties": { + "id": "20230420185742-brqgayg", + "updated": "20230420190025" + }, + "Children": [ + { + "Type": "NodeText", + "Data": "直接 " + }, + { + "Type": "NodeTextMark", + "TextMarkType": "kbd", + "TextMarkTextContent": "Enter" + }, + { + "Type": "NodeText", + "Data": "​ 或者 " + }, + { + "Type": "NodeTextMark", + "TextMarkType": "kbd", + "TextMarkTextContent": "Click" + }, + { + "Type": "NodeText", + "Data": "​ 将使用动态锚文本" + } + ] + } + ] + }, + { + "ID": "20230420185748-ehr9h7w", + "Type": "NodeListItem", + "ListData": { + "BulletChar": 42, + "Marker": "Kg==" + }, + "Properties": { + "id": "20230420185748-ehr9h7w", + "updated": "20230420190027" + }, + "Children": [ + { + "ID": "20230420185748-sb1thir", + "Type": "NodeParagraph", + "Properties": { + "id": "20230420185748-sb1thir", + "updated": "20230420190027" + }, + "Children": [ + { + "Type": "NodeText", + "Data": "按住 " + }, + { + "Type": "NodeTextMark", + "TextMarkType": "kbd", + "TextMarkTextContent": "Ctrl+Enter" + }, + { + "Type": "NodeText", + "Data": "​ 或者 " + }, + { + "Type": "NodeTextMark", + "TextMarkType": "kbd", + "TextMarkTextContent": "Ctrl+Click" + }, + { + "Type": "NodeText", + "Data": "​ 将使用静态锚文本" + } + ] + } + ] + } + ] + }, { "ID": "20230420122954-zw10k6f", "Type": "NodeHeading", diff --git a/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226115825-mhcslw2/20211226120247-63nd8y5.sy b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226115825-mhcslw2/20211226120247-63nd8y5.sy index bdb6b12f7..7f2e3d34e 100644 --- a/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226115825-mhcslw2/20211226120247-63nd8y5.sy +++ b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226115825-mhcslw2/20211226120247-63nd8y5.sy @@ -5,7 +5,7 @@ "Properties": { "id": "20211226120247-63nd8y5", "title": "引用内容塊", - "updated": "20230420123224" + "updated": "20230420190022" }, "Children": [ { @@ -501,6 +501,132 @@ } ] }, + { + "ID": "20230420185856-hoesuce", + "Type": "NodeParagraph", + "Properties": { + "id": "20230420185856-hoesuce", + "updated": "20230420185856" + }, + "Children": [ + { + "Type": "NodeText", + "Data": "在 " + }, + { + "Type": "NodeTextMark", + "TextMarkType": "code", + "TextMarkTextContent": "((" + }, + { + "Type": "NodeText", + "Data": "​ 搜索結果列表中:" + } + ] + }, + { + "ID": "20230420185856-fpkt2wv", + "Type": "NodeList", + "ListData": {}, + "Properties": { + "id": "20230420185856-fpkt2wv", + "updated": "20230420190022" + }, + "Children": [ + { + "ID": "20230420185856-4v3g6nz", + "Type": "NodeListItem", + "ListData": { + "BulletChar": 42, + "Marker": "Kg==" + }, + "Properties": { + "id": "20230420185856-4v3g6nz", + "updated": "20230420190021" + }, + "Children": [ + { + "ID": "20230420185856-tnhsmet", + "Type": "NodeParagraph", + "Properties": { + "id": "20230420185856-tnhsmet", + "updated": "20230420190021" + }, + "Children": [ + { + "Type": "NodeText", + "Data": "直接 " + }, + { + "Type": "NodeTextMark", + "TextMarkType": "kbd", + "TextMarkTextContent": "Enter" + }, + { + "Type": "NodeText", + "Data": "​ 或者 " + }, + { + "Type": "NodeTextMark", + "TextMarkType": "kbd", + "TextMarkTextContent": "Click" + }, + { + "Type": "NodeText", + "Data": "​ 將使用動態錨文本" + } + ] + } + ] + }, + { + "ID": "20230420185856-jg6anpy", + "Type": "NodeListItem", + "ListData": { + "BulletChar": 42, + "Marker": "Kg==" + }, + "Properties": { + "id": "20230420185856-jg6anpy", + "updated": "20230420190022" + }, + "Children": [ + { + "ID": "20230420185856-nh72xao", + "Type": "NodeParagraph", + "Properties": { + "id": "20230420185856-nh72xao", + "updated": "20230420190022" + }, + "Children": [ + { + "Type": "NodeText", + "Data": "按住 " + }, + { + "Type": "NodeTextMark", + "TextMarkType": "kbd", + "TextMarkTextContent": "Ctrl+Enter" + }, + { + "Type": "NodeText", + "Data": "​ 或者 " + }, + { + "Type": "NodeTextMark", + "TextMarkType": "kbd", + "TextMarkTextContent": "Ctrl+Click" + }, + { + "Type": "NodeText", + "Data": "​ 將使用靜態錨文本" + } + ] + } + ] + } + ] + }, { "ID": "20230420123224-22gd6st", "Type": "NodeHeading",