title: In Emacs org-mode, how to refile highlighted text under an org heading?
body: <p>In Emacs org-mode, 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 org-heading of my choice? </p>
  
  <p>You could call it <code>org-refile-region</code>. Similar to <code>org-refile</code>, but to refile not the entire subtree, but only the highlighted region under any heading in the current document. </p>
  
  <p>UPDATE:</p>
  
  <p>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. </p>
  
  <p>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</p>
  
  <p>The proposed new function would make this much more efficient:
  1. select text
  2. org-refile-region
  3. choose target </p>
  
  <p>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: </p>
  
  <p><img src="https://i.imgur.com/E729fCQ.png" alt=""></p>