LuloDev / logseq-book-fetch

Logseq plugin that fetches book data based on an ISBN using the Google Books API.
MIT License
5 stars 0 forks source link

Feature wish #1

Closed manfredlotz closed 4 months ago

manfredlotz commented 5 months ago

It would be nice if block properties could be used for a book (chosen by settings)

  - Title:: some book title
     ISBN:: 98383838-1
     Authors:: John Doe
     Published Art:: ...
     ...
     Description:: what a wonderful book

What do you think?

LuloDev commented 5 months ago

Hi! Thanks for your suggestion. The current version allows users to choose which book attributes to insert in the Extension options.

image

Also, I'm thinking about adding in the next version the use of a template to customize the properties insertion.

Title: {{title}} by {{authors}}
Description: {{description}}
Published At: {{publishedAt}}

What do you think? Does the current configuration work for you or do you think the template is better?

manfredlotz commented 5 months ago

If I understand correctly then the current configuration work allows to choose what I like to get. This is very good.

But it doesn't allow to choose that I like to have :: to get block properties. So there should be either an additional option for this or perhaps the idea of a template might give the user the best flexibility.

LuloDev commented 4 months ago

You can use this setting in the template option

- Title: {{title}}\n- Authors:: {{authors}}\n- ISBN:: {{isbn}}

Result:

image

Is available in the new version!!

manfredlotz commented 4 months ago

Doesn't work for me. On my system (Linux) I had to change all occurences of \n to \\n. Then it was working ok.