quickadd icon indicating copy to clipboard operation
quickadd copied to clipboard

Capture "Insert at end of section" doesn't work with subsections?

Open cansar opened this issue 2 years ago • 2 comments

It looks like when "Insert at end of section" is enabled, the text will be added at the end of the section before any subsections, not at the very bottom of that section level (after the child sections). I understand that this may be intended behavior but wanted to ask about it anyway. I was trying to use it to insert subsections like "### {{DATE:HH:mm}} | {{VALUE}}\n" in the capture format. I understand that in some cases one would expect everything at the top just like it happened.

I hope the illustration explains what I meant.

image

cansar avatar Oct 13 '21 01:10 cansar

I am having the same problem. It always adds it to the top of section regardless of what I set in the settings

Archie-2021 avatar Oct 18 '21 10:10 Archie-2021

I'd like to do exactly the same thing as @cansar. Great plugin and allowing inserting at the end of a section regardless of subsections would make it even better :-)

kalmir avatar Nov 10 '21 16:11 kalmir

I'd like this feature as well. I think #134 is essentially the same request.

tauren avatar Mar 22 '23 06:03 tauren

Hey! Thank you for reporting this. I'm considering this a new feature, not a bug. Some want their captures to be to the end of the target section, and others (like you) it to also take account of subsections. This behavior has been 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