From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Refile as top-level headlines? Date: Sat, 4 Apr 2009 05:04:34 +0200 Message-ID: <997DC749-2F3F-4D4C-94C7-67B483DDE91B@uva.nl> References: Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: multipart/mixed; boundary="===============0879076789==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LpwBZ-0004VC-Fj for emacs-orgmode@gnu.org; Fri, 03 Apr 2009 23:04:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LpwBT-0004U1-5I for emacs-orgmode@gnu.org; Fri, 03 Apr 2009 23:04:44 -0400 Received: from [199.232.76.173] (port=47792 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LpwBT-0004Ty-2W for emacs-orgmode@gnu.org; Fri, 03 Apr 2009 23:04:39 -0400 Received: from ey-out-1920.google.com ([74.125.78.148]:61586) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LpwBS-0007mH-9M for emacs-orgmode@gnu.org; Fri, 03 Apr 2009 23:04:38 -0400 Received: by ey-out-1920.google.com with SMTP id 13so232828eye.24 for ; Fri, 03 Apr 2009 20:04:37 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matthew Lundin Cc: emacs-orgmode@gnu.org, Carsten Dominik --===============0879076789== Content-Type: multipart/alternative; boundary=Apple-Mail-1-661552801 --Apple-Mail-1-661552801 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Jan 18, 2009, at 5:31 PM, Matthew Lundin wrote: > Carsten Dominik writes: > >> On Jan 14, 2009, at 4:49 PM, Matthew Lundin wrote: >> >>> >>> Hi everyone, >>> >>> I have a lot of org-files and use org-refile all the time as part of >>> my normal workflow. My basic approach is to remember things to an >>> inbox.org file and then to process the inbox GTD-style. >>> >>> One thing I'm having a hard time figuring out is how to refile >>> headers >>> as top level headlines in a target file. I've customized org-refile >>> with the following settings: >>> >>> ,---- >>> | (setq org-refile-use-outline-path 'file) >>> | (setq org-refile-targets '((org-agenda-files :maxlevel . 1) >>> | (nil :maxlevel . 3))) >>> `---- >>> >>> (Note: the second setting in org-refile-targets gives me additional, >>> deeper targets in whatever file I'm visiting.) >>> >>> What I'd like to see is for maxlevel to include the possibility of >>> filing an item as a top-level headline (at the bottom of the file). >> >> Hmmm, how would you like the interface to work? Just have an entry >> in the list that is only the file name? And if it is only a single >> file, >> just replying with the empty string? > > 1. First idea: > > Perhaps this option could be activated only when: > > (setq org-refile-use-outline-path 'file) > > Currently with the above setting and refile targets with a maxlevel of This should now work exactly as you describe above. - Carsten > 2, completion with refile offers the following targets: > > computer.org/headline/ (computer.org) > > vs. > > computer.org/headline/subheading/ (computer.org) > > To file under the first target, one can hit space after completing > headline. Perhaps there could also be an option for hitting space > after > the first completion, i.e., after computer.org. > > computer.org/ (computer.org) > > 2. Second idea: > > Another possibility would be as you suggest: to offer the file name > independently as one of the targets. And if it's only one file, > perhaps > the file name could still be offered as a target the sake of clarity. > This would then work regardless of the setting of > org-refile-use-outline-path. > > I realize not everyone would want this behavior. Maybe one would > need to > set it explicitly either by (1) setting level to 0 for > org-refile-targets or (2) making maxlevel a negative number (i.e., if > positive then don't offer level 0 targets; if negative offer level 0 > targets). > > Just an idea.... I'm sure your ideas about this will be much > better! :-) > > Thanks for considering this. > Matt > > --Apple-Mail-1-661552801 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
On Jan 18, 2009, = at 5:31 PM, Matthew Lundin wrote:

Carsten Dominik <dominik@science.uva.nl> = writes:

On Jan 14, 2009, at 4:49 PM, = Matthew Lundin wrote:


Hi = everyone,

I have a lot of org-files and = use org-refile all the time as part = of
my normal workflow. My basic approach is to remember = things to an
inbox.org file and then to = process the inbox GTD-style.

One thing I'm having a hard time = figuring out is how to refile = headers
as top level headlines in a target file. I've customized = org-refile
with the following = settings:

,----
| (setq = org-refile-use-outline-path = 'file)
| (setq org-refile-targets '((org-agenda-files :maxlevel . = 1)
| = = =     (nil :maxlevel . = 3)))
`----

(Note: the second setting in = org-refile-targets gives me = additional,
deeper targets in whatever file = I'm visiting.)

What I'd like to see is for = maxlevel to include the possibility = of
filing an item as a top-level headline (at the bottom of = the file).

Hmmm, how would = you like the interface to work?  Just have an = entry
in the list that is only = the file name?  And if it is only a = single
file,
just = replying with the empty string?

1. First = idea:

Perhaps this option could be activated only = when:

(setq org-refile-use-outline-path 'file)

Currently = with the above setting and refile targets with a maxlevel = of

This should now work = exactly as you describe above.

- = Carsten


2, = completion with refile offers the following = targets:

computer.org/headline/ = (computer.org)

vs.

computer.org/headline/subheading/ = (computer.org)

To file under the first target, one can hit space = after completing
headline. Perhaps there could also be an option for = hitting space after
the first completion, i.e., after = computer.org.

computer.org/ (computer.org)

2. Second = idea:

Another possibility would be as you suggest: to offer the = file name
independently as one of the targets. And if it's only one = file, perhaps
the file name could still be offered as a target the = sake of clarity.
This would then work regardless of the setting = of
org-refile-use-outline-path.

I realize not everyone would = want this behavior. Maybe one would need to
set it explicitly either = by (1) setting level to 0 for
org-refile-targets or (2) making = maxlevel a negative number (i.e., if
positive then don't offer level = 0 targets; if negative offer level 0
targets).

Just an = idea.... I'm sure your ideas about this will be much better! = :-)

Thanks for considering = this.
Matt



= --Apple-Mail-1-661552801-- --===============0879076789== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0879076789==--