From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Salazar Subject: Re: how to org-refile-region? Date: Wed, 13 Aug 2014 19:33:53 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bd6aa8695980e05008b38a5 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55813) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHi3I-0003oX-3x for emacs-orgmode@gnu.org; Wed, 13 Aug 2014 19:33:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XHi3G-0005qI-UB for emacs-orgmode@gnu.org; Wed, 13 Aug 2014 19:33:56 -0400 Received: from mail-pd0-x235.google.com ([2607:f8b0:400e:c02::235]:58704) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHi3G-0005qC-JA for emacs-orgmode@gnu.org; Wed, 13 Aug 2014 19:33:54 -0400 Received: by mail-pd0-f181.google.com with SMTP id g10so495779pdj.26 for ; Wed, 13 Aug 2014 16:33:53 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org-mode --047d7bd6aa8695980e05008b38a5 Content-Type: text/plain; charset=UTF-8 Again, ideally this functionality would be independent of the org-agenda files used by org-refile, so as to avoid displaying irrelevant headings as possible targets. Currently this is doable by doing: 1. select text 2. cut 3. other-window 4. navigate to desired target heading 5. paste text 6. other window The proposed new function would make this much more efficient: 1. select text 2. org-refile-region 3. choose target The most useful form of this would allow you to choose a target from among any currently open documents. My use case involves selecting text from one buffer and refiling it from among org-headings in another buffer, i.e. moving text from a source document displayed in one window and refiling to targets within the hierarchy of a target document displayed in another window, like so: http://i.imgur.com/E729fCQ.png Does anyone have ideas for how to implement? On Wed, Aug 13, 2014 at 5:28 PM, Peter Salazar wrote: > Is there a way to automatically refile highlighted text under an > org-heading? i.e. to cut the highlighted text and automatically paste it > under the heading of my choice? > > You could call it org-refile-region. Similar to org-refile, but to refile > not the entire subtree, but only the highlighted region under any heading > in the current document. Ideally this would offer me only headings in the > current document. > > Here's a start: > > > http://stackoverflow.com/questions/25256304/in-emacs-org-mode-how-to-refile-highlighted-text-under-an-org-heading > > Thanks! > > > --047d7bd6aa8695980e05008b38a5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Again, ideally this functionality would be=C2=A0independen= t of the org-agenda files used by org-refile, so as to avoid displaying irr= elevant headings as possible targets.=C2=A0

Current= ly this is doable by doing:
1. select text
2. cut
3.=C2=A0other-window
4. navigate to desired target heading
5. paste text
= 6. other window

The proposed new function would ma= ke this much more efficient:
1. select text
2. org-refile-region
3. choose targ= et=C2=A0
=C2=A0
The most useful form of this = would allow you to choose a target from among any currently open documents.= My use case involves selecting text from one buffer and refiling it from a= mong org-headings in another buffer, i.e. moving text from a source documen= t displayed in one window and refiling to targets within the hierarchy of a= target document displayed in another window, like so:=C2=A0





Does anyone have ideas for how to implement?



On Wed, Aug = 13, 2014 at 5:28 PM, Peter Salazar <cycleofsong@gmail.com> wrote:

Is there a way to automatically refile highlighted text under an org-headin= g? i.e. to cut the highlighted text and automatically paste it under the he= ading of my choice?

You could call it=C2=A0org-refile-region. Similar to=C2= =A0org-refile, but to refile not the entire subtree, but= only the highlighted region under any heading in the current document. Ide= ally this would offer me only headings in the current document.

Here's a start:

http://stackoverflow.com/questions/25256304/in-emacs-org-mode-how-to-refi= le-highlighted-text-under-an-org-heading

Thanks!



--047d7bd6aa8695980e05008b38a5--