Re: [O] Complex conversion of text to org table

2017-03-14 Thread John Kitchin
See my solution here: http://emacs.stackexchange.com/questions/31417/function-to-paste-text-as-a-orgmode-table/31425#31425 Vicente Vera writes: > OK that's a nice trick. Very useful for CSV files. Thanks! > > 2017-03-12 16:52 GMT+00:00 Scott Randby : > >> On 03/12/2017 11:35

Re: [O] Complex conversion of text to org table

2017-03-13 Thread Vicente Vera
OK that's a nice trick. Very useful for CSV files. Thanks! 2017-03-12 16:52 GMT+00:00 Scott Randby : > On 03/12/2017 11:35 AM, Xebar Saram wrote: > > Thx Vicente! > > > > Thats a decent idea. can this be all wrapped in a function (i have zero > > coding skills :)) ? i have

Re: [O] Complex conversion of text to org table

2017-03-12 Thread Scott Randby
On 03/12/2017 11:35 AM, Xebar Saram wrote: > Thx Vicente! > > Thats a decent idea. can this be all wrapped in a function (i have zero > coding skills :)) ? i have hundreds of these tables to convert :) > > best! > > Z OR 3/4, cup, milk 2, tablespoons, white vinegar 1, cup, all-purpose flour

Re: [O] Complex conversion of text to org table

2017-03-12 Thread Thierry Banel
Use a regex replacement. Basically you replace the 1st space with a vertical pipe: M-x query-replace-regexp ^\([^ ]+\) |\1| answer yes repeatedly, then type TAB to align the table. Le 12/03/2017 16:14, Xebar Saram a écrit : > Hi list > > so im trying to use orgmode to collect food recepies. i

Re: [O] Complex conversion of text to org table

2017-03-12 Thread Scott Randby
On 03/12/2017 11:35 AM, Xebar Saram wrote: > Thx Vicente! > > Thats a decent idea. can this be all wrapped in a function (i have zero > coding skills :)) ? i have hundreds of these tables to convert :) > > best! > > Z You can try using commas to separate items. List with commas inserted:

Re: [O] Complex conversion of text to org table

2017-03-12 Thread Xebar Saram
Thx Vicente! Thats a decent idea. can this be all wrapped in a function (i have zero coding skills :)) ? i have hundreds of these tables to convert :) best! Z On Sun, Mar 12, 2017 at 5:26 PM, Vicente Vera wrote: > Hello. In this case Org splits into columns everytime it

Re: [O] Complex conversion of text to org table

2017-03-12 Thread Vicente Vera
Hello. In this case Org splits into columns everytime it sees a space, so "baking soda" ends up in two columns. A brute force solution: replace the spaces between words that shouldn't be put into separated columns with an underscore: 1_cup all-purpose_flour Convert it to an Org table and then do