]> git.sur5r.net Git - i3/i3/commit
Fix 'rename workspace to tosomething' 2808/head
authorhwangcc23 <hwangcc@csie.nctu.edu.tw>
Sun, 11 Jun 2017 15:48:55 +0000 (23:48 +0800)
committerhwangcc23 <hwangcc@csie.nctu.edu.tw>
Mon, 12 Jun 2017 14:21:21 +0000 (22:21 +0800)
commitcc4be4167422644c5789b94ec6292e5c77d2df45
tree0006f696566a5f64d2a06ee31a1322cebb4530e8
parentd3901fe92ebb86edc9d3f77d8ab4fa8645778761
Fix 'rename workspace to tosomething'

This patch fixes the issue #2802 (https://github.com/i3/i3/issues/2802).

1). Revise the state machine for the 'rename workspace' command.
    These scenarios are considered:
    a). 'rename workspace to to bla'
        state transitions: RENAME -> RENAME_WORKSPACE -> RENAME_WORKSPACE_LIKELY_TO -> RENAME_WORKSPACE_LIKELY_TO_NEW_NAME
    b). 'rename workspace to tosomething'
        state transitions: RENAME -> RENAME_WORKSPACE -> RENAME_WORKSPACE_LIKELY_TO
    c). 'rename workspace to to'
        state transitions: RENAME -> RENAME_WORKSPACE -> RENAME_WORKSPACE_LIKELY_TO
    d). 'rename workspace to bla'
        state transitions: RENAME -> RENAME_WORKSPACE -> RENAME_WORKSPACE_LIKELY_TO
    e). 'rename workspace bla to foo'
        state transitions: RENAME -> RENAME_WORKSPACE -> RENAME_WORKSPACE_TO -> RENAME_WORKSPACE_TO_NEW_NAME

2). Add a test case in 117-workspace.t for the scenario b.
parser-specs/commands.spec
testcases/t/117-workspace.t