Skip to content

Create headline if it doesn't already exist in target #957

Open
@zdcthomas

Description

@zdcthomas

Does this feature exist in Emacs orgmode core?

No

Orgmode link

I'm not sure if this is the current behavior in emacs, but I think it would be pretty cool if the capture window offered to create a headline that doesn't yet exist in the target file.
An example:

						f = {
							description = "repo heading",
							template = "* %?",
							headline = vim.fn.fnamemodify(vim.fn.getcwd(), ":t"),
							target = org_agenda_path("repos.org"),
						},

on a new repo, currently won't let me confirm the capture since the repo headline doesn't exist in the file.

The relevant section in the code that I found was here.

Feature value

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementEnhancement, not necessarily available in emacs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions