vkocubinsky / SublimeTableEditor

This package is no more supported. I moved to vim.
Other
494 stars 67 forks source link

What is «Auto align number column to right»? #56

Closed Kristinita closed 8 years ago

Kristinita commented 8 years ago

Hello, I don't understand how functions «Auto align number column to right». I add in my .sublime-settings file line "table_editor_align_number_right": true, but numbers not align to right.

  1. If hlines are absent, numbers remain in the same position where I wrote them.

Without hlines

  1. If hlines is, numbers are aligned to the center, but not to the right.

With hlines

All options except this correctly work for me. @vkocubinsky, would you add illustrations to be able to understand the functioning of this option?

Environment

Thanks.

vkocubinsky commented 8 years ago

Hi , I moved to vim and doesn't have installed sublime and doesn't support this package. Probably SublimeTableEditor doesn't supported your case as on a picture. But if I remember correctly Sublime Table Editor try to recognise is data has only numbers and if yes and if table_editor_align_number_right is true align number to right. I guess before hline is header , header aligned to center, you can try tables like this

|    Name   | Age |
|-----------|-----|
| Anna      |  20 |
| Alexander |  27 |

I expected column Age will be aligned to right.

Also as a workaround you can specify alignment

| column 1 | column 2 | column 3 |
| <<<<<<<< | >>>>>>>> | ######## |
|----------|----------|----------|
| 1        |    row 1 |    c1    |
| 2        |    row 2 |    c2    |
| 3        |    row 3 |    c3    |
Kristinita commented 8 years ago

59