From mboxrd@z Thu Jan 1 00:00:00 1970 From: James TD Smith Subject: Re: getting Firefox tabs into org on a mac Date: Tue, 20 Oct 2009 11:22:47 +0100 Message-ID: <20091020102247.GO72276@yog-sothoth.mohorovi.cc> References: <20524da70910192040r2858d89ew90d8d955ec5caf7f@mail.gmail.com> 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 1N0Brk-0000zE-8b for emacs-orgmode@gnu.org; Tue, 20 Oct 2009 06:22:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0Brf-0000xY-Pk for emacs-orgmode@gnu.org; Tue, 20 Oct 2009 06:22:55 -0400 Received: from [199.232.76.173] (port=52566 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0Brf-0000xP-Cl for emacs-orgmode@gnu.org; Tue, 20 Oct 2009 06:22:51 -0400 Received: from 81-86-40-42.dsl.pipex.com ([81.86.40.42]:49606 helo=yog-sothoth.mohorovi.cc) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N0Bre-0007zC-Qh for emacs-orgmode@gnu.org; Tue, 20 Oct 2009 06:22:51 -0400 Content-Disposition: inline In-Reply-To: <20524da70910192040r2858d89ew90d8d955ec5caf7f@mail.gmail.com> 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: Samuel Wales Cc: emacs-orgmode@gnu.org Hi Samuel, On 2009-10-19 20:40:54(-0700), Samuel Wales wrote: > I have a huge number of Firefox tabs that I want to get into > org. Figuring out how has gotten complicated, despite good > documentation out there. > > I want simply title and url for each tab. > > Maybe like this: > > * Firefox tabs > * Public Git Hosting - Worg.git/summary > http://repo.or.cz/w/Worg.git > * Google Search > http://www.google.com There's a plugin for Firefox called Copy All URLs, which lets you copy all the titles and URLS of your current tabs to the clipboard. You can get it from http://plasser.net/copyallurls/ You can specify the markup used for each line; I have '[[$url][$title]]' so I get a list of org links. After copying the url list you can then either just paste your it into an org buffer, or use a remember template which includes clipboard contents. > Would be nice to get fancier by allowing annotations (for > use by fireforg?). And allowing syncing back and forth. > But first, I just want to get started. > > I envision two ways of doing this. Maybe there are more. > > 1) Have emacs or a script convert one of the folders in > the bookmark file to an org outline as above. > 2) Have org-mac-protocol set up for individual tabs to be > clicked to get them remembered. > > If I do (2), then I'd want it to be easy. That is, without > having to switch from mouse to keyboard. But does (2) work > on a Mac? Last I heard, org-mac-protocol works for Safari, > but not Firefox. Did you see my post to the list regarding Firefox keybindings? I have no idea if org-protocol works with Firefox on the Mac though. > P.S. I /also/ have a huge number of Safari tabs and a huge > number of emacs-w3m tabs. I've found those also difficult > to orgify. So ideas here are also welcome. But Firefox is > more important now. I can give you a solution for w3m: --8<---------------cut here---------------start------------->8--- (defun ahkt-w3m-tabs-to-org () (interactive) (let (tabs) (dolist (buf (buffer-list)) (with-current-buffer buf (if (and (eq major-mode 'w3m-mode)) (push (org-make-link-string w3m-current-url w3m-current-title) tabs)))) (kill-new (mapconcat 'identity tabs "\n")))) --8<---------------cut here---------------end--------------->8--- James -- |---|