|
Is there a reliable way to add a row to a table in a note? An existing note may or may not have an ending linebreak at the end of the note. The problem with that is that, when I try to add a row at the bottom of the note, QuickAdd adds another linebreak before adding the text. This effectively leaves an empty line between the existing table and the added text. The end result is that the added text isn't recognized as a row that's part of the table. Is there a way to clean out all linebreaks before the text is added? |
Replies: 1 comment 1 reply
|
Sorry for the slow reply. "Write to bottom of file" is the wrong tool for table rows: for non-task captures it deliberately starts the capture on a new line (notes are not guaranteed to end with a newline), so when the file already does end with one you get that blank line, and there is no toggle to strip it. Insert after does what you want:
One version note: matching https://quickadd.obsidian.guide/docs/Choices/CaptureChoice#insert-after |
Sorry for the slow reply. "Write to bottom of file" is the wrong tool for table rows: for non-task captures it deliberately starts the capture on a new line (notes are not guaranteed to end with a newline), so when the file already does end with one you get that blank line, and there is no toggle to strip it.
Insert after does what you want:
| --- | --- | --- |exactly as it appears in the note (or a heading above the table).