state_api.d.elv 666 B

1234567891011121314151617181920212223242526272829
  1. #elvdoc:fn insert-at-dot
  2. #
  3. # ```elvish
  4. # edit:insert-at-dot $text
  5. # ```
  6. #
  7. # Inserts the given text at the dot, moving the dot after the newly
  8. # inserted text.
  9. #elvdoc:fn replace-input
  10. #
  11. # ```elvish
  12. # edit:replace-input $text
  13. # ```
  14. #
  15. # Equivalent to assigning `$text` to `$edit:current-command`.
  16. #elvdoc:var -dot
  17. #
  18. # Contains the current position of the cursor, as a byte position within
  19. # `$edit:current-command`.
  20. #elvdoc:var current-command
  21. #
  22. # Contains the content of the current input. Setting the variable will
  23. # cause the cursor to move to the very end, as if `edit-dot = (count
  24. # $edit:current-command)` has been invoked.
  25. #
  26. # This API is subject to change.