vkocubinsky/SublimeTableEditor

When i enable for current view it doesn't work

Closed this issue · 2 comments

Hello,

I have an already existing document and when i enable table editor the tab doesn't jump from column to column

And i have error logs in the console

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 549, in run_
    return self.run(edit)
  File "table_plugin in /Users/yecine/Library/Application Support/Sublime Text 3/Installed Packages/Table Editor.sublime-package", line 178, in run
  File "table_plugin in /Users/yecine/Library/Application Support/Sublime Text 3/Installed Packages/Table Editor.sublime-package", line 186, in run_one_sel
  File "table_plugin in /Users/yecine/Library/Application Support/Sublime Text 3/Installed Packages/Table Editor.sublime-package", line 173, in create_context
  File "table_plugin in /Users/yecine/Library/Application Support/Sublime Text 3/Installed Packages/Table Editor.sublime-package", line 132, in detect_syntax
  File "table_lib in /Users/yecine/Library/Application Support/Sublime Text 3/Installed Packages/Table Editor.sublime-package", line 85, in create_syntax
ValueError: Syntax Auto doesn't supported
Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 549, in run_
    return self.run(edit)
  File "table_plugin in /Users/yecine/Library/Application Support/Sublime Text 3/Installed Packages/Table Editor.sublime-package", line 178, in run
  File "table_plugin in /Users/yecine/Library/Application Support/Sublime Text 3/Installed Packages/Table Editor.sublime-package", line 186, in run_one_sel
  File "table_plugin in /Users/yecine/Library/Application Support/Sublime Text 3/Installed Packages/Table Editor.sublime-package", line 173, in create_context
  File "table_plugin in /Users/yecine/Library/Application Support/Sublime Text 3/Installed Packages/Table Editor.sublime-package", line 132, in detect_syntax
  File "table_lib in /Users/yecine/Library/Application Support/Sublime Text 3/Installed Packages/Table Editor.sublime-package", line 85, in create_syntax
ValueError: Syntax Auto doesn't supported

here is what i have in my settings for markdown files

{
    "color_scheme": "Packages/MarkdownEditing/MarkdownEditor-Dark.tmTheme",
    "enable_table_editor": true,
    "extensions":
    [
        "mdown",
        "txt",
        "md"
    ],
    "tab_size": 2,
    "table_editor_syntax": "Auto"
}

Thanks for feedback. It looks it is a bug. I will see what is the problem. I guess as workaround you can remove line "table_editor_syntax": "Auto". "Auto" is default mode.

This is a bug in documentation. Option "table_editor_syntax": "Auto" no more supported. I fixed documentation.

Enough say "enable_table_editor": true. You can say this for all files in Preferences.sublime-settings, but I recommend say this only for specific syntax, for example for markdown you have to write this in Markdown.sublime-settings. More simple do this with command palette Ctrl+Shtf+P(on windows), and select "Table Editor: Enable for current syntax". In this case TableEditor will modify your settings file for current syntax.