Use case or problem
Currently, append and prepend commands only add content to the end/beginning of files. Users need to append to specific sections under headings (like ## Timestamp in Daily Notes).
Proposed solution
Add new parameters to append/prepend commands:
content=<text> # (required) content to prepend
heading=<heading> # Add content under specific heading 🆕️
For example:
obsidian daily:append content="12:30 do something" heading="Timestamp"
Current workaround
- Place frequently-used headings at file ends (doesn’t work with multiple headings.
) - Use
create overrideto re-write whole file.
Related FRss
CLI commands to address lines and headings - Feature requests - Obsidian Forum
Others
This might also be needed in Obsidian URL and iOS Shortcuts, etc.