From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: org-protocol and web links Date: Tue, 06 Apr 2010 16:14:59 -0400 Message-ID: <87iq84pccc.fsf@fastmail.fm> References: 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 1NzFAM-0001il-RF for emacs-orgmode@gnu.org; Tue, 06 Apr 2010 16:14:30 -0400 Received: from [140.186.70.92] (port=43278 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NzFAK-0001eW-36 for emacs-orgmode@gnu.org; Tue, 06 Apr 2010 16:14:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NzFAE-0000eF-Ga for emacs-orgmode@gnu.org; Tue, 06 Apr 2010 16:14:27 -0400 Received: from out3.smtp.messagingengine.com ([66.111.4.27]:33496) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzFAE-0000e2-DW for emacs-orgmode@gnu.org; Tue, 06 Apr 2010 16:14:22 -0400 In-Reply-To: (Richard Riley's message of "Tue, 06 Apr 2010 18:12:31 +0200") 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: Richard Riley Cc: emacs-orgmode@gnu.org Hi Richard, Richard Riley writes: > Does anyone have a "w" template which can store a hot link using the > page title (not just the url) in addition to the selection under the > title line? The problem I find is that I havent got the combo right to > do this : if I select something on a conkeror page and then call > org-remember the selection becomes the %c which is usually used to store > an encoded title and url org link. > > e.g I want my new org item first line to be something like the following > if I invoke org-remember from conkeror on a web page having first > hilited "blah blah" somewhere on the page With the following org-remember-template: --8<---------------cut here---------------start------------->8--- (setq org-remember-templates '( ;; other templates here ("protocol" ?w "* %c\n %U\n\n %i" nil bottom nil) )) --8<---------------cut here---------------end--------------->8--- I get the following when I select text on the org-mode home page in conkeror and call org-protocol-remember (which I have bound to C-c r in conkeror): --8<---------------cut here---------------start------------->8--- * [[http://orgmode.org/][Org-Mode: Your Life in Plain Text]] [2010-04-06 Tue 16:07] Org-mode is for keeping notes, maintaining ToDo lists, doing project planning, and authoring with a fast and effective plain-text system. --8<---------------cut here---------------end--------------->8--- What do you have in your conkerorrc? I'm currently using the setup I put up on the org-protocol page on Worg: http://orgmode.org/worg/org-contrib/org-protocol.php#sec-8.1 Best, Matt