forked from obsidianmd/obsidian-sample-plugin
-
-
Notifications
You must be signed in to change notification settings - Fork 26
How to create or edit a multi‐line property in Obsidian?
SebastianMC edited this page Sep 22, 2023
·
3 revisions
- How to create a multi-line property in Obsidian using YAML property editor?
- How to edit an existing multi-line property in Obsidian using YAML property editor?
- How to edit a multi-line property in Obsidian using the source view mode?

The key information is that you use the shift+enter to insert a newline character when editing the properties.
Highlights for the above movie:
- copy & paste of multi-line text unfortunately doesn't work in the Obsidian properties editor (video recorded on Obsidian 1.4.13)
- the multi-line text from clipboard is flattened after paste operation
- to (re)insert new lines use the
shift+enterinstead of theenterkey alone (cursor keys work normally and allow you to navigate) - hitting the
enterkey alone exists the property editor, which can be confusing

The key information is that you use the shift+enter to insert a newline character when editing the properties.
Highlights for the above movie:
- multi-line property value is shown partially, when inactive. Upon activation (click and the cursor appears) the property editor gets expanded automatically showing more of the multi-line content
- hitting the
enterkey alone exists the property editor, which can be confusing
Depending on your scenario, using the source view mode could be the most convenient way of editing the multi-line properties, like the sorting-spec:. It is closest to the old-fashioned plain text editing of YAML inline in Obsidian
