8000 Allow for populating note body when note is defined in frontmatter by enigmartyr · Pull Request #50 · seanlowe/obsidian-timelines · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Allow for populating note body when note is defined in frontmatter #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 6, 2024
Merged

Allow for populating note body when note is defined in frontmatter #50

merged 8 commits into from
Jun 6, 2024

Conversation

enigmartyr
Copy link

Previously, only notes defined via HTML had their body populated via the innerText. These edits should allow for the frontmatter description property to achieve the same effect.

@seanlowe seanlowe self-assigned this Jun 5, 2024
@seanlowe seanlowe added the bug/confirmed Something isn't working label Jun 5, 2024
Copy link
Owner
@seanlowe seanlowe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, looks good overall. Just a few notes and then we can get this merged in.

  1. Small mishap on events.ts
  2. Please write some "release notes" in the README regarding this change (release for this will be 2.1.11) and move the current release notes to the changelog.
  3. After doing that, run npm run bump:patch to update the version numbers on everything (manifest.json, package.json, & package-lock.json)
  4. This is a particularity of mine but please alphabetize noteBody with the other note.. variables/keys
  5. I actually recently deleted the description attribute from the "Insert HTML event" function createTimelineEventInCurrentNote so you'll want to add that back into commands.ts: newEventElement.setAttribute( 'data-description', '' )
  6. and lastly, if you want (optional here - I can do it later), you can add a small section on the Description attribute to the docs in the 01_html_arguments.md file.

Thanks!

enigmartyr and others added 5 commits June 5, 2024 21:08
…a frontmatter by way of the 'description' property

- edited style rules so that whitespace within the description property (line breaks, esp.) is respected and not discarded
- reinstated the 'description' property for HTML defined events (albeit redundant)
- updated documentation to reflect changes
Copy link
Owner
@seanlowe seanlowe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@seanlowe seanlowe merged commit eff700e into seanlowe:main Jun 6, 2024
1 check passed
@enigmartyr
Copy link
Author

Looks good!

I actually hadn't ran npm run bump:patch yet because I wanted to build the plugin and test it and make sure it worked as intended first but getting the build script to run proved difficult for me

@seanlowe
Copy link
Owner
seanlowe commented Jun 6, 2024

If you would open another issue for tracking down the build issues, I believe that would be extremely helpful for anyone who may want to contribute in the future.

@enigmartyr
Copy link
Author

image
image
image
to tell the truth, these are the changes I made to get it to build but I hesitate to say they're the correct changes since I hardly know what I've done

7431

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/confirmed Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0