Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to Adjust Headers for Combined Note? #3

Open
splerman opened this issue Aug 8, 2021 · 2 comments
Open

Option to Adjust Headers for Combined Note? #3

splerman opened this issue Aug 8, 2021 · 2 comments

Comments

@splerman
Copy link

splerman commented Aug 8, 2021

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

@JackGruber
Copy link
Owner

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

@BsNoSi
Copy link

BsNoSi commented Oct 27, 2021

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 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants