Skip to content
This repository has been archived by the owner on Jan 31, 2022. It is now read-only.

Convert table to CSV? #46

Open
drlabratory opened this issue Apr 29, 2014 · 4 comments
Open

Convert table to CSV? #46

drlabratory opened this issue Apr 29, 2014 · 4 comments

Comments

@drlabratory
Copy link

Love this extension, any chance you could implement the reverse? Would be a perfect way to get data into CSV format without having to fire up the E word.

@vkocubinsky
Copy link
Owner

Hi, thanks for feedback.

I am going to add export to CSV into Table Editor. I think it will be implemented on next way, when cursor on a table and user click export key , Table Editor will open new buffer and add to the buffer CSV representation for current table. I will use standard python csv module for implementation. Python csv module provides specify parameters for export, I will propagate some of these parameters to Table Editor configuration.

Thanks!

@laudenberg
Copy link

I haven't looked at the code in much detail but it might be easier and more natural to implement CSV as just another syntax mode. The different dialects (separator, quotes, ...) would be options similar to alignment.

@vkocubinsky
Copy link
Owner

I guess support csv as just another syntax is out of scope table editor, the main goal of csv is moving data between applications. In case if need edit csv file, I guess csv mode should be responsible for this.

Let me show only one problem with csv as just another table syntax. Table editor recognise text with .sublime-keymap file. Keymap file bind keys for a line starts with '|'. For csv we can not say a simple rule for recognise csv block.

@laudenberg
Copy link

Thanks for your input. I think I'm going to try it out myself and see where it goes. Glad you're doing the export stuff, though. Great job so far!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants