From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jose A. Ortega Ruiz" Subject: marking out-links Date: Sat, 05 Jul 2008 13:00:40 +0200 Message-ID: <871w288ujr.fsf@mithrandir.homeunix.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KFAuE-0004Z1-7U for emacs-orgmode@gnu.org; Sat, 05 Jul 2008 12:46:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KFAuD-0004XQ-FF for emacs-orgmode@gnu.org; Sat, 05 Jul 2008 12:46:37 -0400 Received: from [199.232.76.173] (port=40732 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KFAuD-0004X8-8D for emacs-orgmode@gnu.org; Sat, 05 Jul 2008 12:46:37 -0400 Received: from mx20.gnu.org ([199.232.41.8]:22616) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KFAuA-0003sL-V6 for emacs-orgmode@gnu.org; Sat, 05 Jul 2008 12:46:35 -0400 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KF5cv-0004RM-4p for emacs-orgmode@gnu.org; Sat, 05 Jul 2008 07:08:25 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KF5ct-0007cx-Gl for emacs-orgmode@gnu.org; Sat, 05 Jul 2008 11:08:23 +0000 Received: from 84-75-99-141.dclient.hispeed.ch ([84.75.99.141]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 05 Jul 2008 11:08:23 +0000 Received: from jao by 84-75-99-141.dclient.hispeed.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 05 Jul 2008 11:08:23 +0000 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: emacs-orgmode@gnu.org Hi, One featurette that i would find useful is the possibility of distinguising link types visually: for instance, having the link text overlay display an additional mark (say, a * or a fancy unicode arrow) when it is an http[s] or ftp link (as opposed to a link to a local file, email, etc.). If providing the basic functionality is not difficult, one can think of additional customizability like associating different markers to different protocols and so on. On a related note, it would also be useful to have a mode or command to see the URL of the current link echo-ed in the minibuffer. I currently use a quick-and-dirty command for that (it also puts the link in the kill ring for convenience): (defun jao-org-copy-link-at-point () (interactive) (if (thing-at-point-looking-at "\\[\\[\\([^]]+\\)\\]\\[[^]]+\\]\\]") (let ((link (substring-no-properties (match-string 1)))) (kill-new link) (message "%s" link)) (message "No link at point"))) (define-key org-mode-map "\C-cv" 'jao-org-copy-link-at-point) but this doesn't work as an 'show link in the mini-buffer, in the sense that i have to press C-cv to see the link. What do you think? Cheers, jao -- In this age, the mere example of nonconformity, the mere refusal to bend the knee to custom, is itself a service. -John Stuart Mill, philosopher and economist (1806-1873)