From: James TD Smith <ahktenzero@mohorovi.cc>
To: Samuel Wales <samologist@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: getting Firefox tabs into org on a mac
Date: Tue, 20 Oct 2009 11:22:47 +0100 [thread overview]
Message-ID: <20091020102247.GO72276@yog-sothoth.mohorovi.cc> (raw)
In-Reply-To: <20524da70910192040r2858d89ew90d8d955ec5caf7f@mail.gmail.com>
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
--
|-<James TD Smith>-<email/ahktenzero@mohorovi.cc>-|
next prev parent reply other threads:[~2009-10-20 10:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-20 3:40 getting Firefox tabs into org on a mac Samuel Wales
2009-10-20 8:12 ` Andreas Burtzlaff
2009-10-21 0:00 ` Andreas Burtzlaff
2009-10-23 18:31 ` Samuel Wales
2009-10-23 19:56 ` Samuel Wales
2009-10-24 22:53 ` Andreas Burtzlaff
2009-10-24 22:42 ` Andreas Burtzlaff
2009-10-20 10:22 ` James TD Smith [this message]
2009-10-21 3:45 ` Samuel Wales
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091020102247.GO72276@yog-sothoth.mohorovi.cc \
--to=ahktenzero@mohorovi.cc \
--cc=emacs-orgmode@gnu.org \
--cc=samologist@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).