src.elv.sh@v0.21.0-dev.0.20240515223629-06979efb9a2a/pkg/edit/buffer_builtins.d.elv (about) 1 # Moves the dot left one rune. Does nothing if the dot is at the beginning of 2 # the buffer. 3 fn move-dot-left { } 4 5 # Kills one rune left of the dot. Does nothing if the dot is at the beginning of 6 # the buffer. 7 fn kill-rune-left { } 8 9 # Moves the dot right one rune. Does nothing if the dot is at the end of the 10 # buffer. 11 fn move-dot-right { } 12 13 # Kills one rune right of the dot. Does nothing if the dot is at the end of the 14 # buffer. 15 fn kill-rune-left { } 16 17 # Moves the dot to the start of the current line. 18 fn move-dot-sol { } 19 20 # Deletes the text between the dot and the start of the current line. 21 fn kill-line-left { } 22 23 # Moves the dot to the end of the current line. 24 fn move-dot-eol { } 25 26 # Deletes the text between the dot and the end of the current line. 27 fn kill-line-right { } 28 29 # Moves the dot up one line, trying to preserve the visual horizontal position. 30 # Does nothing if dot is already on the first line of the buffer. 31 fn move-dot-up { } 32 33 # Moves the dot down one line, trying to preserve the visual horizontal 34 # position. Does nothing if dot is already on the last line of the buffer. 35 fn move-dot-down { } 36 37 # Swaps the runes to the left and right of the dot. If the dot is at the 38 # beginning of the buffer, swaps the first two runes, and if the dot is at the 39 # end, it swaps the last two. 40 fn transpose-rune { } 41 42 # Moves the dot to the beginning of the last word to the left of the dot. 43 fn move-dot-left-word { } 44 45 # Deletes the last word to the left of the dot. 46 fn kill-word-left { } 47 48 # Moves the dot to the beginning of the first word to the right of the dot. 49 fn move-dot-right-word { } 50 51 # Deletes the first word to the right of the dot. 52 fn kill-word-right { } 53 54 # Swaps the words to the left and right of the dot. If the dot is at the 55 # beginning of the buffer, swaps the first two words, and the dot is at the 56 # end, it swaps the last two. 57 fn transpose-word { } 58 59 # Moves the dot to the beginning of the last small word to the left of the dot. 60 fn move-dot-left-small-word { } 61 62 # Deletes the last small word to the left of the dot. 63 fn kill-small-word-left { } 64 65 # Moves the dot to the beginning of the first small word to the right of the dot. 66 fn move-dot-right-small-word { } 67 68 # Deletes the first small word to the right of the dot. 69 fn kill-small-word-right { } 70 71 # Swaps the small words to the left and right of the dot. If the dot is at the 72 # beginning of the buffer, it swaps the first two small words, and if the dot 73 # is at the end, it swaps the last two. 74 fn transpose-small-word { } 75 76 # Moves the dot to the beginning of the last alnum word to the left of the dot. 77 fn move-dot-left-alnum-word { } 78 79 # Deletes the last alnum word to the left of the dot. 80 fn kill-alnum-word-left { } 81 82 # Moves the dot to the beginning of the first alnum word to the right of the dot. 83 fn move-dot-right-alnum-word { } 84 85 # Deletes the first alnum word to the right of the dot. 86 fn kill-alnum-word-right { } 87 88 # Swaps the alnum words to the left and right of the dot. If the dot is at the 89 # beginning of the buffer, it swaps the first two alnum words, and if the dot 90 # is at the end, it swaps the last two. 91 fn transpose-alnum-word { }