Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

Remove the pain from editing tables #11

Open
arnonmoscona opened this issue Nov 28, 2012 · 0 comments
Open

Remove the pain from editing tables #11

arnonmoscona opened this issue Nov 28, 2012 · 0 comments

Comments

@arnonmoscona
Copy link

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 |   
    | Grid icon           | 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 |  
    | Align icon                   |    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|
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant