🎨 当自定义排序时支持在文档上/下新建同级文档 https://github.com/siyuan-note/siyuan/issues/5098

This commit is contained in:
Liang Ding 2022-07-01 22:50:11 +08:00
parent b40b460f0c
commit eb7e1b3d1d
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
6 changed files with 18 additions and 18 deletions

View file

@ -1,7 +1,7 @@
{
"newSubFile": "New SubFile",
"newFileAfter": "New file after",
"newFileBefore": "New file before",
"newSubDoc": "Create sub doc",
"newDocBelow": "Create doc below",
"newDocAbove": "Create doc above",
"adaptiveWidth": "Adaptive Width",
"fullWidthTip": "After enabling, the editing area will be displayed as wide as possible",
"tabLimit": "Tab Limit",

View file

@ -1,7 +1,7 @@
{
"newSubFile": "Nuevo SubArchivo",
"newFileAfter": "Nuevo archivo en el mismo nivel después",
"newFileBefore": "Nuevo archivo en el mismo nivel anterior",
"newSubDoc": "Crear subdocumento",
"newDocBelow": "Crear documento a continuación",
"newDocAbove": "Crear documento arriba",
"fullWidth": "Ancho adaptable",
"fullWidthTip": "Cuando está habilitado, el área de edición se mostrará lo más amplia posible",
"tabLimit": "Límite de la pestaña",

View file

@ -1,7 +1,7 @@
{
"newSubFile": "Nouveau sous-fichier",
"newFileAfter": "Nouveau fichier au même niveau après",
"newFileBefore": "Nouveau fichier au même niveau avant",
"newSubDoc": "Créer un sous-doc",
"newDocBelow": "Créer un document ci-dessous",
"newDocAbove": "Créer un document ci-dessus",
"fullWidth": "Largeur adaptative",
"fullWidthTip": "Lorsqu'il est activé, la zone d'édition sera affichée aussi large que possible",
"tabLimit": "Nombre maximum d'onglets ouverts",

View file

@ -1,7 +1,7 @@
{
"newSubFile": "新建子文檔",
"newFileAfter": "在後新建同級文檔",
"newFileBefore": "在前新建同級文檔",
"newSubDoc": "新建子文檔",
"newDocBelow": "在下方新建文檔",
"newDocAbove": "在上方新建文檔",
"fullWidth": "自適應寬度",
"fullWidthTip": "開啟後將盡可能寬地顯示編輯區",
"tabLimit": "頁簽打開最大數量",

View file

@ -1,7 +1,7 @@
{
"newSubFile": "新建子文档",
"newFileAfter": "在后新建同级文档",
"newFileBefore": "在前新建同级文档",
"newSubDoc": "新建子文档",
"newDocBelow": "在下方新建文档",
"newDocAbove": "在上方新建文档",
"fullWidth": "自适应宽度",
"fullWidthTip": "开启后将尽可能宽地显示编辑区",
"tabLimit": "页签打开最大数量",

View file

@ -135,7 +135,7 @@ export const initFileMenu = (notebookId: string, pathString: string, liElement:
if (!window.siyuan.config.readonly) {
window.siyuan.menus.menu.append(new MenuItem({
icon: "iconFile",
label: window.siyuan.languages.newSubFile,
label: window.siyuan.languages.newSubDoc,
click: () => {
newFile(notebookId, pathString, true);
}
@ -143,7 +143,7 @@ export const initFileMenu = (notebookId: string, pathString: string, liElement:
if (window.siyuan.config.fileTree.sort === 6) {
window.siyuan.menus.menu.append(new MenuItem({
icon: "iconBefore",
label: window.siyuan.languages.newFileBefore,
label: window.siyuan.languages.newDocAbove,
click: () => {
const paths: string[] = [];
Array.from(liElement.parentElement.children).forEach((item) => {
@ -159,7 +159,7 @@ export const initFileMenu = (notebookId: string, pathString: string, liElement:
}).element);
window.siyuan.menus.menu.append(new MenuItem({
icon: "iconAfter",
label: window.siyuan.languages.newFileAfter,
label: window.siyuan.languages.newDocBelow,
click: () => {
const paths: string[] = [];
Array.from(liElement.parentElement.children).forEach((item) => {