Kevin Foley <ke...@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