From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: navi equivalent to 'g' speed command?
Date: Wed, 03 Sep 2014 10:28:20 +0200 [thread overview]
Message-ID: <87zjeh3y6z.fsf@gmail.com> (raw)
In-Reply-To: m2lhq1taav.fsf@polytechnique.org
Alan Schmitt <alan.schmitt@polytechnique.org> writes:
> On 2014-09-03 09:18, Thorsten Jolitz <tjolitz@gmail.com> writes:
>
>> Alan Schmitt <alan.schmitt@polytechnique.org> writes:
>>
>> Hello,
>>
>>> I very often use the org speed command 'g' to navigate to a headline
>>> (it opens a completion buffer that I can use to quickly fuzzy match the
>>> target). Is there an equivalent navi workflow for non-org buffer in
>>> outshine mode?
>>
>> Hmm... which command do you mean? I get
>>
>> ,----
>> | User-defined Speed commands
>> | ===========================
>> |
>> | Built-in Speed commands
>> | =======================
>> |
>> | Outline Navigation
>> | ------------------
>> | [...]
>> | g (org-refile t)
>> `----
>>
>> but thats not the one you are talking about, right?
>
> Yes, it's the one I mean. Don't let the "refile" fool you: the 't'
> argument means nothing is actually refiled during the jump to the
> target. I use it all the time.
ok, it seems 'outshine-refile does works, but I'm not sufficiently used
to it - it actually refiles the outshine headers I'm on, but that seems
to be a configuration thing.
I could expand
#+BEGIN_SRC emacs-lisp
(defun outshine-refile ()
"Call outorg to trigger `org-refile'."
(interactive)
(outshine-use-outorg 'org-refile))
#+END_SRC
to something like
#+BEGIN_SRC emacs-lisp
(defun outshine-refile (&optional arg)
"Call outorg to trigger `org-refile'."
(interactive "P")
(if arg
(outshine-use-outorg 'org-refile nil nil t)
(outshine-use-outorg 'org-refile)))
#+END_SRC
to match you use case, but I think what you really want is
,----[ C-h f outshine-imenu RET ]
| outshine-imenu is an interactive Lisp function in `outshine.el'.
|
| It is bound to M-# M-p.
|
| (outshine-imenu &optional PREFER-IMENU-P)
|
| Convenience function for calling imenu/idomenu from outshine.
`----
with idomenu installed from the package manager.
--
cheers,
Thorsten
next prev parent reply other threads:[~2014-09-03 8:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-03 6:51 navi equivalent to 'g' speed command? Alan Schmitt
2014-09-03 7:18 ` Thorsten Jolitz
2014-09-03 7:47 ` Alan Schmitt
2014-09-03 8:28 ` Thorsten Jolitz [this message]
2014-09-03 18:48 ` Alan Schmitt
2014-09-03 7:59 ` Thorsten Jolitz
2014-09-03 18:40 ` Alan Schmitt
2014-09-03 19:00 ` Thorsten Jolitz
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=87zjeh3y6z.fsf@gmail.com \
--to=tjolitz@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).