This project is read-only.
1
Vote

Table editor

description

Scenario: Example table editing

Background:
Given that the editor is open
And I am editing a feature
Feature: table editor
When I have an examples table 
And I am editing it
Then I want to launch a visual editor
Examples:
| command             | result                        |
| Ctrl-T              | brings up grid based editor |   
| Context menu "edit" | brings up grid based editor |   
Feature: table column alighnment with right click
When I have an examples table
And I am editing it
Then I want to align all the columns with a context menu ot hot key
Examples:
| command                      | result           |
| Ctrl-A                       |    aligns the table |  
| Context menu "align columns" |    aligns the table |  
Feature: table column auto-alighnment
When I have an examples table
And I am editing it
And I have turned on auto-alignment feature
Then I want to have a mode where columns are automatically aligned
'''
Hitting a tab should get me to the next column, adding the "|" and 
auto-alighning the columns in all the other rows in the table (before or after).
Hitting Enter at the end of the line should add all missing (empty columns) and 
auto-align all columns in the table
'''
Examples:
| key   | context                                                                           | result                                                |
| Tab   | in any column except the last                                                     | gets me to the next column                            |   
| Tab   | in the last column when I have less columns in the row than the rest of the table | opens a new column and puts me in it                  |
| Tab   | in the last column when I have all columns populated                              | adds a new column to this row, but not the other rows |
| Enter | somewher within a row                                                             | gets me to the same column in the next row, or opens a new row if this is the last one |
| Enter | at the end of the row                                                             | gets me to the begining of the next row or opens a new one if this is the last one, plus alighns the entire table and adds any empty columns to the other rows if this row has more columns than the others|

comments