* question/suggestions about org-refile
@ 2012-09-02 17:45 Arun Persaud
2012-09-23 8:08 ` Bastien
0 siblings, 1 reply; 6+ messages in thread
From: Arun Persaud @ 2012-09-02 17:45 UTC (permalink / raw)
To: emacs-orgmode
Hello
I'm using org-capture together with org-refile to organize my
todo-items. I also have my notes distributed over several org-files, so
I have set org-refile-use-outline-path to file. There are two things
that I wished org-refile could do, but don't know how to achieve:
a) Include local headers for level1 (instead of only file names)
Using org-refile-use-outline-path=file the path for org refile always
has to start with the file name. It would be great, if in case I don't
give a file name, the current file name would be assumed and <tab> would
show org-file names and current top headings for the first level. This
would be helpful, since I mostly refile to the same file, but sometimes
move things to other files.
b) creating sublevels on the fly
It would be nice, if I could create new a sublevel during the refiling
process. That is, if I have something like
* A
** B
I could refile to A/B/new/ and org-mode would ask me if I want to create
a new subheading with a y/n question. At the moment I get a "no match"
error.
Is this already possible with the current org-mode or can it easily be
added?
thanks
ARUN
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: question/suggestions about org-refile
2012-09-02 17:45 question/suggestions about org-refile Arun Persaud
@ 2012-09-23 8:08 ` Bastien
2012-09-23 15:20 ` Arun Persaud
0 siblings, 1 reply; 6+ messages in thread
From: Bastien @ 2012-09-23 8:08 UTC (permalink / raw)
To: Arun Persaud; +Cc: emacs-orgmode
Hi Arun,
Arun Persaud <apersaud@lbl.gov> writes:
> I'm using org-capture together with org-refile to organize my
> todo-items. I also have my notes distributed over several org-files, so
> I have set org-refile-use-outline-path to file. There are two things
> that I wished org-refile could do, but don't know how to achieve:
>
> a) Include local headers for level1 (instead of only file names)
>
> Using org-refile-use-outline-path=file the path for org refile always
> has to start with the file name. It would be great, if in case I don't
> give a file name, the current file name would be assumed and <tab> would
> show org-file names and current top headings for the first level. This
> would be helpful, since I mostly refile to the same file, but sometimes
> move things to other files.
Did you try this?
(setq org-refile-use-outline-path t)
> b) creating sublevels on the fly
>
> It would be nice, if I could create new a sublevel during the refiling
> process.
(setq org-refile-allow-creating-parent-nodes t)
HTH,
--
Bastien
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: question/suggestions about org-refile
2012-09-23 8:08 ` Bastien
@ 2012-09-23 15:20 ` Arun Persaud
2012-09-23 15:27 ` Bastien
0 siblings, 1 reply; 6+ messages in thread
From: Arun Persaud @ 2012-09-23 15:20 UTC (permalink / raw)
To: Bastien; +Cc: emacs-orgmode
Hello
On 09/23/2012 01:08 AM, Bastien wrote:
> Hi Arun,
>
> Arun Persaud <apersaud@lbl.gov> writes:
>
>> I'm using org-capture together with org-refile to organize my
>> todo-items. I also have my notes distributed over several org-files, so
>> I have set org-refile-use-outline-path to file. There are two things
>> that I wished org-refile could do, but don't know how to achieve:
>>
>> a) Include local headers for level1 (instead of only file names)
>>
>> Using org-refile-use-outline-path=file the path for org refile always
>> has to start with the file name. It would be great, if in case I don't
>> give a file name, the current file name would be assumed and <tab> would
>> show org-file names and current top headings for the first level. This
>> would be helpful, since I mostly refile to the same file, but sometimes
>> move things to other files.
>
> Did you try this?
>
> (setq org-refile-use-outline-path t)
I used to have this set to file, but then I _always_ had to add the file
name even for local headlines. I now switched to ido using:
(setq ido-everywhere t)
(setq ido-enable-flex-matching t)
(setq ido-max-directory-size 100000)
(ido-mode (quote both))
(setq org-refile-use-outline-path nil)
(setq org-completion-use-ido t)
(setq org-outline-path-complete-in-steps nil)
(setq org-refile-targets '((org-agenda-files :maxlevel . 5)
(("~/org/all.org_done" "~/org/work.org_done") :maxlevel . 5) ))
(defun ap/verify-refile-target ()
"Exclude todo keywords with a done state from refile targets"
(or (not (member (nth 2 (org-heading-components)) org-done-keywords)))
(save-excursion (org-goto-first-child))
)
(setq org-refile-target-verify-function 'ap/verify-refile-target)
which works very well for me, especially once I added the
verify-refile-target.
>> b) creating sublevels on the fly
>>
>> It would be nice, if I could create new a sublevel during the refiling
>> process.
>
> (setq org-refile-allow-creating-parent-nodes t)
exactly what I wanted :)
Thanks
Arun
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: question/suggestions about org-refile
2012-09-23 15:20 ` Arun Persaud
@ 2012-09-23 15:27 ` Bastien
2012-09-23 16:24 ` Arun Persaud
0 siblings, 1 reply; 6+ messages in thread
From: Bastien @ 2012-09-23 15:27 UTC (permalink / raw)
To: Arun Persaud; +Cc: emacs-orgmode
Hi Arun,
Arun Persaud <apersaud@lbl.gov> writes:
> I used to have this set to file, but then I _always_ had to add the file
> name even for local headlines.
It does not require the file name here and now.
Maybe an old behavior.
> I now switched to ido using:
>
> [...]
>
> which works very well for me, especially once I added the
> verify-refile-target.
Nice. Maybe you could add this somewhere on Worg?
Best,
--
Bastien
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: question/suggestions about org-refile
2012-09-23 15:27 ` Bastien
@ 2012-09-23 16:24 ` Arun Persaud
2012-09-23 18:05 ` Bastien
0 siblings, 1 reply; 6+ messages in thread
From: Arun Persaud @ 2012-09-23 16:24 UTC (permalink / raw)
To: Bastien; +Cc: emacs-orgmode
On 09/23/2012 08:27 AM, Bastien wrote:
> Hi Arun,
>
> Arun Persaud <apersaud@lbl.gov> writes:
>
>> I used to have this set to file, but then I _always_ had to add the file
>> name even for local headlines.
>
> It does not require the file name here and now.
> Maybe an old behavior.
>
>> I now switched to ido using:
>>
>> [...]
>>
>> which works very well for me, especially once I added the
>> verify-refile-target.
>
> Nice. Maybe you could add this somewhere on Worg?
sure, should I create a new headline "refile" on the tutorial place or
should it go somewhere else?
Arun
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: question/suggestions about org-refile
2012-09-23 16:24 ` Arun Persaud
@ 2012-09-23 18:05 ` Bastien
0 siblings, 0 replies; 6+ messages in thread
From: Bastien @ 2012-09-23 18:05 UTC (permalink / raw)
To: Arun Persaud; +Cc: emacs-orgmode
Arun Persaud <apersaud@lbl.gov> writes:
> sure, should I create a new headline "refile" on the tutorial place or
> should it go somewhere else?
As you want. I think worg/org-hacks.org could do.
--
Bastien
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-09-23 18:05 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-02 17:45 question/suggestions about org-refile Arun Persaud
2012-09-23 8:08 ` Bastien
2012-09-23 15:20 ` Arun Persaud
2012-09-23 15:27 ` Bastien
2012-09-23 16:24 ` Arun Persaud
2012-09-23 18:05 ` Bastien
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.