emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Leo <leo@relevant-information.com>
To: Kevin Foley <kevin@kevinjfoley.me>, emacs-orgmode@gnu.org
Subject: Re: Refile Targets Custom Function Support
Date: Sat, 30 Jan 2021 12:11:03 +0100	[thread overview]
Message-ID: <87zh0q3cjc.fsf@leo-B85-HD3.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <m2v9bfw5km.fsf@ip-192-168-50-252.ec2.internal>

Kevin Foley <kevin@kevinjfoley.me> writes:

> I'd like to use an `org-ql' query in order to get eligible targets when
> calling `org-refile'.
>
I actually also wanted to do that a couple of weeks ago. I ended up
using org-ql and completing-read to select a target. The last optional
argument to org-refile lets you specify a location to refile to.

I have shared this code in my dotfiles:
https://github.com/Zetagon/literate-dotfiles/blob/master/config.org#refiling
. Keep in mind that it depends on dash.el too. I also discussed this in
an issue in org-ql: https://github.com/alphapapa/org-ql/issues/177



      parent reply	other threads:[~2021-01-30 11:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-30  1:56 Refile Targets Custom Function Support Kevin Foley
2021-01-30  2:18 ` Samuel Wales
2021-01-30  2:18   ` Samuel Wales
2021-01-30 11:11 ` Leo [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=87zh0q3cjc.fsf@leo-B85-HD3.i-did-not-set--mail-host-address--so-tickle-me \
    --to=leo@relevant-information.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=kevin@kevinjfoley.me \
    /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).