EINDEX/logseq-copilot

Use an indented block for the content in the Clip Template

AidfulAI opened this issue · 5 comments

Problem:
The default Clip Template pastes everything in one block inside Logseq.

Solution:
I would like to add the title in the first block, followed by an indented child block to make it foldable and more structured inside Logseg.

Example:
image

Alternative:
If this is already possible, it would be good to add it in the "available params" below the template window as a hint how to do it.

Sidenote
If I understand you right, than the following screenshot of the website describes this feature:
image

I propose a rewrite for more clarity. My suggestions:
Quick capture Send webpage info, including URL, title, and text selection to your Logseq graph.
Quick capture Save webpage info, including URL and title, to Logseq. Optionally, include the current text selection.

P.S.: Thanks for the work and effort you put into creating this plugin. 👏

Yes, you are right, this is possible.

This depends on the subblock feature.

Can you provide guidance how to do it? What do I have to write in the "clip template" field to create a subblock?

For now, just have a trick method to archive that.

You can using below template:

[[{{date}}]] **{{time}}**
url:: [{{title}}]({{url}})
tags:: [[Clip]]
  - {{content}}

You will see some warning showing up, after re-index, everything will render nice.
image

For the subblock feature, just starting thinking how to archive that elegantly. That needs some time to spike and design.

Awesome, I was not aware that re-indexing fixes nested lists. Thanks for sharing this as a response.
As you state, it is not super elegant, but works! 👏