EINDEX / logseq-copilot

Logseq Copilot is a Browser extension that allows you to access your Logseq via your browser.
https://logseq-copilot.eindex.me
GNU General Public License v3.0
235 stars 21 forks source link

Use an indented block for the content in the Clip Template #25

Closed AidfulAI closed 1 year ago

AidfulAI commented 1 year ago

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. 👏

EINDEX commented 1 year ago

Yes, you are right, this is possible.

This depends on the subblock feature.

AidfulAI commented 1 year ago

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

EINDEX commented 1 year ago

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
EINDEX commented 1 year ago

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

AidfulAI commented 1 year ago

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! 👏