emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* questions about links
@ 2010-08-07 17:00 scrawler
  2010-08-09  7:33 ` Jan Böcker
  0 siblings, 1 reply; 3+ messages in thread
From: scrawler @ 2010-08-07 17:00 UTC (permalink / raw)
  To: Org Mode

Hi guys,

Ok, if I make "foo" a link:

blah blah [[foo]] blah

it will pop over to "foo" elsewhere in the buffer.

(This is a tangent, but I see carets in the documentation, like
"<foo>" , but they don't seem to be needed-- the link finds
"foo" just fine)

Can I make [[foo]] link to all the foos in the buffer,
maybe via a list with a bit of context from which to
choose?

also, once I'm at the target, how can I return easily to
the anchor and refold whatever section the target was in?

Did that make sense?  Is this a feature request?  :-)

thanks.
-- 

-tom

^ permalink raw reply	[flat|nested] 3+ messages in thread

* questions about links
@ 2010-08-07 19:12 scrawler
  0 siblings, 0 replies; 3+ messages in thread
From: scrawler @ 2010-08-07 19:12 UTC (permalink / raw)
  To: Org Mode

(resent, sorry)

Hi guys,

Ok, if I make "foo" a link:

blah blah [[foo]] blah

it will pop over to "foo" elsewhere in the buffer.

(This is a tangent, but I see carets in the documentation,
like "<foo>" , but they don't seem to be needed-- the link
finds "foo" just fine)

Can I make [[foo]] link to all the foos in the buffer,
maybe via a list with a bit of context from which to
choose?

also, once I'm at the target, how can I return easily to
the anchor and refold whatever section the target was in?

Did that make sense?  Is this a feature request?  :-)

thanks.
-- 

-tom

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: questions about links
  2010-08-07 17:00 questions about links scrawler
@ 2010-08-09  7:33 ` Jan Böcker
  0 siblings, 0 replies; 3+ messages in thread
From: Jan Böcker @ 2010-08-09  7:33 UTC (permalink / raw)
  To: scrawler; +Cc: Org Mode

On 08/07/2010 07:00 PM, scrawler@gmail.com wrote:
> Hi guys,
> 
> Ok, if I make "foo" a link:
> 
> blah blah [[foo]] blah
> 
> it will pop over to "foo" elsewhere in the buffer.
> 
> (This is a tangent, but I see carets in the documentation, like
> "<foo>" , but they don't seem to be needed-- the link finds
> "foo" just fine)
> 
> Can I make [[foo]] link to all the foos in the buffer,
> maybe via a list with a bit of context from which to
> choose?

Try this one: [[elisp:(occur "foo")]]

"occur" is a standard emacs feature which lists all lines matching a
given regexp.

If you're going to use this, I'd recommend setting
org-confirm-elisp-link-function to 'with-y-or-n for less annoyance while
still being warned you are about to follow a link that can execute
arbitrary code.

> also, once I'm at the target, how can I return easily to
> the anchor and refold whatever section the target was in?

You can go back to where you came from using C-c &:

| C-c & runs the command org-mark-ring-goto, which is an interactive
| Lisp function in `org.el'.
|
| It is bound to C-c &.
|
| (org-mark-ring-goto &optional n)
|
| Jump to the previous position in the mark ring.
| With prefix arg n, jump back that many stored positions.  When
| called several times in succession, walk through the entire ring.
| Org-mode commands jumping to a different position in the current file,
| or to another Org-mode file, automatically push the old position
| onto the ring.

I don't know about refolding the target headline.


HTH, Jan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-08-09  7:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-07 17:00 questions about links scrawler
2010-08-09  7:33 ` Jan Böcker
  -- strict thread matches above, loose matches on Subject: below --
2010-08-07 19:12 scrawler

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).