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

Notes: narrow to the complete template instead of last org-heading #277

Merged
merged 2 commits into from
Jan 13, 2019

Conversation

akoehn
Copy link
Contributor

@akoehn akoehn commented Jan 4, 2019

Before, a note template consisting of sub-headings would result in
only showing that sub-heading, e.g. using a template like this:

  • Author (XXX): Title
    ** takeaways
    ** new questions
    ** additional literature

would only narrow to additional literature. Now we narrow to the
complete template instead.

A side-effect is that for non-org templates the point is now at the
start of the template instead of the end.

Before, a note template consisting of sub-headings would result in
only showing that sub-heading, e.g. using a template like this:

* Author (XXX): Title
** takeaways
** new questions
** additional literature

would only narrow to additional literature.  Now we narrow to the
complete template instead.

A side-effect is that for non-org templates the point is now at the
start of the template instead of the end.
@akoehn
Copy link
Contributor Author

akoehn commented Jan 4, 2019

I thought about point positioning and would actually prefer if the point was always at the start but didn't want to also change that in this PR.

@tmalsburg
Copy link
Owner

Thank you for this PR. Makes perfect sense. However, there is another PR (#263) in which we switch to org-capture as the underlying infrastructure. I think this will also allow us to specify in the template where the cursor should be placed. And correct narrowing should come for free if I'm not mistaken.

@akoehn
Copy link
Contributor Author

akoehn commented Jan 5, 2019

Yes, I saw that PR, but also that its last activity was in October. This is just a minimal bugfix.

@tmalsburg tmalsburg merged commit f1fb797 into tmalsburg:master Jan 13, 2019
@tmalsburg
Copy link
Owner

Merged, thank you! (And neat idea to have predefined subsections.)

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

Successfully merging this pull request may close these issues.

2 participants