How to create or edit a multi‐line property in Obsidian? - SebastianMC/obsidian-custom-sort GitHub Wiki

Contents

  1. How to create a multi-line property in Obsidian using YAML property editor?
  2. How to edit an existing multi-line property in Obsidian using YAML property editor?
  3. How to edit a multi-line property in Obsidian using the source view mode?

1. How to create a multi-line property in Obsidian? YAML property editor

Obsidian create multi-line property

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+enter instead of the enter key alone (cursor keys work normally and allow you to navigate)
  • hitting the enter key alone exists the property editor, which can be confusing

2. How to edit an existing multi-line property in Obsidian? YAML property editor

Obsidian edit multi-line property

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 enter key alone exists the property editor, which can be confusing

3. How to edit a multi-line property in Obsidian using the source view mode?

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

Obsidian edit multi-line property in source view mode