From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ivan Andrus Subject: Re: Skim.app support for org-mac-link-grabber.el Date: Sun, 12 May 2013 18:39:59 -0600 Message-ID: References: <171D50FA-314D-4233-9F7E-AD07D8B1B902@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40360) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbgoA-0005KT-IS for emacs-orgmode@gnu.org; Sun, 12 May 2013 20:40:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ubgo6-0001oM-Mw for emacs-orgmode@gnu.org; Sun, 12 May 2013 20:40:06 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:59821) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ubgo6-0001jq-Gx for emacs-orgmode@gnu.org; Sun, 12 May 2013 20:40:02 -0400 Received: by mail-pd0-f177.google.com with SMTP id g10so3931081pdj.8 for ; Sun, 12 May 2013 17:40:01 -0700 (PDT) In-Reply-To: <171D50FA-314D-4233-9F7E-AD07D8B1B902@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Daniil Frumin Cc: emacs-orgmode@gnu.org Just two comments from someone who didn't know org-mac-link-grabber = existed until today (I'm gonna try it out) and hasn't (yet) contributed = to org-mode. 1. It looks like it's actually enabled by default 2. You can detect whether it should be enabled by default with something = like (< 0 (length (shell-command-to-string "mdfind kMDItemCFBundleIdentifier =3D=3D = 'net.sourceforge.skim-app.skim'"))) which will tell whether you have skim installed. I haven't looked at = org-mac-link-grabber to see if other similar changes could be made. So = the defcustom would be changed to (defcustom org-mac-grab-Skim-app-p (< 0 (length (shell-command-to-string "mdfind kMDItemCFBundleIdentifier =3D=3D = 'net.sourceforge.skim-app.skim'"))) "Enable menu option [S]kim to grab page links from Skim.app" :tag "Grab Skim.app page links" :group 'org-mac-link-grabber :type 'boolean) -Ivan On May 12, 2013, at 12:29 PM, Daniil Frumin wrote: > Hi, all! >=20 > I use org-mac-link-grabber.el = almost = every day. However, it lacks support for an app that I'd like to use = together with org-mode.=20 >=20 > Skim.app is a light and fast PDF reader for Mac OS X with a = note-taking ability. I wrote a little patch for org-mac-link-grabber.el = to support grabbing links to documents. >=20 > What it does: >=20 > * Grabs not just the link to file, but a page >=20 > * Inserts the selected text as a description, if present. Otherwise > inserts ", p. " >=20 > * The shortcut is set to [S] >=20 > * Defines a new "skim" link type >=20 > It would be interesting to also add some support for importing notes = from Skim to org. >=20 > Since Skim.app is not present in clean OS X installs, by default = support for grabbing links from it is disabled. You can enable it by = customizing group `org-mac-link-grabber'. >=20 > So, maybe it's possible to get this patch into the tree? It's my first = time hacking on org (or even any major elisp extension), so it's = probably that I've messed up somewhere with a commit format or whatnot. >=20 > Cheers. >=20 > -- Daniil Frumin > <0001-Adding-Skim.app-support-to-org-mac-link-grabber.el.patch>