Questions tagged [org-capture]

is for capturing notes in Org mode with minimal interruption.

Filter by
Sorted by
Tagged with
11
votes
1answer
4k 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 ...
10
votes
0answers
142 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”) ...
8
votes
1answer
955 views

Is it possible to file a capture template in a subheading of a day in a datetree?

In Org-mode, I would like to have a capture template get stored like this: * 2015 ** 2015-05 May *** 2015-05-21 Thursday <--- I can get this with file+datetree **** Todo today <-...
8
votes
3answers
1k views

Emacs: function to make a file with date/time as filename, and a shortcut for it

I need to generate text files with the following name format: YYYYY-MM-DD--hh-mm-ss.org. How can I use the capture funtionality for this? That is, instead of making one entry per capture in a single ...
7
votes
1answer
478 views

Evil mode - How to go into Insert mode after Org-capture with %? cursor placement

After creating an org-capture with the %? to place the cursor, the cursor will be in command mode. Is there a variable for putting it into insert mode or does org-capture elisp code need to be ...
7
votes
1answer
453 views

where is default org mode capture template for tasks located

I was configuring some capture templates for org mode but when adding any new template to init file, the default TASK template disappeared. (setq org-capture-templates '(("t" "Todo" entry (...
7
votes
1answer
6k views

Error message “Symbol's function definition is void: org-link-types” when I open a .org file

I tried to get the "capture"-Feature to work. I did the following things: Installation of the newest Version of the Org mode (now the version 8.2.10) To get the capture feature work i added to my ....
5
votes
1answer
1k views

Set org-capture datetree write on top of the file

I'm using org to store a list of links, I capture the links with org-capture and a custom template, but I want to write the new entries at top of the file. how I can do this?
5
votes
1answer
1k views

Using org-protocol with a floating capture window?

I have recently found a way to have a floating capture window, with this setting I can create a floating capture window using: emacsclient -n -e '(make-capture-frame)' My knowledge of elisp and org-...
5
votes
1answer
2k views

Org-mode: clarify the concept and practice of archiving

My current org file (e.g. work.org) has 20+ DONE tasks and Org-mode becomes extremely slow: even moving the cursor takes a 2-3 seconds sometimes. I decide I have to archive these DONE tasks, but I ...
5
votes
2answers
188 views

Org-refile locks up file when used from org capture

I like to use org-refile to refile notes during the capture process. But, since org-refile does not saves the file after the refiling is done, the file ends up being locked up and I need to visit the ...
4
votes
1answer
209 views

Change the time when picking a date?

I am using a %^T element in my org-capture-template. This prompts me this need calendar buffer, where I can pick a date. I can move around by using SHIFT+<arrow>. It maps to calendar-forward-...
4
votes
3answers
103 views

Org-capture menu from within helm

I have started using org-capture extensively, and now have capture lists for just about everything: books to read, movies to rent, articles to write, research topics, business ideas – you name it. ...
4
votes
1answer
474 views

How to make a capture task template that stores a new task at point in the file I am in?

Org capture is a great tool for capturing notes and task when doing other things inside Emacs. The captured item is stored in a specified file for later review, and the point jumps back to the file it ...
4
votes
2answers
415 views

Cannot use concat within org-capture template

I am trying to use concat from within an org-capture template. But I keep getting an "Invalid template" error, so something's not right. Here is my code: (setq org-capture-templates '(("j" "...
4
votes
1answer
569 views

How to Org Capture at current location?

I have successfully used org-capture, and have many templates. Recently I have written a new template, where I want the target to be the location from where I am calling the capture command. I have ...
4
votes
2answers
551 views

Add line number to org-capture

Preface this by saying I program but I'm not a programmer, and I especially don't know lisp. I use org capture during code reviews, and we use line numbers as a way or organizing changes that need ...
4
votes
1answer
386 views

Capture template without body

I have an org-formatted file named foo.org that consists only of headings (without body). Notice the absence of blank lines. * one ** a ** b * two ** c * three I want to use capture templates to ...
4
votes
2answers
284 views

Capture deadline timestamp based on date in agenda view?

I want to capture things with a deadline timestamp relative to the date that is open in my agenda view. How can I do that? The %T template inserts today's date. I want a template that queries my ...
4
votes
1answer
967 views

Capturing screenshot in org-capture buffer

I am planning to insert screenshot in org-capture buffer. I have a function that can create a screenshot image in a images subdirectory of current directory. However, since the org-capture buffer is ...
4
votes
1answer
528 views

How to use Org Capture to add a task *and* automatically add parent's property

I'm trying to create an org-capture template that creates a task and (important part) automatically adds a parent's property to this new task. I'm comfortable creating new capture templates--I'm just ...
4
votes
1answer
411 views

Dynamic Org-capture Templates

I've read the org-capture template documentation and searched for "Dynamic org-capture templates" but cannot seem to find out how to create the following: C-c c "a" Activity: math (<-...
4
votes
2answers
740 views

file org-capture item under existing heading if it exists

I have the following org-template set up: ("mw" "Note" entry (file+headline "~/org/mathematica.org" "WIA") "* %f code review \n ** %T \n%? \n%a \n%i") So that the heading name is determined by ...
3
votes
1answer
365 views

Org capture into org table

Normally org-capture lets one insert a templated subtree somewhere into an existing Org file or tree node. Is it possible to use org-capture to instead add a row to an existing Org-mode table?
3
votes
1answer
4k views

Can' t set directory for org-mode capture

I was trying to use the capture as is explained in org-manual p. 85. This is the relevant part of my .emacs file. (setq org-default-notes-file (concat org-directory "~/Notities/org-mode/Capture.org"...
3
votes
2answers
216 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 ...
3
votes
1answer
405 views

Can I create a checklist entry using org-capture?

It seems to me that org-capture requires templates to start with a heading (*). Can I not have a template like: ("d" "Daily Tasks" entry (file+datetree+prompt "daily.org") "- [ ] %?") that does ...
3
votes
1answer
430 views

Creating templates in emacs

I need to create a weekly agenda that has the same outline. I currently have a Word template file that I use, but would like to convert it to emacs. I want the emacs "template" to pre-fill the ...
3
votes
1answer
37 views

Eliminate org capture message

How can I disable the persistent message on an org capture buffer that says? Capture buffer. Finish `C-c', Refile `C-w', abort `C-k'. A similar message is displayed when entering a source block. ...
3
votes
1answer
77 views

How can I capture selected text in a pdf-view buffer with org-capture?

I would like to capture the selected text (selected with the mouse) in a PDF document (opened in PDFView Mode) with an org capture template. When I evaluate the expression (car (pdf-view-active-...
3
votes
2answers
306 views

Capture org notes to a new file

I would like to improve my notes capture flow to do the following: Use C-c c then n to create a note. Get a minibuffer that searches for an existing file to add the note to (ie. probably with helm), ...
3
votes
1answer
665 views

Tags completion from org-capture window

If I place %^g in my capture template, org will prompt for tags, with completion. But typically, I like to brainstorm on relevant tags, after I finish writing my ideas. Is there some way to get tag ...
3
votes
1answer
83 views

org-capture notes above footnotes header?

Org-capture appends its notes to the bottom of my notes.org file. But this places them below the * Footnotes headline, which is problematic. Is there some way to configure org-capture so new notes are ...
3
votes
1answer
605 views

Using user prompted file name for org-capture in template

With the help of these questions, I managed to prompt the user for a file name in org-capture and combine it with a timestamp. (defun my/generate-org-note-name () (let ((name (read-string "Name: ")...
3
votes
2answers
805 views

json-readtable-error during org-capture

This problem only arose today and I haven't really changed anything substantial in my init.el so I am sure what the source of the error is. Essentially, when running org-capture (and also during ...
3
votes
0answers
283 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" "...
3
votes
2answers
445 views

Send org-capture tasks to different files, depending on which file org-capture is called from

I am beginning to use org-mode as an electronic lab notebook, which is working very well. I work on a number of different projects, each of which has its own directory. When I use org-capture, I want ...
3
votes
0answers
205 views

orgmode, capturing original document title

I have a basic capture template: ("a" "Article" entry (file+headline "~/GitLab/Reports/Bibliography/references.org" "Article") "* %^{Title} \n%?") that asks you to fill the Title field. Now, ...
2
votes
3answers
335 views

after org-capture, how to go to the content that I saved?

I just wondering if there is a way to go to the content which saved by doing org-capture I couldn't find any customizable variable so far :-/ Thanks in advance!
2
votes
1answer
318 views

Automatically store link when org-capture is called?

I know about the %a template element, which inserts the stored link in the entry. I'd also like to automatically store a link whenever org-capture is called from within emacs (as opposed to spawning a ...
2
votes
1answer
427 views

How to capture and link code comments as org agenda items?

I often see or leave comments in code projects like: //TODO more efficient hash on keys than BASE64? Ideally, I would like to be able to highlight a comment as such and org-capture it to an org file ...
2
votes
2answers
1k views

creating an org-capture template

I am trying to create an org-capture template for a grocery list, but there seems to be no easy way to get the result I want, and I'm pretty bad at programming. So I was hoping that maybe someone has ...
2
votes
2answers
291 views

Emacs freeze after selecting a org-capture template

I'm new to org-mode. I've tried to set up a simple TODO list by calling org-capture and when I select my [t] todo item on *Org Select*, Emacs freezes and I need to kill its process. On the mini-...
2
votes
2answers
501 views

How to group together tags in a headlines made by org-capture?

I use the following capture code for making notes. (setq org-capture-templates '(( "n" ; key "Add a note to abc.org file " ; ...
2
votes
1answer
703 views

How to remove the link from org-capture templates

I have the following org-mode capture template: '(org-capture-templates (quote (("t" "Task" entry (file+headline "~/org/tasks.org" "Incoming") "")))) The resulting capture buffer looks like this (...
2
votes
1answer
84 views

org-capture: prompt for a target file

Starting from the existing customization associated with key j, is there a way to view and modify the target file? In other words, by default, captured notes would go to */journal/inbox.org, ...
2
votes
1answer
42 views

Org Capture - prepend after org header/config block?

One of my org capture templates (in my init.el) looks like the following: ("n" "Note" plain (file "/path/to/file.org") "* %^{Title} %U \n%? \n" :prepend t) I'd like ...
2
votes
1answer
74 views

Org-capture template with deadline of one month from today

As it seems, org-mode capture templates mechanism maybe have changed? I'm using: Org mode version 9.2.4 (9.2.4-10-g3b006f-elpaplus) What I'm trying to do is to have a capture template that will ...
2
votes
2answers
93 views

How can I insert org-capture-templates into a document I'm editing

I have a capture template for TODO items defined as follows ("t" "todo" entry (file "~/org/refile.org") "* TODO %?\n%U\n%a\n" :clock-in t :clock-resume t) While editing a document, I ...
2
votes
1answer
1k views

Current time timestamp in org-capture-templates

In org-mode org-capture templates, what is the way to insert current time timestamp? I've tried %U like so: (setq org-capture-templates (quote ( ("k" "Capture an item and schedule it for ...