joplin-plugin-combine-notes icon indicating copy to clipboard operation
joplin-plugin-combine-notes copied to clipboard

Option to Adjust Headers for Combined Note?

Open splerman opened this issue 2 years ago • 2 comments

Thanks for all your contributions to the plug-in repo. Joplin's usefulness has been expanding exponentially since the plug-in system was implemented thanks to you and others.

This plug-in looks very promising to resolve a tedious manual procedure that I repeat too often. How do you handle Headers and TOC during the combine process?

When I combine notes manually, I:

  1. Demote all headers one-level and create a new H1 (i.e., Note Title) for the combined note. This keeps my automatic header numbering intact.
  2. Strip any existing [toc] from the original notes and add consolidated [toc] for the combined note. (TOCs not visible in examples, below, as they are fly-in from the right-margin when hovering)

Example:

NOTE1 Markdown:

# Note 1
<div class="n-"><p style="font-size:x-small;line-height:1.2"><strong>Document Last Revised: </strong>XX/XX/2021<br><strong>Reference: </strong><a href="REPLACEWITHURL">REPLACEWITHLINKTEXT</a></p>

[toc]

Brief description of the concept/procedure etc.

## First Section of Note 1

### First Subsection of Note 1

### Second Subsection Note 1

NOTE1 Rendered: image

NOTE2 Markdown:

# Note 2
<div class="n-"><p style="font-size:x-small;line-height:1.2"><strong>Document Last Revised: </strong>XX/XX/2021<br><strong>Reference: </strong><a href="REPLACEWITHURL">REPLACEWITHLINKTEXT</a></p>

[toc]

Brief description of the concept/procedure etc.

## First Section of Note 2

### First Subsection of Note 2

### Second Subsection of Note 2

NOTE2 Rendered: image

COMBINED Markdown:

# Combined Note
<div class="n-"><p style="font-size:x-small;line-height:1.2"><strong>Document Combined: </strong>XX/XX/2021</p>

[toc]

## Note 1
<div class="n-"><p style="font-size:x-small;line-height:1.2"><strong>Document Last Revised: </strong>XX/XX/2021<br><strong>Reference: </strong><a href="REPLACEWITHURL">REPLACEWITHLINKTEXT</a></p>

Brief description of the concept/procedure etc.

### First Section of Note 1

#### First Subsection of Note 1

#### Second Subsection Note 1
## Note 2
<div class="n-"><p style="font-size:x-small;line-height:1.2"><strong>Document Last Revised: </strong>XX/XX/2021<br><strong>Reference: </strong><a href="REPLACEWITHURL">REPLACEWITHLINKTEXT</a></p>

Brief description of the concept/procedure etc.

### First Section of Note 2

#### First Subsection of Note 2

#### Second Subsection of Note 2

COMBINED Rendered: image

splerman avatar Aug 08 '21 18:08 splerman

I will think about it during the days when I have time.

JackGruber avatar Aug 12 '21 20:08 JackGruber

No idea how complex to implement but would be possibly nice:

Setup gives the option to choose a default for title of combined note.

  • Title from first (top) selected note
  • Title from last (lowest) note
  • Default title: [ input field → easy setup for any language ]

BsNoSi avatar Oct 27 '21 14:10 BsNoSi