File: e2wm.feature

package info (click to toggle)
e2wm 1.4-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 332 kB
  • sloc: lisp: 3,949; sh: 36; makefile: 29
file content (105 lines) | stat: -rw-r--r-- 3,617 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
Feature: Simple window management
  In order to have a happy Emacs life
  As a user
  I want to manage Emacs windows

  Scenario: Toggle imenu window
    Given I enabled e2wm
    When I switch to "code" perspective
    Then I should see window "imenu"
    When I press "C-c ; I"
    Then I should not see window "imenu"

  Scenario: Pop to help buffer
    Given I enabled e2wm
    When I switch to "code" perspective
    Then I should be in window "main"
    When I have a popup buffer "*Help*"
    Then I should be in window "sub"
     And I should be in buffer "*Help*"

  Scenario: Toggle maximize
    Given I enabled e2wm
    When I switch to "code" perspective
    Then I should see these windows:
      | Window names |
      | main         |
      | files        |
      | history      |
      | imenu        |
     And I press "C-c ; M"
    Then I should see these windows:
      | Window names |
      | main         |
     And I press "C-c ; M"
    Then I should see these windows:
      | Window names |
      | main         |
      | files        |
      | history      |
      | imenu        |

  Scenario: When in left window, open buffer in right window
    Given I enabled e2wm
    When I switch to "stwo" perspective
    Then I should be in window "left"
     And I switch to a buffer "recordable-1"
    When I have a popup buffer "recordable-2"
    Then I should be in window "right"
     And I should be in buffer "recordable-2"
    When I switch to window "left"
    Then I should be in buffer "recordable-1"

  Scenario: When in right window, open buffer in left window
    Given I enabled e2wm
    When I switch to "stwo" perspective
     And I switch to window "right"
     And I switch to a buffer "recordable-1"
    When I have a popup buffer "recordable-2"
    Then I should be in window "left"
     And I should be in buffer "recordable-2"
    When I switch to window "right"
    Then I should be in buffer "recordable-1"

  Scenario: Do not show blank buffer when opening a file in VC (#46)
    Given I enabled e2wm
    When I switch to "stwo" perspective
    Then I should be in window "left"
     And I switch to a buffer "recordable-1"
     And I execute a command that reopens buffer "recordable-2" in other window
    Then I should be in window "right"
     And I should be in buffer "recordable-2"
    When I switch to window "left"
     And I should be in buffer "recordable-1"

  Scenario: Killing the blank buffer should not cause a problem (#42)
    Given I enabled e2wm
    When I switch to "code" perspective
     And I switch to a buffer " *e2wm:blank*"
     And I press "C-x k RET"
     And I switch to buffer "recordable"
     And I press "C-x k RET"

  Scenario: Completing window should not move focused window
    Given I enabled e2wm
    When I switch to "stwo" perspective
     And I switch to window "right"
     And I press "C-x C-f ~ / TAB TAB"
    Then I should see buffer "*Completions*" in window "sub"
     And I quit
    Then I should not see window "sub"
    Then I should be in window "right"

  Scenario: Original display-buffer-function should be restored
    Given I have custom display-buffer-function
      And I enabled e2wm
     Then my custom display-buffer-function should not be enabled
     When I disabled e2wm
     Then my custom display-buffer-function should be enabled

  Scenario: Display method should work even windows were distorted (#58)
    Given I enabled e2wm
      And I switch to "code" perspective
      And windows are distorted due to manual rearrangement
     When I display buffer "*test*"
     Then I should be in window "sub"