From: Maxim Nikulin <manikulin@gmail.com>
To: emacs-orgmode@gnu.org
Subject: org-refile-use-cache and jumps using org-refile or org-goto
Date: Wed, 3 Mar 2021 00:15:06 +0700 [thread overview]
Message-ID: <s1lrqr$nc$1@ciao.gmane.io> (raw)
It seems, something goes a bit wrong. However it is rather confusion
than anything really broken.
Maybe everybody uses helm, ivy, etc., so nobody is affected.
Usually I jump from one note to another heading with C-u C-c C-j
(org-goto interface with target completion). I have not setup helm or
other similar package. Completion works, maybe it is not really perfect
(e.g. completion of top-level headings and deeper ones differ a bit). I
have heard that C-u C-c C-w (org-refile) could work in a similar way. I
did not like the latter variant due to mandatory file name in the
beginning of a target.
I have tried to enable org-refile-use-cache. Now completion options
depends on what method was called earlier: org-refile or org-goto. If
after cache clean up (C-u C-u C-u C-c C-w) first command was C-u C-c C-j
(org-goto) than there is no file name as a prefix for both commands.
However file name is prepended for both C-u C-c C-j and C-u C-c C-w if
at first org-refile was called.
There is one issue however. Default option option does not work if after
cache clean other command is called, e.g.
- jump using C-u C-c C-j
- clean cache C-u C-u C-u C-c C-w
- try to jump or to refile [C-u] C-c C-w to default offered option
- "user-error: Invalid target location"
I have just one file in the org-agenda-files list. It is becoming
larger, that is why I decided to try org-refile-use-cache. My
customization is minimal (besides org-default-dir and org-agenda-files):
(org-refile-targets (quote ((org-agenda-files :maxlevel . 5))))
(org-outline-path-complete-in-steps nil)
I have tried to add (nil :maxlevel . 5) to org-refile-targets to check
if options without file name will appear in addition to ones with file
name for org-refile, but it has not happened. It was not clear at first
that it is possible to start query with "/" and file name is added when
TAB is pressed.
Is it expected that with cache enabled, command that causes cache update
affects appearance of completion options to its sibling (org-refile and
org-goto)?
next reply other threads:[~2021-03-02 17:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-02 17:15 Maxim Nikulin [this message]
2021-03-03 2:34 ` org-refile-use-cache and jumps using org-refile or org-goto Samuel Wales
2021-03-04 13:51 ` Maxim Nikulin
2021-03-04 21:03 ` Samuel Wales
2021-03-06 16:15 ` [PATCH] optimize org-refile-get-targets Maxim Nikulin
2021-04-25 12:25 ` Bastien
2021-04-25 15:24 ` Maxim Nikulin
2021-03-04 14:47 ` org-refile failed due to default option stored by org-goto Maxim Nikulin
2021-03-04 22:53 ` Samuel Wales
2021-03-09 11:57 ` Maxim Nikulin
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='s1lrqr$nc$1@ciao.gmane.io' \
--to=manikulin@gmail.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).