Create headline if it doesn't already exist in target
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
Research direction
Start in lua/orgmode/capture/init.lua around line 584 and reproduce the capture configuration shown against a target file without the requested headline. Determine the existing confirmation behavior, then consider the work complete when a capture can create the missing headline and proceed successfully.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Lua
- Stars
- 3.9k
- Forks
- 192
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 18
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nvim-orgmode/orgmode
-
Difficulty 1/5 Under an hour Newbie friendliness 73/100
nvim-orgmode/orgmode#1193 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
nvim-orgmode/orgmode#1175 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
nvim-orgmode/orgmode#1174 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 92/100
nvim-orgmode/orgmode#1173 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 50/100
nvim-orgmode/orgmode#1172 ·
Maintainers usually reply within 1 day
All issues in nvim-orgmode/orgmode
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 5 days
-
documentation good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
eugenioenko/ttt#1000 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Gap in tab header in Content tabPossibly taken A pull request linked to this issue is open or already merged. Open@ Mainmenu / Settingsmenu UI/UX Unconfirmed bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
luanti-org/luanti#17669 ·
Maintainers usually reply within 1 day