emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Rakestraw <lists@johnrakestraw.com>
To: emacs-orgmode@gnu.org
Subject: org-refile hack to show headings
Date: Thu, 29 Nov 2007 20:22:53 -0500	[thread overview]
Message-ID: <20071129202253.6e2a6c21@maggiejean2.rakestrawmornlocal> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 966 bytes --]

I really the heading refile system developed first by Max Mikhanosha
and then adapted/adopted by Carsten in org 5.14. However, I found it
difficult sometimes to remember the particular heading to which I
wanted to move the new item -- the auto-complete is helpful, but only
if I can remember just how a heading starts. I have a simple (and
probably inelegant) hack that works well enough for me, and I thought
others might be interested in it as well. 

In my set-up my projects are 2d-level headings; this simply shows the
2d-level headings in a buffer and then calls org-refile. If others who
know lisp think this is worth doing, I suspect they can show us a much
better way to do it. But I thought that for once I'd propose a way to
do something rather than simply asking for yet another feature.

******
(defun org-show-headings-for-refile ()
  (interactive)
  (hide-sublevels 2)
  (show-entry)
  (org-refile))
******

-- 
John Rakestraw

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
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

             reply	other threads:[~2007-11-30  1:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-30  1:22 John Rakestraw [this message]
2007-12-01  6:40 ` org-refile hack to show headings Max Mikhanosha
2007-12-02 16:42   ` Chris Randle
2007-12-02 18:25     ` Carsten Dominik

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=20071129202253.6e2a6c21@maggiejean2.rakestrawmornlocal \
    --to=lists@johnrakestraw.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).