Skip to main content

Questions tagged [org-refile]

Filter by
Sorted by
Tagged with
1 vote
1 answer
53 views

Error with org-refile and RFLOC in a custom function

I am using Doom Emacs and org-roam, while very useful, org-refile is hard to use in this configuration mostly because of readability issues. I have a custom consult-org-read function that lets me pick ...
lyndhurst's user avatar
  • 123
0 votes
1 answer
49 views

org-refile-targets as a local variable

Is it possible to set org-refile-targets on a per-file basis? A similar question was asked here. But it did not get any answers. I am OK if it is set as a Local variable in the file or it is set up in ...
Deshmukh's user avatar
0 votes
0 answers
60 views

org-refile and separator lines

To improve readability I keep some headlines separated by blank lines: * headline 1 * headline 2 * headline 3 While refiling to a headline immediately above a blank line using org-refile the refiled ...
cochrane12's user avatar
0 votes
1 answer
50 views

can org-refile-targets match headings *without* a given tag?

I can configure org-refile-targets to match headings in an org file with a certain tag. Can I do an arbitrary tag match? I'm interested in headings without a certain tag. (For example, I'd like to ...
Dan Drake's user avatar
  • 687
0 votes
0 answers
66 views

Is there a way to org-refile with olp outline path with elisp?

I understand I can use org-map-entries and use with-current-buffer and get the marker then refile using RFLOC. I don't want to advice. Is there a command I can use? This would be awesome if they added ...
Rick's user avatar
  • 25
0 votes
2 answers
73 views

Is it possible to refile using regexp applied to some property?

If I do M-x org-refile on qux using the first (commented out) version of org-refile-targets, it brings up Foo, as expected. Using the second version, I get "No refile targets", whereas I ...
user avatar
0 votes
1 answer
31 views

Mo refile targets

I have the following setup: (custom-set-variables '(org-refile-targets '(("~/Documents/org/x.org, ~/Documents/org/y.org" :maxlevel . 5)))) I open x.org and position the cursor on a ...
user avatar
0 votes
2 answers
121 views

Refile to any headline with of given TODO item types

My org file structure is as follows: * JOB Major Project 1 ** PROJECT Mini Project p ** PROJECT Mini Project q * JOB Major Project 2 ** PROJECT Mini Project x ** PROJECT Mini Project y JOB and ...
djnz0feh's user avatar
  • 121
0 votes
2 answers
70 views

Moving `*** b3` from `* b1 > ** b2 > *** b3` to `* a1 > ** a2 > *** b3` in Org mode

I am trying to move *** b3 from this state: * a1 ** a2 * b1 ** b2 *** b3 to this state: * a1 ** a2 *** b3 * b1 ** b2 But I can't do that with (org-refile), because it allows me to only target * a1 ...
fegax's user avatar
  • 55
1 vote
0 answers
168 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 ...
Nova Leary's user avatar
1 vote
1 answer
270 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 ...
harabat's user avatar
  • 31
2 votes
0 answers
207 views

How to archive DONE tasks while keeping their tree structure with org-agenda-bulk-action?

I am able to select the tasks that I want to archive by doing: C-c a T DONE|CANCELLED RET * B But then none of the bulk options match my needs. $ remove the selected tasks and put them flatly into ...
crocefisso's user avatar
  • 1,479
1 vote
0 answers
37 views

Can I limit refile targets with helm using a regular expression?

I would like to be able to use regular expressions in helm when selecting a refile target following an org-refile call. For example, if my list of targets includes 1. H1/ 1. H1/P1/ 1. H1/P1/C1/ 1. H1/...
user2567544's user avatar
0 votes
2 answers
116 views

Prepend while refiling

When we refile, the refiled stuff goes to the end of the heading under which it is being refiled. Can we get the refiled stuff to go to the top, instead? This can be easily done while capturing. I can ...
deshmukh's user avatar
  • 1,922
1 vote
1 answer
729 views

Refile to non-agenda files

Running Doom Emacs 2.0.9 on Emacs 27.1. My current settings are: (setq org-directory "~/Documents/organize/org-mode") (setq org-agenda-files (directory-files-recursively "~/Documents/...
deshmukh's user avatar
  • 1,922
1 vote
1 answer
735 views

How to refile to the top of another heading?

When refile a heading in org mode, I would like to refile it to the top of the target heading so that the new subheading is the first entry. For my use case, I use org-capture for meeting notes, and ...
Mingwei Zhang's user avatar
1 vote
1 answer
104 views

Capture at an arbitrary date

In this example I changed the date for Entered to 12/07/2019 at the capture editing stage. Yet it gets filed under today's date. How can file it under the right date, that is 12/07/2019? Ideally in ...
user avatar
1 vote
1 answer
450 views

org-refile under a given heading

From org-refile to a known fixed location I have learned that the argument RFLOC looks like this: '(heading file regular-expression position-of-target-heading) I am trying to programmatically refile ...
Trevoke's user avatar
  • 2,457