1、添加属性 defadd_property(file_path,property_name):"""Adds a property to the front matter of a file.Args:file_path (str): The path of the file.property_name (str): The name of the property to add."""pattern=r'---\n(.*?)---'content=Frontmatter._read_file_content(file_path...
| | File Property Enhancer | Add icons to the file property, and customize the display of the file property. | | Collapse Node | Collapse node in canvas. | | Permalink Opener | Open URLs based on a permalink or slug in the note properties. Useful with static site generator such as ...
Add annotations and highlights Create links between notes Organize your reading materials Property Template All available variables: - {{bookName}} - {{title}} - {{author}} - {{publisher}} - {{language}} Example: title: {{bookName}} author: {{author}} publisher: {{publisher}} status: ...
(data.hasOwnProperty(key)) { calendar[calendar.length - 1][start.day()] = data[key] ? ' ' : ' '; } else { calendar[calendar.length - 1][start.day()] = start.date(); } start.add(1, 'd'); } console.log(calendar) dv.header(1, dayInMonth.format('MMMM YYYY')); dv....
Add a file called <name>.css to .obsidian/snippets. Navigate to the “Appearance” option. Refresh. Choose the resulting file with a toggle. Styling Obsidian Using CSS Snippets CSS Snippets are an integral part of Obsidian because they describe how each part of the vault ought to appear. Th...
勾选File Name Format 在File Name中输入:{{VALUE:name}} 双击顶部的模板名,设置成自定义名称 点右上的叉退出,自动保存 连接显示名称和Macro 进入最顶层的QuickAdd Setting界面(上图所示界面) 起一个最终显示的名字,选Macro,点Add Choice 设置刚生成项目,将其与前面设置的Macro连接 ...
this.adapter = this.app.vault.adapter as FileSystemAdapter; await this.loadSettings(); this.backupConfigs(); this.addCommand({ id: "collect-current-note-attachments", name: "Collect current note attachments", icon: "plus-square", // editorCallback: (editor: Editor, view: Mark...
//definitiongetArrayRoller(options: any[],rolls:number=1):Promise<ArrayRoller>;ArrayRoller{/** Roll the array roller and generate a new set of results. */roll():Promise<any>/** Property containing the container element of the array roller. Use this to attach it to the note's DOM */...
Property There are many properties that you can use. Basic for all devices {{CONTENT}} // What you wrote in the text editor. {{TITLE}} // You add the title in the text editor on the first line with # Some title. From the context {{SOURCE.DESCRIPTION}} // The source description...
hasOwnProperty(key)) { continue } const file = pictureMap[key] console.log("通过MD5获取到重复文件", file) if (file) { const fileImage = { "uid": file.uid, "fileOldName": file.fileOldName, "pictureUrl": file.pictureUrl } return fileImage } } } } // ...