emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nathan Neff <nathan.neff@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Cool feature: Link abbreviations
Date: Wed, 2 Mar 2011 15:57:15 -0600	[thread overview]
Message-ID: <AANLkTi=zF4c9Jc3UGSH4aDK=iCMG2y5qbhc-z4SQnKHo@mail.gmail.com> (raw)

Another one of those "I wish I could do X" moments where I
look through org-mode docs and find exactly what I'm looking for.

So, I work for a company where I use an Issue tracking tool, and every issue
has a URL like this:

http://example.com/issues?PRODUCT-XXX

Where XXX is the issue number.

I want to have links to these issues in my company.org file, but I don't
want/need to type long links like this
[[http://example.com/issues?PRODUCT-123][Issue 123]]

I found link abbreviations:
http://orgmode.org/manual/Link-abbreviations.html#Link-abbreviations

So, I could create a variable org-link-abbrev-list, and put it in my
org-mode configuration file.  However, my org-mode config is public on
GitHub, and
I didn't want the company's Issue tracker URL to be public.

Then, I found that you can define abbreviations *directly* in my
customer.org at the top like this:

  #+LINK:issues http://example.com/issues/PRODUCT-

Then link to the issues like this:

* [[issues:123][Issue 123]]
blah blkah

* [[issues:456][issue 456]]
blah blah blah


Awesome!

--Nate

-- 
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

             reply	other threads:[~2011-03-02 21:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-02 21:57 Nathan Neff [this message]
2011-03-03  8:38 ` Cool feature: Link abbreviations Bastien

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='AANLkTi=zF4c9Jc3UGSH4aDK=iCMG2y5qbhc-z4SQnKHo@mail.gmail.com' \
    --to=nathan.neff@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).