An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Change the unordered list marker from "*" to "-" (#15902)
Jeffrey Chen8e443ce5c3bb
diff --git a/app/src/mobile/util/keyboardToolbar.ts b/app/src/mobile/util/keyboardToolbar.tsindex 9847531b1e..6cef3e64de 100644--- a/app/src/mobile/util/keyboardToolbar.ts+++ b/app/src/mobile/util/keyboardToolbar.ts@@ -246,9 +246,9 @@ const renderSlashMenu = (protyle: IProtyle, toolbarElement: Element) => {${getSlashItem("#### " + Lute.Caret, "iconH4", window.siyuan.languages.heading4, "true")}${getSlashItem("##### " + Lute.Caret, "iconH5", window.siyuan.languages.heading5, "true")}${getSlashItem("###### " + Lute.Caret, "iconH6", window.siyuan.languages.heading6, "true")}- ${getSlashItem("* " + Lute.Caret, "iconList", window.siyuan.languages.list, "true")}+ ${getSlashItem("- " + Lute.Caret, "iconList", window.siyuan.languages.list, "true")}${getSlashItem("1. " + Lute.Caret, "iconOrderedList", window.siyuan.languages["ordered-list"], "true")}- ${getSlashItem("* [ ] " + Lute.Caret, "iconCheck", window.siyuan.languages.check, "true")}+ ${getSlashItem("- [ ] " + Lute.Caret, "iconCheck", window.siyuan.languages.check, "true")}${getSlashItem("> " + Lute.Caret, "iconQuote", window.siyuan.languages.quote, "true")}${getSlashItem("```", "iconCode", window.siyuan.languages.code, "true")}${getSlashItem(`| ${Lute.Caret} | | |\n| --- | --- | --- |\n| | | |\n| | | |`, "iconTable", window.siyuan.languages.table, "true")}diff --git a/app/src/protyle/hint/extend.ts b/app/src/protyle/hint/extend.tsindex 693e99a2fc..9c32e85431 100644--- a/app/src/protyle/hint/extend.ts+++ b/app/src/protyle/hint/extend.ts@@ -113,8 +113,8 @@ export const hintSlash = (key: string, protyle: IProtyle) => {}, {filter: [window.siyuan.languages.list, "unordered list", "无序列表", "wuxvliebiao", "wuxuliebiao", "wxlb"],id: "list",- value: "* " + Lute.Caret,- html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconList"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.list}</span>${getHotkeyOrMarker(window.siyuan.config.keymap.editor.insert.list.custom, "* ")}</div>`,+ value: "- " + Lute.Caret,+ html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconList"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.list}</span>${getHotkeyOrMarker(window.siyuan.config.keymap.editor.insert.list.custom, "- ")}</div>`,}, {filter: [window.siyuan.languages["ordered-list"], "order list", "ordered list", "有序列表", "youxvliebiao", "youxuliebiao", "yxlb"],id: "orderedList",@@ -123,7 +123,7 @@ export const hintSlash = (key: string, protyle: IProtyle) => {}, {filter: [window.siyuan.languages.check, "task list", "todo list", "任务列表", "renwuliebiao", "rwlb"],id: "check",- value: "* [ ] " + Lute.Caret,+ value: "- [ ] " + Lute.Caret,html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconCheck"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.check}</span>${getHotkeyOrMarker(window.siyuan.config.keymap.editor.insert.check.custom, "[]")}</div>`,}, {filter: [window.siyuan.languages.quote, "blockquote", "bq", "引述", "yinshu", "ys"],diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.tsindex ea074d2509..ff9b6af547 100644--- a/app/src/protyle/render/av/action.ts+++ b/app/src/protyle/render/av/action.ts@@ -394,7 +394,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positilet text = "";rowElements.forEach((item, i) => {if (rowElements.length > 1) {- text += "* ";+ text += "- ";}text += item.querySelector('.av__cell[data-dtype="block"] .av__celltext').textContent.trim();if (ids.length > 1 && i !== ids.length - 1) {@@ -421,7 +421,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positicontent = `((${id} '${cellElement.querySelector(".av__celltext").textContent.replace(/[\n]+/g, " ")}'))`;}if (ids.length > 1) {- text += "* ";+ text += "- ";}text += content;if (ids.length > 1 && i !== ids.length - 1) {@@ -438,7 +438,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positilet text = "";ids.forEach((id, index) => {if (ids.length > 1) {- text += "* ";+ text += "- ";}const cellElement = rowElements[index].querySelector(".av__cell[data-dtype='block']");if (cellElement.getAttribute("data-detached") === "true") {@@ -460,7 +460,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positilet text = "";ids.forEach((id, index) => {if (ids.length > 1) {- text += "* ";+ text += "- ";}const cellElement = rowElements[index].querySelector(".av__cell[data-dtype='block']");if (cellElement.getAttribute("data-detached") === "true") {@@ -490,7 +490,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positicontent = `[${cellElement.querySelector(".av__celltext").textContent.replace(/[\n]+/g, " ")}](siyuan://blocks/${id})`;}if (ids.length > 1) {- text += "* ";+ text += "- ";}text += content;if (ids.length > 1 && i !== ids.length - 1) {@@ -517,7 +517,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi}if (ids.length > 1) {- text += "* ";+ text += "- ";}text += content;if (ids.length > 1 && i !== ids.length - 1) {@@ -534,7 +534,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positilet text = "";ids.forEach((id, index) => {if (ids.length > 1) {- text += "* ";+ text += "- ";}const cellElement = rowElements[index].querySelector(".av__cell[data-dtype='block']");if (cellElement.getAttribute("data-detached") === "true") {diff --git a/app/src/protyle/render/av/relation.ts b/app/src/protyle/render/av/relation.tsindex a2d13e2965..b0bfc34a39 100644--- a/app/src/protyle/render/av/relation.ts+++ b/app/src/protyle/render/av/relation.ts@@ -417,7 +417,7 @@ ${html || genSelectItemHTML({type: "empty"})}`;const selectedElements = options.menuElement.querySelectorAll('.b3-menu__item[draggable="true"]');selectedElements.forEach((item: HTMLElement) => {if (selectedElements.length > 1) {- copyText += "* ";+ copyText += "- ";}const textElement = item.querySelector(".b3-menu__label") as HTMLElement;if (!textElement.dataset.id || textElement.dataset.id === "undefined") {diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.tsindex 2f4aedc1cf..584707783a 100644--- a/app/src/protyle/util/editorCommonEvent.ts+++ b/app/src/protyle/util/editorCommonEvent.ts@@ -1352,7 +1352,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {let html = "";for (let i = 0; i < ids.length; i++) {if (ids.length > 1) {- html += "* ";+ html += "- ";}const response = await fetchSyncPost("/api/block/getRefText", {id: ids[i]});html += `((${ids[i]} '${response.data}'))`;diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.tsindex c0147de73f..935b8b95cd 100644--- a/app/src/protyle/wysiwyg/keydown.ts+++ b/app/src/protyle/wysiwyg/keydown.ts@@ -1585,7 +1585,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {} else {protyle.hint.splitChar = "/";protyle.hint.lastIndex = -1;- protyle.hint.fill((isMatchCheck ? "* [ ] " : (isMatchList ? "* " : "1. ")) + Lute.Caret, protyle);+ protyle.hint.fill((isMatchCheck ? "- [ ] " : (isMatchList ? "- " : "1. ")) + Lute.Caret, protyle);}}} else {