src.elv.sh@v0.21.0-dev.0.20240515223629-06979efb9a2a/pkg/edit/state_api.d.elv (about) 1 # Inserts the given text at the dot, moving the dot after the newly 2 # inserted text. 3 fn insert-at-dot {|text| } 4 5 # Equivalent to assigning `$text` to `$edit:current-command`. 6 fn replace-input {|text| } 7 8 #doc:show-unstable 9 # Contains the current position of the cursor, as a byte position within 10 # `$edit:current-command`. 11 var -dot 12 13 # Contains the content of the current input. Setting the variable will 14 # cause the cursor to move to the very end, as if `edit-dot = (count 15 # $edit:current-command)` has been invoked. 16 # 17 # This API is subject to change. 18 var current-command