Simple image host.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mark-more.feature 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. Feature: Marking multiple parts of the buffer
  2. Scenario: Marking next like this, cursors
  3. When I insert "This text has the word text in it"
  4. And I select "text"
  5. And I press "C->"
  6. Then I should have 2 cursors
  7. Scenario: Marking next like this, region
  8. Given I turn on delete-selection-mode
  9. When I insert "This text has the word text in it"
  10. And I select "text"
  11. And I press "C->"
  12. And I type "sentence"
  13. Then I should see "This sentence has the word sentence in it"
  14. Scenario: Skipping a mark
  15. Given I turn on delete-selection-mode
  16. When I insert "Here's text, text and text"
  17. And I select "text"
  18. And I press "C->"
  19. And I press "C-0 C->"
  20. And I type "more"
  21. Then I should see "Here's more, text and more"
  22. Scenario: Removing last fake
  23. When I insert "Here's text, text and text"
  24. And I select "text"
  25. And I press "C->"
  26. And I press "C-- C->"
  27. Then I should have one cursor
  28. Scenario: Removing furthest mark
  29. Given I turn on delete-selection-mode
  30. When I insert "Here's text, text and text"
  31. And I select "text"
  32. And I press "C->"
  33. And I press "C->"
  34. And I press "C-- C->"
  35. And I type "more"
  36. Then I should see "Here's more, more and text"
  37. Scenario: Marking prev like this, cursors
  38. When I insert "This text has the word text in it"
  39. And I select the last "text"
  40. And I press "C-<"
  41. Then I should have 2 cursors
  42. Scenario: Marking prev like this, region
  43. Given I turn on delete-selection-mode
  44. When I insert "This text has the word text in it"
  45. And I select the last "text"
  46. And I press "C-<"
  47. And I type "sentence"
  48. Then I should see "This sentence has the word sentence in it"
  49. Scenario: Skipping a prev mark
  50. Given I turn on delete-selection-mode
  51. When I insert "Here's text, text and text"
  52. And I select the last "text"
  53. And I press "C-<"
  54. And I press "C-0 C-<"
  55. And I type "more"
  56. Then I should see "Here's more, text and more"
  57. Scenario: Removing first fake
  58. When I insert "Here's text, text and text"
  59. And I select the last "text"
  60. And I press "C-<"
  61. And I press "C-- C-<"
  62. Then I should have one cursor
  63. Scenario: Removing first mark
  64. Given I turn on delete-selection-mode
  65. When I insert "Here's text, text and text"
  66. And I select the last "text"
  67. And I press "C-<"
  68. And I press "C-<"
  69. And I press "C-- C-<"
  70. And I type "more"
  71. Then I should see "Here's text, more and more"
  72. Scenario: Marking all
  73. When I insert "Here's text, text and text"
  74. And I select "text"
  75. And I press "M-!"
  76. Then I should have 3 cursors
  77. Scenario: Marking in region
  78. Given I turn on delete-selection-mode
  79. When I insert "Here's text, text and text"
  80. And I select "text, text"
  81. And I press "M-# text <return>"
  82. And I type "more"
  83. Then I should have 2 cursors
  84. And I should see "Here's more, more and text"
  85. Scenario: Marking without an active region
  86. When I insert:
  87. """
  88. aaa
  89. bbb
  90. ccc
  91. """
  92. And I go to the front of the word "bbb"
  93. And I press "C->"
  94. And I type "_"
  95. Then I should have 2 cursors
  96. And I should see:
  97. """
  98. aaa
  99. _bbb
  100. _ccc
  101. """
  102. Scenario: Increasing number of cursors without an active region
  103. When I insert:
  104. """
  105. aaa
  106. bbb
  107. ccc
  108. """
  109. And I go to the front of the word "bbb"
  110. And I press "C->"
  111. And I press "C-<"
  112. And i press "C-f"
  113. And I type "_"
  114. Then I should have 3 cursors
  115. And I should see:
  116. """
  117. a_aa
  118. b_bb
  119. c_cc
  120. """
  121. Scenario: Multiple cursor with shift selection
  122. When I insert "This text contains the word text twice"
  123. And I go to the front of the word "text"
  124. And I press "M-S-f"
  125. And I press "C->"
  126. And I press "C-f"
  127. And I press "<deletechar>"
  128. Then I should see "This text ontains the word text wice"