From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: marking out-links Date: Mon, 7 Jul 2008 08:56:49 -0700 Message-ID: References: <871w288ujr.fsf@mithrandir.homeunix.net> Mime-Version: 1.0 (Apple Message framework v924) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KFtVx-0002sD-G8 for emacs-orgmode@gnu.org; Mon, 07 Jul 2008 12:24:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KFtVw-0002r7-Kf for emacs-orgmode@gnu.org; Mon, 07 Jul 2008 12:24:33 -0400 Received: from [199.232.76.173] (port=54826 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KFtVw-0002qp-En for emacs-orgmode@gnu.org; Mon, 07 Jul 2008 12:24:32 -0400 In-Reply-To: <871w288ujr.fsf@mithrandir.homeunix.net> 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: "Jose A. Ortega Ruiz" Cc: emacs-orgmode@gnu.org On Jul 5, 2008, at 4:00 AM, Jose A. Ortega Ruiz wrote: > > 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): I you rest the mouse over the link, a tooltip window will show the link. Additional markers in the display text would require hacking the function `org-activate-bracket-links', but I am not in favor of this proposal. If you dont like using the mouse, one could use an idle timer to display the link in the echo area when the cursor is on the link - I have done something like this with RefTeX, on BibTeX references. - Carsten > > > (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) > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode