From: Nathan Neff <nathan.neff@gmail.com>
To: Suvayu Ali <fatkasuvayu+linux@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Wishlist: let org-refile find buffers that have been renamed
Date: Thu, 23 Dec 2010 00:05:48 -0600 [thread overview]
Message-ID: <AANLkTinLv5LxcuywWE=9B-PRf9KmWSyu-=jwHPAcY4OJ@mail.gmail.com> (raw)
In-Reply-To: <4D12B9AD.2010600@gmail.com>
On Wed, Dec 22, 2010 at 8:53 PM, Suvayu Ali <fatkasuvayu+linux@gmail.com> wrote:
> On Wednesday 22 December 2010 06:08 PM, Hsiu-Khuern Tang wrote:
>>
>> Hi Samuel,
>>
>> Thanks for the suggestion. I just tried it, and it does a nice job
>> choosing easy-to-identify buffer names. But those buffer names again
>> do not come up for selection by C-c C-w (org-refile).
I'm going to try this tomorrow, but in case it doesn't work with C-c C-w,
I would like to vote +1 for this feature.
I have a wiki (in org-mode) and my personal notes (in org-mode) and
they're stored in different directories. I also have common filenames
like this:
wiki/grails.org
wiki/groovy.org
wiki/vim.org
and
personal/grails.org
personal/groovy.org
personal/vim.org
I resolve this problem currently by refiling my personal items first,
then refiling
my wiki last. I have two custom methods that set my refile target to
my wiki or my personal directory. I run njn/set-refile-personal when
I want to refile to my personal directory, and I run
njn/set-refile-notesmine when I want to refile to my wiki.
(defun njn/set-refile-personal()
(interactive)
(setq org-refile-targets
(quote ((njn/personal-org-files :maxlevel . 5))))
)
(defun njn/set-refile-notesmine()
(interactive)
(setq org-refile-targets
(quote
(njn/notesmine-org-files :maxlevel . 5)))
)
Anyway, I would love it if I didn't have to do it this way, and I'll
check out uniquify tomorrow.
Maybe a solution would be to use a file-property to give a buffer an
alias when refiling? Like this:
-------- wiki/grails.org
#+refile-alias: WGrails
-------- personal/grails.org would just use "grails.org"
--Nate
>
> I think org-refile ignores duplicate entries and refiles to the first match.
> I have observed this same behaviour even for sub-trees with same names.
>
> e.g.
>
> * top headline
> ** sub-heading
> Text for sub-heading 1
> ** sub-heading
> Text for sub-heading 2
>
>
> --
> Suvayu
>
> Open source is the future. It sets us free.
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
prev parent reply other threads:[~2010-12-23 6:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-23 0:53 Wishlist: let org-refile find buffers that have been renamed Hsiu-Khuern Tang
2010-12-23 0:58 ` Samuel Wales
2010-12-23 2:08 ` Hsiu-Khuern Tang
2010-12-23 2:53 ` Suvayu Ali
2010-12-23 6:05 ` Nathan Neff [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='AANLkTinLv5LxcuywWE=9B-PRf9KmWSyu-=jwHPAcY4OJ@mail.gmail.com' \
--to=nathan.neff@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=fatkasuvayu+linux@gmail.com \
/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).