Hi Terry, after using edit-pane-csv for some time now, I have one big wish left: it would be great if Leo could remember the settings for each file, at least for @clean nodes. Ideally the csv pane would stay open for these nodes.
I have many csv files around, which I need to maintain manually on a regular basis, so it would be nice if Leo could remember the settings for each of these files, and it would be even better if I would not have to run the command edit-pane-csv on each file every time after I closed the associated Leo file. Cheers - Josef On Friday, August 10, 2018 at 5:38:37 PM UTC+2, Terry Brown wrote: > > On Fri, 10 Aug 2018 08:14:53 -0700 (PDT) > Josef <joe...@gmx.net <javascript:>> wrote: > > > Hi Terry > > > > I tried > > > > Leo 5.7.4 devel, build 20180807122609 > > > > and it did not work right away with a .latex file. It seems to get > > confused by the @language latex in the first line. It worked when I > > removed it. > > > > It would be nice if it would ignore leo directives. > > Hmm, it doesn't pay any attention to leo directives, and just defaults > to ',' CSV mode. Not sure what was going on there. > > > Another quirk is, that every line needs to have the same number of > > separators, but particularly when editing latex tables by hand one > > does not always enter all cells if they are empty anyway. This > > probably is a limitation of the Python CSV library, though. > > True... hmm, the design is that a series of lines with the same number > of separators is what *defines* a table. Probably reasonable for CSV, > but I can see the issue with LaTeX. > > The simplest way I can think of addressing that would be some way to > normalize the number of delimiters in a table, either have the user > select the whole table or incrementally bring in lines from above / > below the table, adding empty cells to them. > > But if I remember LaTeX tables, that will impact line drawing, > "1 & 2 \\" vs "1 & 2 & & \\" in a four column table for example, the > first leaves the rest of the line blank whereas the second displays > empty cells, if you're drawing lines between cells that is. I think. > > > I think it would also be nice if it could figure out the separator by > > itself and start up with a good suggestion, similar to the "sniffer" > > tool in the CSV module. > > Might be doable, although I'm guessing that usually you'd only need to > change it once per session, and having it guess too often might make it > less flexible in terms of editing different table types in the same > node etc. I did think of adding a presets dropdown for CSV / tab / > LaTeX / pipe etc. > > > That all said, thank you very much for this command. It makes my life > > a lot easier. > > Glad to hear it. > > Cheers -Terry > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To post to this group, send email to leo-editor@googlegroups.com. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.