From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?SmFuIELDtmNrZXI=?= Subject: Re: Tip: How to copy&paste a table from Firefox to Org Date: Wed, 11 Aug 2010 07:28:48 +0200 Message-ID: <4C623510.7050205@jboecker.de> References: <4C619B77.2090908@jboecker.de> <87hbj2apsd.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=59065 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oj3ry-0000bh-90 for emacs-orgmode@gnu.org; Wed, 11 Aug 2010 01:28:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oj3rw-0004Wr-RZ for emacs-orgmode@gnu.org; Wed, 11 Aug 2010 01:28:54 -0400 Received: from smtp01.worldserver.net ([217.13.200.36]:36712) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oj3rw-0004WR-Mi for emacs-orgmode@gnu.org; Wed, 11 Aug 2010 01:28:52 -0400 In-Reply-To: <87hbj2apsd.fsf@gollum.intra.norang.ca> 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: Bernt Hansen Cc: Org Mode On 08/11/2010 03:42 AM, Bernt Hansen wrote: > Jan B=C3=B6cker writes: >=20 >> Hi all, >> >> posting in case this is useful to someone else: >> >> I just figured out how to copy & paste tabular data from Firefox to an >> Org buffer (in my case: a train schedule from www.bahn.de). >> >> - Select data in Firefox >> - Paste into Org, select it as the region >> - M-x replace-regexp C-i \ | ^ | >> =09 >> C-i inserts a tab character (you can also use C-q instead). >> We replace each beginning of a line and each tab character with "|". >> >> - Place the cursor on the table and press C-c C-c to align it >=20 > Isn't this the same as >=20 > - Select data in Firefox > - Paste into Org.=20 > - C-x C-x (select it as the region) > - M-x org-table-convert-region >=20 > ? >=20 > -Bernt Yes, it is. I should read the manual more often to discover cool features like that! Btw, org-table-convert-region is also bound to C-c |, which would make the steps: - select data in firefox - C-y C-x C-x C-c | Thanks a lot, Bernt! You see, that's the other reason I posted: I knew if I had overlooked a much faster way, someone would point it out to me := ) - Jan