Questions tagged [org-capture]
is for capturing notes in Org mode with minimal interruption.
203
questions
0
votes
1
answer
26
views
Programmatically call org-capture w/ specific template
Is it possible to use emacs-lisp to call org-capture with some template being preselected?
My use case is:
I need an org-mode External link of ‘elisp’ type that triggers a specific org-capture ...
0
votes
1
answer
36
views
What is org-capture trying to write to my init.el file?
My init.el is symlinked by NixOS, so that means it's write protected.
For some reason, after org-capture, Emacs tries to write to this file.
I'm not sure I understand what it's trying to write?;)
...
0
votes
0
answers
12
views
A file I was using for org-capture has been renamed (*filename*.org -> *filename* (1).org, is this normal?
I wanted to rule out this being a feature of org-capture, maybe a result of manually editing the file or something?
If anyone has any other suggestions as to what else could have caused it I would be ...
0
votes
1
answer
28
views
Org mode: Scheduling irregular, yet rigid procedures
The Problem
What's the best way to schedule complicated time-based procedures that are repeated on irregular dates? E.g., say I signed up to do night watch on a set of arbitrary dates. The night watch ...
0
votes
1
answer
111
views
How to use org-capture template expansion on finish?
I would like to capture the time when I finish an org-capture template with C-c C-c.
Is it possible? And how is it possible to use the given templates (i.e., the template %U) for this?
Best
Jonas
0
votes
0
answers
44
views
org-capture, wrong-type-argument, expand-file-name
I often see this problem when I org-capture
What I do is open this quasar-agenda buffer and kill it.
After that, the command works.
Any idea how to troubleshoot this?;)
Debugger entered--Lisp error: (...
0
votes
0
answers
24
views
Capture to a location based on on location in org-tree
org-capture has a highly customizable set of capture locations using org-capture-templates. I've used this for doing things like capture to the current task I am working on using org-clock or to ...
0
votes
2
answers
53
views
How do you handle an error in the scope of current-buffer with condition-case?
I would like to create headings and subheadings with org-capture if they don't exist
with file+olp in my templates. The problem is that I get this message Heading not found on level 1.
I'm not sure ...
0
votes
0
answers
8
views
How can I use variables in target file paths for org capture templates? [duplicate]
I use emacs on a few different machines which unfortunately don't have the same file structure, but I want to share my config among them as much as possible. All machines have a ".../org/" ...
1
vote
1
answer
42
views
Org-mode tag autocomplete with helm adds unwanted comma
When using org-capture, tags are auto-completed with a comma that is not compatible with org-mode tags (org-mode tags are separated by colons)
I believe helm is assisting with the tag autocomplete ...
2
votes
1
answer
54
views
using "Shift+Space" in org-mode capture minibuffer
Using Emacs 28.2 (graphical, not text mode) from https://emacsformacosx.com with org-mode 9.5.5 and ivy.
When entering a task description in the mini-buffer via org-capture, I occasionally enter both ...
1
vote
0
answers
77
views
How to programmatically invoke an org-capture template
Let's say I have the following template added to org-capture:
(defvar my/org-todo-template
"* %^{NUMBER} - %^{DESCR} [%]
** Contacts
** Fotos
** Tasks
*** TODO Task a
*** TODO Task b")
(...
0
votes
0
answers
23
views
org-capture: place output under heading in clocked in entry
I am trying to create an org capture template which places list items under a specific heading ("Notes") in the currently clocked in task.
Here is my current template (in org-capture-...
0
votes
1
answer
58
views
Org-capture: Use org-expiry to create property drawer in top level headline
I use org-expiry to insert the CREATED date in properties drawer by default. When I created second level headlines with my org-capture template and press C-c C-c when my cursor is at second level ...
0
votes
0
answers
53
views
Defining capture templates with use-package
I'm using the preface keyword of use-package to define capture templates. Although this approach work I'm now sure if it's the recommended way of doing things. I would be grateful for any suggestion.
(...
0
votes
1
answer
74
views
Template is not a valid Org entry or tree
There is a previous post for that error, but it didn't help in my case. What could be causing the error?
Set up:
$ ls -a $HOME/org
. .. '#notes.org#' .#notes.org .notes.org .notes.org~ tpl-...
0
votes
0
answers
40
views
Unwanted spacing in datetree template
I have an issue with unwanted spacing when I'm adding entries to datetree. This is the template I'm using, stripped to simplest for the purpose of testing:
("p" "Progress" entry (...
0
votes
1
answer
107
views
org-capture template with file local variables
I'm trying to set up a capture that automatically deactivates the undo-tree history saving in an encrypted file by setting file local variables.
When I call the capture and have entered the filename ...
0
votes
1
answer
239
views
org capture datetree: active timestamp for the day heading
I want the date in front of the day, captured with file+olp+datetree and type week as an active date so I can look the entry up in the agenda. The date which I'm talking about is underlined red in the ...
1
vote
1
answer
126
views
How to remap org-capture-templates keybindings?
I mapped org-capture with C-c c like this:
(global-set-key (kbd "C-c c") #'org-capture)
Amongst my org-capture-template, two have been set like this:
("i" "Inbox"
...
0
votes
0
answers
31
views
Org-capture: not able to copy paste image in transient buffer
Basically that: when I try to capture on the fly ideas with images, I can't paste them. Org-capture seems to only work for text. Any ideas on how to bypass this limitation? Thanks!
I just noted this ...
0
votes
1
answer
327
views
Using org-roam-capture throws error: Symbol's function definition is void: org-fold-show-all
I am using org-roam and the problem occurs when I try to use an org-roam-capture template.
The capture template is for creating org-roam-nodes from citations using citar. It is based on this blog post ...
1
vote
1
answer
798
views
How to programmatically create a new org-roam file?
I want to create a new org-roam (v2) file (i.e., an org-roam node that is a file…) from an elisp script. I know what I want the content of that file to be, and I want the file to be created and the ...
0
votes
1
answer
513
views
Org capture template with org-store-link
I would like to create an org-capture template such that when I select it with org-capture (which is mapped to C-c c for me), I want the capture template to ask me for the description and URL of a ...
0
votes
1
answer
45
views
org capture auto id insert %a
When creating a capture, org capture will auto insert a link which link to the location where the capture action happens, if the capture template contains "%a".
e.g: I'm in heading A, and ...
0
votes
1
answer
84
views
org-capture templates, relative dates
I'm trying to create an org-capture template that contains dates relative to the value of %t. I understand that with C-1 I can prompt for a particular date, and I'm looking for the day prior and the ...
0
votes
1
answer
73
views
Why is my variable out of scope in org-roam-capture?
I would like to define an function using org-roam's capture system. However, I want to create a new function, not use the variable org-roam-capture-templates and the related function org-roam-capture.
...
0
votes
1
answer
185
views
My Org mode capture code returns "Invalid file location: nil"
I use the following code for the org mode capture functionality, but it returns the error "Invalid file location: nil". What is wrong? Thanks in advance for any help!
(setq org-capture-...
3
votes
1
answer
382
views
Turn off fringe character for org-capture
I updated to Emacs 28 recently and org-capture now puts a small character in the left fringe for captured items. I know that I can set fringe-mode to no-fringe to not see any fringe, but that's not ...
1
vote
0
answers
211
views
Org capture to existing file
I would like to use org-protocol to capture to an existing org file if one already exists. I am using a function to generate the file name interactively for the org file to be captured to:
(defun my/...
3
votes
1
answer
1k
views
Org-roam-dailies navigation with custom template
I've setup a template for org-roam-dailies in such a way that
There is one file per month, so YYYY-mm.org
Inside each file, headlines go with a timestamp
(setq org-roam-dailies-directory "daily/...
0
votes
1
answer
86
views
Comments in org capture templates
I have a lot of org capture templates defined in my .emacs file.
I'd like to be able to add a "comment" into some of them - how would I do that?
For example when I'm capturing a new GTD ...
0
votes
1
answer
608
views
org-capture-templates allows file+headline to capture to a headline. How can I capture to a sub-headline?
I have an org file tracking my tasks across various projects:
work.org
* Job 1
** Tasks
*** TODO rewrite frontend in coldfusion
* Job 2
** Tasks
*** TODO Convince boss to buy stadium
I can do an org-...
1
vote
0
answers
131
views
Custom org-capture find headerline function error, wrong number of arguments
So, I managed to get my headline retrieval function fixed, so now the function searches and finds my header lines, but when I select the one I want to use.. it oddly throws back this apply: Wrong ...
2
votes
2
answers
497
views
How do I make org capture prompt for specific header target?
I need help writing a function that makes Org Capture prompt me of what it should place the capture to a specified header in my tasks org file (basically I need it to search through the specified org ...
1
vote
1
answer
163
views
Using regexp in org-refile-targets and the `:refile-targets` property in org-capture-templates
I am trying to specify a refile target with a regexp, but can't get it to work. Specifically, I'm trying to use the new :refile-targets property in org-capture-templates, but this question holds for ...
1
vote
1
answer
191
views
Org-capture template extension with project name
I am struggling to setup an org-capture template which captures the current projects name from where it is called.
Just like
‘%f’
File visited by current buffer when org-capture was called.
I am ...
1
vote
1
answer
94
views
Orgmode link description without https
I would like to have a capture template that would take a pasted link like:
https://orgmode.org/manual/Completion.html
and return:
[https://orgmode.org/manual/Completion.html][orgmode.org/manual/...
1
vote
1
answer
98
views
How do I correctly use org-entry-put with "DEADLINE" in a capture
I want to set the deadline of every org-capture per some considerations and I want to do this after the capture rather than in the capture template.
Given the following example code:
(defun post-...
0
votes
0
answers
210
views
org-capture: use without indirect buffer
Is there a way to enter capture text without the indirect buffer after C-c c?
So, after pressing C-c c the :LOGBOOK:is directly filled with - Note taken on... and I can continue capturing text in that ...
0
votes
0
answers
339
views
Capture template for org-roam-bibtex to keep notes in single file
As the title says, I want to setup org-roam-bibtex so that I can capture notes for different papers/articles in a single file.
(I've asked iterations of this on the org-roam discourse page and on the ...
1
vote
1
answer
185
views
Is there a way to include heading in link from org-outlook
'New to OrgMode'
I am using org-outlook to capture email from outlook as task. I have a file ToDo.org with different multi-level headings. Looking for a way to put task under a specific heading.
Right ...
0
votes
1
answer
88
views
org-protocol URLs with UTF-8 (URL-encoded) characters aren't properly captured
When using org-protocol capture URLs on Windows, pages with non-ASCII titles or captured text results in a capture with incorrect values applied in the template. Despite such characters being properly ...
0
votes
1
answer
172
views
org-capture header nesting levels
I am a relative emacs/org newcomer, and I am trying to get org-capture tuned to what I am looking for. I do spend a lot of time trying to search for answers, but sometimes I just get stuck.
what is ...
1
vote
0
answers
46
views
spacemacs: org-capture generates point with unexpected highlight
In spacemacs, when I use org-capture to insert in an existing .org file with a template, I get an orange highlight that I don't expect, and I don't know what it means:
In the image the 2021/07/16 ...
1
vote
1
answer
179
views
org-capture template does not replace the date placeholder or use the correct level
I'm trying to create an org capture template that will just insert a second level point: "** 2021/07/16" (or whatever the current date is).
I expect this setq example to do that:
(setq org-...
1
vote
1
answer
469
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 ...
1
vote
1
answer
228
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
0
answers
115
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 ...
1
vote
1
answer
105
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 ...