From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Alekseyev Subject: Re: org-git-link does not support locational information within file Date: Sun, 13 Feb 2011 03:14:20 -0500 Message-ID: References: <877hdh2m7a.fsf@univie.ac.at> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=40823 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PoX68-0005Hd-7O for emacs-orgmode@gnu.org; Sun, 13 Feb 2011 03:14:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PoX67-0008Ve-5n for emacs-orgmode@gnu.org; Sun, 13 Feb 2011 03:14:24 -0500 Received: from mail-fx0-f41.google.com ([209.85.161.41]:32816) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PoX66-0008VP-Q0 for emacs-orgmode@gnu.org; Sun, 13 Feb 2011 03:14:23 -0500 Received: by fxm12 with SMTP id 12so4362977fxm.0 for ; Sun, 13 Feb 2011 00:14:21 -0800 (PST) In-Reply-To: <877hdh2m7a.fsf@univie.ac.at> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Gregor Kappler Cc: emacs-orgmode@gnu.org > ** Shortcomings of git-link in current org HEAD > Yet, org-git-link currently is too greedy for my daily use: > =A01. they kill org-links for org headings, if the org files are > =A0 =A0versioned in a git repository (and all of mine are!) and > =A02. they kill in-file-search information for versioned non-org files. The discussion so far focused on extending the link syntax to allow multiple pieces of "location" information (e.g. location within the repository + location within the file), which is a good idea. However, I think the bigger problem with org-git-link in its current incarnation is that it forces me to use git:// links for all files under version control, which is NOT what I want to do 90% of the time. I have a quick hack to deal with this -- namely, commenting out ;; (add-hook 'org-store-link-functions 'org-git-store-link t) and using a separate keybinding for storing git links using the following function: (defun org-git-store-link-interactively (arg) "Store git link to current file." (interactive "P") (let ((org-store-link-functions (cons 'org-git-store-link org-store-link-functions))) (call-interactively 'org-store-link arg) )) In addition, I'm not crazy about using the "branch@{date}" format for storing links by default, so I hacked something that uses SHA1 instead... I could post a patch if anyone is curious. --Leo