Sublime Forum

SublimeTableEditor

#1

Hi, I am Valery.

I just released a first alpha version of SublimeTableEditor.
The code available on github.com/vkocubinsky/SublimeTableEditor.

SublimeTableEditor is a package for everyone who uses Sublime Editor for edit simple text tables in text mode, markdown mode, textile mode etc. SublimeTableEditor allow on easy way edit text table, it allow:

  • add/delete row
  • add/delete column
  • navigate with tab/shift tab
  • auto align number and text
  • specify alignment
  • move column left/right
    SublimeTableEditor is very similar to emacs org-mode table editor with the same key binding.

You can install SublimeTableEditor through Package Control wbond.net/sublime_packages/package_control

  • Open Package Control
  • Select β€˜Install Package’
  • Find and select β€˜Table Editor’

I will happy get feeback from you as reply to this post.

Screenshot:


Thanks!

1 Like

#2

Sweeet !!! :smile:

0 Likes

#3

GREAT JOB.

This is definitely something that SublimeText was missing. Kudos for the great work.

0 Likes

#4

For now planned features for version 1.0 is complete and Table Editor have beta status!

0 Likes

#5

Very nice! Thank you!

However I would like to have the emacs-like tables too … for example:

+--------+--------+
| some   | column |
+========+========+
| content|content |
+--------+--------+
|more    | more   |
+--------+--------+

That way I could directly use these tables for markdown/pandoc :smile:

0 Likes

#6

Thank you for feeback!

I will look more close on pandoc tables, reStructuredText tables and textile tables. But, I guess it will be after 1.0 GA release of Table Editor.

Thanks!

0 Likes

#7

Some people asked me about support pandoc styles. I have added support pandoc grid tables in version 0.11.0.

Now Table Editor supports next styles:

  • simple
  • emacs
  • grid (pandoc)

simple style is default style. You can change default table style if modify
user settings. You can open user settings with menu β€œPreferences -> Settings - User”.
You can set per syntax table style if modify syntax settings. For example when you edit Markdown file you can open syntax settings with menu
β€œPreferences -> Settings - More -> Syntax Specific - User”

There are list of available settings:

  • β€œtable_editor_style” : β€œsimple”
  • β€œtable_editor_style” : β€œemacs”
  • β€œtable_editor_style” : β€œgrid”

Simple Style

    |-----------|-----|-----------|
    |    Name   | Age |   Phone   |
    |===========|=====|===========|
    | Anna      |  32 | 123456789 |
    |-----------|-----|-----------|    
    | Alexander |  28 | 987654321 |
    |-----------|-----|-----------|    

Emacs Style

    |-----------+-----+-----------|
    |    Name   | Age |   Phone   |
    |===========+=====+===========|
    | Anna      |  32 | 123456789 |
    |-----------+-----+-----------|
    | Alexander |  28 | 987654321 |
    |-----------+-----+-----------|

Grid Style

    +-----------+-----+-----------+
    |    Name   | Age |   Phone   |
    +===========+=====+===========+
    | Anna      |  32 | 123456789 |
    +-----------+-----+-----------+
    | Alexander |  28 | 987654321 |
    +-----------+-----+-----------+

There is relative big change since version 0.10.0 , I tested main cases and looks that all works , but let me know if you find bug. The best way for report bug is add an issue to project github.com/vkocubinsky/SublimeTableEditor

Thanks!

0 Likes

#8

Awesome! My first tests went pretty well. Thank you sooo much :smile:

0 Likes

#9

Table Editor 1.0.0 GA is available!

Thanks!

0 Likes

#10

I have released Table Editor 1.1.0.

There are new features:

  • predefined table syntax for some wiki syntax
  • auto detect table syntax by view syntax
  • switch between different table syntax on the fly with command palette
  • support MultiMarkdown column alignment β€œ:—”, β€œ:β€”:”, β€œβ€”:”

For more detail look on the documentation github.com/vkocubinsky/SublimeTableEditor

If you using table_editor_style settings, all will work correct, but this settings declared as deprecated
and new preffered way to say Table Editor about table syntax is use table_editor_syntax

{
	// Set table syntax for Table Editor.
	// Valid options are: "Auto", "Simple", "EmacsOrgMode", "Pandoc", "MultiMarkdown",
	// 					  "reStructuredText", "Textile"
	//"table_editor_syntax": "Auto"
}

By default table_editor_syntax is Auto. Auto value detect table syntax by view syntax with next rules:

  • Markdown, MultiMarkdown -> MultiMarkdown
  • reStructuredText -> reStructuredText
  • Textile -> Textile
  • Other -> Simple

Thanks!

0 Likes

#11

I really love this plugin, is there any way we can add custom ways the table’s are created, without tampering with the package files. It would be great if we could create tables with Box Drawing symbols like the following example.

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Name β”‚ Age β”‚ Phone β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ Anna β”‚ 32 β”‚ 123456789 β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ Alexander β”‚ 28 β”‚ 987654321 β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
or

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Name β”‚ Age β”‚ Phone β”‚ β•žβ•β•β•β•β•β•β•β•β•β•β•β•ͺ═════β•ͺ═══════════║ β”‚ Anna β”‚ 32 β”‚ 123456789 β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ Alexander β”‚ 28 β”‚ 987654321 β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Thanks

0 Likes

#12

Hey, this would be a really really great looking table, why no one ever implement this?

0 Likes

#13

Great plugin! Awesome!

0 Likes

#14

This plugin has stopped working for me (see traceback below); I’m not sure what has changed. Unfortunately, this plugin has been abandoned, so does anyone know of an active fork or community where you can discuss issues?

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 818, in run_
    return self.run(edit)
  File "table_plugin in /Users/reagle/Library/Application Support/Sublime Text 3/Installed Packages/Table Editor.sublime-package", line 178, in run
  File "table_plugin in /Users/reagle/Library/Application Support/Sublime Text 3/Installed Packages/Table Editor.sublime-package", line 186, in run_one_sel
  File "table_plugin in /Users/reagle/Library/Application Support/Sublime Text 3/Installed Packages/Table Editor.sublime-package", line 173, in create_context
  File "table_plugin in /Users/reagle/Library/Application Support/Sublime Text 3/Installed Packages/Table Editor.sublime-package", line 51, in __init__
  File "table_base in /Users/reagle/Library/Application Support/Sublime Text 3/Installed Packages/Table Editor.sublime-package", line 790, in parse_text
  File "table_base in /Users/reagle/Library/Application Support/Sublime Text 3/Installed Packages/Table Editor.sublime-package", line 335, in pack
  File "table_base in /Users/reagle/Library/Application Support/Sublime Text 3/Installed Packages/Table Editor.sublime-package", line 207, in min_len
  File "table_base in /Users/reagle/Library/Application Support/Sublime Text 3/Installed Packages/Table Editor.sublime-package", line 212, in total_min_len
  File "widechar_support in /Users/reagle/Library/Application Support/Sublime Text 3/Installed Packages/Table Editor.sublime-package", line 88, in wlen
TypeError: 'NoneType' object is not callable
0 Likes