orgmode icon indicating copy to clipboard operation
orgmode copied to clipboard

Create headline if it doesn't already exist in target

Open zdcthomas opened this issue 6 months ago • 1 comments

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

zdcthomas avatar Apr 03 '25 18:04 zdcthomas