Skip to content

Conversation

@kulst
Copy link
Contributor

@kulst kulst commented Nov 22, 2025

Using the -u option with add-from-file or update-from-file deletes everything before the first '#' header.
I assume this is not really intended as it contradicts with the default values which are parsed by _parse_markdown_file before the first '#' header.

This change aims to fix this.

@kulst kulst changed the title fix: make the -u option keep content before first '# Note' fix: make the -u option keep content before first '#' header Nov 22, 2025
lervag added a commit that referenced this pull request Nov 23, 2025
This fixes the `-u` option for `apy add-from-file` and `apy
update-from-file` so they don't remove content before the first header
line.

refer: #119
@lervag lervag merged commit e1c97f7 into lervag:master Nov 23, 2025
7 checks passed
@lervag
Copy link
Owner

lervag commented Nov 23, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants