buffer_builtins.d.elv 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. #elvdoc:fn move-dot-left
  2. #
  3. # ```elvish
  4. # edit:move-dot-left
  5. # ```
  6. #
  7. # Moves the dot left one rune. Does nothing if the dot is at the beginning of
  8. # the buffer.
  9. #elvdoc:fn kill-rune-left
  10. #
  11. # ```elvish
  12. # edit:kill-rune-left
  13. # ```
  14. #
  15. # Kills one rune left of the dot. Does nothing if the dot is at the beginning of
  16. # the buffer.
  17. #elvdoc:fn move-dot-right
  18. #
  19. # ```elvish
  20. # edit:move-dot-right
  21. # ```
  22. #
  23. # Moves the dot right one rune. Does nothing if the dot is at the end of the
  24. # buffer.
  25. #elvdoc:fn kill-rune-left
  26. #
  27. # ```elvish
  28. # edit:kill-rune-left
  29. # ```
  30. #
  31. # Kills one rune right of the dot. Does nothing if the dot is at the end of the
  32. # buffer.
  33. #elvdoc:fn move-dot-sol
  34. #
  35. # ```elvish
  36. # edit:move-dot-sol
  37. # ```
  38. #
  39. # Moves the dot to the start of the current line.
  40. #elvdoc:fn kill-line-left
  41. #
  42. # ```elvish
  43. # edit:kill-line-left
  44. # ```
  45. #
  46. # Deletes the text between the dot and the start of the current line.
  47. #elvdoc:fn move-dot-eol
  48. #
  49. # ```elvish
  50. # edit:move-dot-eol
  51. # ```
  52. #
  53. # Moves the dot to the end of the current line.
  54. #elvdoc:fn kill-line-right
  55. #
  56. # ```elvish
  57. # edit:kill-line-right
  58. # ```
  59. #
  60. # Deletes the text between the dot and the end of the current line.
  61. #elvdoc:fn move-dot-up
  62. #
  63. # ```elvish
  64. # edit:move-dot-up
  65. # ```
  66. #
  67. # Moves the dot up one line, trying to preserve the visual horizontal position.
  68. # Does nothing if dot is already on the first line of the buffer.
  69. #elvdoc:fn move-dot-down
  70. #
  71. # ```elvish
  72. # edit:move-dot-down
  73. # ```
  74. #
  75. # Moves the dot down one line, trying to preserve the visual horizontal
  76. # position. Does nothing if dot is already on the last line of the buffer.
  77. #elvdoc:fn transpose-rune
  78. #
  79. # ```elvish
  80. # edit:transpose-rune
  81. # ```
  82. #
  83. # Swaps the runes to the left and right of the dot. If the dot is at the
  84. # beginning of the buffer, swaps the first two runes, and if the dot is at the
  85. # end, it swaps the last two.
  86. #elvdoc:fn move-dot-left-word
  87. #
  88. # ```elvish
  89. # edit:move-dot-left-word
  90. # ```
  91. #
  92. # Moves the dot to the beginning of the last word to the left of the dot.
  93. #elvdoc:fn kill-word-left
  94. #
  95. # ```elvish
  96. # edit:kill-word-left
  97. # ```
  98. #
  99. # Deletes the last word to the left of the dot.
  100. #elvdoc:fn move-dot-right-word
  101. #
  102. # ```elvish
  103. # edit:move-dot-right-word
  104. # ```
  105. #
  106. # Moves the dot to the beginning of the first word to the right of the dot.
  107. #elvdoc:fn kill-word-right
  108. #
  109. # ```elvish
  110. # edit:kill-word-right
  111. # ```
  112. #
  113. # Deletes the first word to the right of the dot.
  114. #elvdoc:fn transpose-word
  115. #
  116. # ```elvish
  117. # edit:transpose-word
  118. # ```
  119. #
  120. # Swaps the words to the left and right of the dot. If the dot is at the
  121. # beginning of the buffer, swaps the first two words, and the dot is at the
  122. # end, it swaps the last two.
  123. #elvdoc:fn move-dot-left-small-word
  124. #
  125. # ```elvish
  126. # edit:move-dot-left-small-word
  127. # ```
  128. #
  129. # Moves the dot to the beginning of the last small word to the left of the dot.
  130. #elvdoc:fn kill-small-word-left
  131. #
  132. # ```elvish
  133. # edit:kill-small-word-left
  134. # ```
  135. #
  136. # Deletes the last small word to the left of the dot.
  137. #elvdoc:fn move-dot-right-small-word
  138. #
  139. # ```elvish
  140. # edit:move-dot-right-small-word
  141. # ```
  142. #
  143. # Moves the dot to the beginning of the first small word to the right of the dot.
  144. #elvdoc:fn kill-small-word-right
  145. #
  146. # ```elvish
  147. # edit:kill-small-word-right
  148. # ```
  149. #
  150. # Deletes the first small word to the right of the dot.
  151. #elvdoc:fn transpose-small-word
  152. #
  153. # ```elvish
  154. # edit:transpose-small-word
  155. # ```
  156. #
  157. # Swaps the small words to the left and right of the dot. If the dot is at the
  158. # beginning of the buffer, it swaps the first two small words, and if the dot
  159. # is at the end, it swaps the last two.
  160. #elvdoc:fn move-dot-left-alnum-word
  161. #
  162. # ```elvish
  163. # edit:move-dot-left-alnum-word
  164. # ```
  165. #
  166. # Moves the dot to the beginning of the last alnum word to the left of the dot.
  167. #elvdoc:fn kill-alnum-word-left
  168. #
  169. # ```elvish
  170. # edit:kill-alnum-word-left
  171. # ```
  172. #
  173. # Deletes the last alnum word to the left of the dot.
  174. #elvdoc:fn move-dot-right-alnum-word
  175. #
  176. # ```elvish
  177. # edit:move-dot-right-alnum-word
  178. # ```
  179. #
  180. # Moves the dot to the beginning of the first alnum word to the right of the dot.
  181. #elvdoc:fn kill-alnum-word-right
  182. #
  183. # ```elvish
  184. # edit:kill-alnum-word-right
  185. # ```
  186. #
  187. # Deletes the first alnum word to the right of the dot.
  188. #elvdoc:fn transpose-alnum-word
  189. #
  190. # ```elvish
  191. # edit:transpose-alnum-word
  192. # ```
  193. #
  194. # Swaps the alnum words to the left and right of the dot. If the dot is at the
  195. # beginning of the buffer, it swaps the first two alnum words, and if the dot
  196. # is at the end, it swaps the last two.