DominikPieper / obsidian-ReadItLater

MIT License
450 stars 35 forks source link

feat: batch creation of notes from line separated url list #155

Closed clemens-holleis closed 2 weeks ago

clemens-holleis commented 4 months ago

Description

Motivation and Context

Batch creation of notes from url list. Provide a list of urls where every line is a valid url like below. Each url will be treated individually. So 2 notes will be created

https://www.youtube.com/watch?v=uLMD_u41GlA
https://www.tiktok.com/@toontimemadness/video/7346280539004931334

How has this been tested?

manual testing in obsidian with a local build of the addon.

Test data

Valid data for batch processing

https://www.youtube.com/watch?v=uLMD_u41GlA
https://www.tiktok.com/@toontimemadness/video/7346280539004931334

https://www.youtube.com/watch?v=uLMD_u41GlA

https://www.tiktok.com/@toontimemadness/video/7346280539004931334

Invalid data

# some heading to indicate "this is a single note of urls"
https://www.youtube.com/watch?v=uLMD_u41GlA
https://www.tiktok.com/@toontimemadness/video/7346280539004931334
https://www.youtube.com/watch?v=uLMD_u41GlA
other random non-url data

Non batch behaviour

  1. Batch processing disabled
  2. all data sets end up as snippet notes

batch behaviour

  1. Batch processing enabled
  2. valid data end up in two individual notes
  3. invalid data will result in snippet note again

Types of changes

Changes visible to users:

Internal changes:

Checklist

clemens-holleis commented 1 month ago

@adamluckdev :

adamluckdev commented 2 weeks ago

Thank you!