emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Peter Salazar <cycleofsong@gmail.com>
To: org-mode <emacs-orgmode@gnu.org>
Subject: Re: how to org-refile-region?
Date: Wed, 13 Aug 2014 19:33:53 -0400	[thread overview]
Message-ID: <CAE+_6Tz-NiWrrAeJEvzYm5PxrF2OKUfU4wcqE2vfmYtT4v3GjQ@mail.gmail.com> (raw)
In-Reply-To: <CAE+_6Tw-SmHXO4pzD9aNFBJsCkaqCoLCnibOXxFHmAmLUym8Ww@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1557 bytes --]

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 <cycleofsong@gmail.com>
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!
>
>
>

[-- Attachment #2: Type: text/html, Size: 4791 bytes --]

      reply	other threads:[~2014-08-13 23:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-13 21:28 how to org-refile-region? Peter Salazar
2014-08-13 23:33 ` Peter Salazar [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAE+_6Tz-NiWrrAeJEvzYm5PxrF2OKUfU4wcqE2vfmYtT4v3GjQ@mail.gmail.com \
    --to=cycleofsong@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).