Questions tagged [org-capture]

is for capturing notes in Org mode with minimal interruption.

Filter by
Sorted by
Tagged with
1
vote
0answers
12 views

How can I use the current org-mode buffer as a Target in an org-capture template?

I want to design an org-capture definition that targets the current org file. Looking at the list of available targets it's not clear to me what I should use. Considering using (current-buffer) as ...
0
votes
0answers
7 views

Org-capture template containing a date relative to when an email was received

As the title describes, I want to be able to create an org-capture template which allows me to specify a relative date (say, 2 days) from when an email was received and print it out. The solution ...
0
votes
1answer
34 views

Pull from git before applying org-capture?

I'm using org-capture to take project-specific notes by having a notes file in each of several git repositories. Looking forward, however, I can see danger here: if I'm working on project (1) and I ...
0
votes
0answers
28 views

org-capture datetree inside current buffer not working

i want to capture into a datetree inside the current buffer. Below is my snippet. But unfortunately it doesn't work. Always an error: org-capture-expand-file: Invalid file location: nil I use emacs 28 ...
15
votes
0answers
254 views

Create a “rabbit hole” task stack that can be pushed/popped?

I frequently fall into a sort of working anti-pattern involving “rabbit holes.”¹ Here’s the form it takes (with a concrete e.g. in parentheses): Start working on something (the “real task”) ...
2
votes
1answer
141 views

org capture at point as sibling of heading

org 9.2 used to support this feature. when (org-capture 0), it used to place the selected template entry as a sibling of heading at point. in org 9.3 however, it fully respects the heading level ...
1
vote
1answer
20 views

Weird error on org-capture

I got my command for Ctrl+C - c - t (i.e. invoke org-capture) slightly wrong (i.e. missed a key or something when trying to type it). I know I got it wrong because it didn't work but instead changed ...
3
votes
1answer
832 views

Generate a date tree from timestamps in org-mode

Since I was interested in doing my early capture-templates, I was tempted to go with this template below: ("j" "Reference type: Journal" entry (file+headline "~/Dropbox/orgfiles/gtd/ref.org" "...
1
vote
1answer
163 views

How do I show org links pointing to an entry?

I have org-capture templates setup (but the default Todo template works the same way) to create a link in the resultant file to the text that was selected when org-capture was invoked. This allows me ...
2
votes
2answers
2k views

Org capture template not working (when trying to set local notes file)

My goal is to get org-capture to store captured notes in a local "notes.org" file located in the same directory as the current working buffer. I set the template like so: (setq org-capture-templates ...
0
votes
1answer
24 views

org-capture with reference to file in which it was invoked

Is there a way to configure org-capture so that, if I create a note from within a certain file, it will include a link to that file?
0
votes
0answers
17 views

org-capture templates: how to fetch name of file during capture-template creation to be used as variable

I aim to replace "* TODO" with "* %name of the file I am creating". Is this possible? This is my code for the capture template: I would like the * TODO be replaces by the name ...
0
votes
1answer
181 views

Org capture template output to two files

I am currently using two separate Org files to manage my work Todos. One is a file that I edit directly and keep notes on each todo task (Work.org). The other is a schedule file which is synced with ...
2
votes
1answer
127 views

how org-capture can insert value in an existing table line

I am diabetic and I have to take my blood glucose three times a day (morning, noon, evening) I can do in three separate tables, and I create a table to group the daily records. How could I capture all ...
0
votes
0answers
13 views

How can I tell emacs to choose the 'right' link function from `org-store-link-functions` based on the mode it was triggered in

Whenever I want to capture a link from a PDFView buffer with org-store-link, I get prompted for the link type I wish to apply ("Which function for creating the link? "), with two choices: ...
1
vote
3answers
1k views

How to use org-capture without creating ID property?

Whenever I create org-mode entries using org-capture they automatically get an ID property. Is it possible to disable that? I'm using org mode version 9.0.5.
0
votes
1answer
51 views

Error replacing %n escapes with nth %^{…} string in emacs org capture

I am trying to write a custom org-capture template, but I get an error if I try to use the %\N functionality to insert the N-th prompt. The relevant excerpt of my org-capture-templates variable is (&...
0
votes
0answers
29 views

How to remove spurious whitespace in `org-add-note` LOGBOOK drawer

When using org-add-note (C-c C-z) in Org, I'm unable to automatically remove whitespace that is inserted when finalizing the note and the text is filed into the LOGBOOK drawer. global-whitespace-...
0
votes
0answers
113 views

Recommended Emacs for ORG-Mode (vanilla, emacs plus, doom, spacemacs)? Getting Things Done (GTD) Method?

This is just a general question in relation to emacs and it's specific use for ORG mode. I have always been miserable at planning and organization in daily life (keeping TODO list, general time ...
0
votes
1answer
60 views

Creating a new text file in a directory using org-capture

Following this response: Org-Mode - How do I create a new file with org-capture https://stackoverflow.com/questions/11902620/org-mode-how-do-i-create-a-new-file-with-org-capture? I am trying to make ...
0
votes
1answer
31 views

How to create a function to lauch org-capture with a selected template?

Let's say my capture template is bound to 't': (defun my/captureTemplate () (interactive) (org-capture "r") This won't work as it will show me the whole list of potential templates to ...
0
votes
1answer
48 views

Dynamic name for org-capture template file [duplicate]

I am new to org-mode (and to Emacs in general) and am trying to set up org-capture. I would like to define a todo capture item whose template is located in the file ~/.emacs.d/org-templates/todo.tmpl....
0
votes
0answers
107 views

org-capture: Capture abort: Wrong type argument: stringp, org-main-file

I know this error has come up here before, but none of the answers thus far have been able to help me and no amount of googling has got me anywhere. I've been using org-capture-templates for quite a ...
5
votes
3answers
792 views

In org mode, how can I make a post-capture hook run only for certain capture templates?

I have several capture templates. With one of them, I want an Elisp function to transform the contents before saving it. I know of org-capture-prepare-finalize-hook, but this will run for every ...
0
votes
0answers
39 views

org-capture buffer not showing schedule/deadline/time

If I use org-capture via C-c c t, I type in my headline (eg. "a new task") and press Enter, it takes me to a capture buffer, as expected. I can change the priority of the item there (eg. ...
0
votes
0answers
139 views

org-capture-templates stopped working

I have org-capture-templates defined as below and until today could capture and log my runs fine, but as of today they've stopped working... (setq org-capture-templates '(;; Computing (&...
0
votes
0answers
34 views

What org capture hook to use for saving an attachment in mu4e

I often need to capture a file attachment from mu4e (pdf invoice), which currently involves multiple manual steps: In mu4e email view buffer Save attachment to e.g. ~/filename.pdf Navigate to ~/...
1
vote
0answers
21 views

Org-capture menu, how I go back after selecting a template group?

When defining template groups like so: (add-to-list 'org-capture-templates '("a" "Group A")) (add-to-list 'org-capture-templates '("aa" "Group A, Sub-group A")) (add-to-list 'org-capture-...
1
vote
1answer
86 views

Org mode capture template for repeat tasks

I want to capture several tasks that will repeat annually from the date on which they are captured. So, I did: (setq org-capture-templates '(("a" "TODO Item that repeats annually&...
0
votes
0answers
36 views

Using org-capture in batch mode?

I'm trying to build an Alfred workflow to bookmark pages from my browser using org-capture. Ideally I would not need to present the emacs UX at all but rather I could capture all the info I need in ...
0
votes
1answer
159 views

org-capture to a heading within a date-tree

been using org-mode for a little over a year, but still have a ton to learn. Here's the setup and question: i've got a straightforward date-tree daily notes / tasks setup, and i'm trying to figure out ...
0
votes
0answers
17 views

Cannot capture notes into separate org file when entering reference into Bibtex with ivy

I am using emacs 27.1-4.1 with Spacemacs v.o.200.13 Ivy and vims. I am relatively new to emacs and am expanding into bibtex with ivy-bibtex. in my .spacemacs file is: (autoload 'ivy-bibtex "ivy-...
0
votes
0answers
34 views

Insert TODOs and SCHEDULE items in calendar view

We can do this with 'k' in agenda. How to insert / capture tasks at Calendar in Emacs? It would be very useful. Thanks!
0
votes
0answers
25 views

org-mode file-level agenda scheduling and searching

My current org workflow involves creating a new org file for each meeting I have, which I find very useful for grouping, scheduling and organising my TODOs from any given meeting. I use org-capture to ...
0
votes
0answers
31 views

Why is Org mode converting spaces in links to HTML entities?

I store a link such as [[file:~/path/to/dir/some file.txt::# heading]], either manually or through org-capture. A few days later, Org has converted all spaces to the HTML entity %20: [[file:~/path/to/...
1
vote
1answer
37 views

How to pass the current scopes function symbol as an argument to an elisp function

I am trying to create an org-capture template which works with yankpad and yasnippets to such that if I am working with some c code like this: example.c static int somefunc(int a) { if (a ==5) { ...
0
votes
0answers
28 views

Emacs on Windows. Dired - no sorting. Unrecognized symbols

Set up Doom Emacs on windows. Works fine but in Dired i have unrecognized symbols and also in org-capture. Sorting in dired does not work either. Any ideas? Latest Emacs.
0
votes
0answers
84 views

org capture: Store new file name or use an existing file name as a variable

I'm looking for a way to use a fuzzy finder menu to store a new file name or select an existing file name as ${title} or %ˆ{Name} string variable. I use the zettelkasten system and my workflow ...
1
vote
1answer
92 views

Weekly org-capture-template without days?

I'm hoping to replicate my manual weekly capture template using the more baked-in functionality. Given this org-capture-template: ("z" "Test" entry (file+olp+datetree "~/docs/...
2
votes
4answers
540 views

Newlines swallowed by org-capture

I irregularly see that org-capture has led to the disappearance of a newline, leaving me with lines like these * meeting w/ ch. <2017-12-01 Fri 11:00>* reading group <2017-10-09 Mon 16:15 +...
1
vote
2answers
406 views

File org-capture entry under current headline at point

Let's say that I have a tree of tasks like so: * TODO Launch website ** TODO Get database running *** TODO Select MySQL vs. PostgreSQL Let's say I'm looking at the "Select MySQL vs. PostgreSQL" and ...
0
votes
0answers
20 views

Update DEADLINE: time and to do state on parent header after org-capture finishes

I have a couple of org-capture templates that insert tasks/notes under a header called re-organize, I'm looking to update the to do state and deadline of that re-organize header after org-capture ...
0
votes
0answers
127 views

Org-journal file template vs new-entry

My goal is to have a file template (header + daily review), and then have further entries as is from the package (bulletpoint + timestamp). Meaning the first thing in the morning I would open the ...
0
votes
0answers
30 views

emacs org capture mode not creating link with “%a”?

my org capture template is (setq org-capture-templates '( ("i" "Idea" entry (file+datetree "~/Dropbox/org_mode/ideas.org") "* %?\n Idea: %U\n ...
2
votes
1answer
388 views

Monthly date tree

I'd like to use datetree with month (alternatively week) granularity. Currently the datetree looks like that: * 2019 ** 2019-03 March *** 2019-03-17 Sunday **** TODO Weekly review I'd like to drop ...
0
votes
0answers
49 views

skip org-capture prompt (deadline)

Is it possible to skip prompts in org-capture-templates? Examlple: I would like to prompt for a DEADLLINE but sometimes there is no hard deadline or it is not yet known. I would like to just skip over ...
0
votes
0answers
99 views

org-capture-template “:created” property

Studying the variable org-capture-template I found several configurations where a certain :created t property is used. One example is here In my help buffer (help:org-capture-templates) I could not ...
0
votes
1answer
262 views

mu4e: Refiling email while making an org-todo

Background: I read my email through mu4e in (Doom) emacs. I set up an org-capture template that stores a TODO with a link to the current email I'm viewing, all working great. Typically I do this from ...
25
votes
2answers
9k views

org-mode: how to generate clock report for hours worked each day?

org-clock-report is awesome; however, it reports time spent on each task. Is there any custom command that you use to generate a clock report showing hours worked, across tasks, for each day? The ...
1
vote
0answers
37 views

Do not require tags when doing org-capture

 I have this org-capture template: ("a" "Appointment or call" entry (file+headline "~/todo.org" "Tasks") "* %? %^G \n %^t \n %i") It asks for a tag. Sometimes I insert tags, sometimes I don'...