quickadd icon indicating copy to clipboard operation
quickadd copied to clipboard

[FEATURE REQUEST] insert a H3 at end of H2 section

Open Awyugan opened this issue 2 years ago • 1 comments

The plug-in is so great, but I have a puzzle at present. When inserting 'insert at end of section', I can't insert a ## heading 3 at the bottom of the ## heading 2.

Awyugan avatar Oct 28 '21 04:10 Awyugan

I think the next ## 'can be identified. we can Add ###' before the next section.

Awyugan avatar Oct 28 '21 04:10 Awyugan

This would be a very good enhancement! For example, my file contains this:

# Meeting Notes

## Topic A

## Topic B

I want to insert ## Topic C after ## Topic B. But it gets inserted before ##Topic A.

Note that the only section header that I know the name of when configuring QuickAdd is Meeting Notes. The other section headers are always different.

I've tried to find a workaround, but not found one yet.

tauren avatar Mar 22 '23 06:03 tauren

Hey! Thank you for the feature request. Added in 0.17 :)

Use the Consider subsections setting in Captures.

Previous behavior with Insert after & Insert at end enabled:

## Heading # Insert after here
- content 1
- content 2
- content 3 # captures to after this

### Nested heading 1
Content

## Another heading
Content

New behavior with Insert after & Insert at end, but not Consider subsections enabled:

## Heading # Insert after here
- content 1
- content 2
- content 3 # captures to after this = same behavior as before. Enabled by default.

### Nested heading 1
Content

## Another heading
Content

New behavior with Insert after, Insert at end, AND Consider subsections enabled:

## Heading # Insert after here
- content 1
- content 2
- content 3

### Nested heading 1
Content # captures to after this, as it's considered part of the "## Heading" section

## Another heading
Content

chhoumann avatar Mar 27 '23 15:03 chhoumann