builtins.d.elv 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. #elvdoc:fn binding-table
  2. #
  3. # ```elvish
  4. # edit:binding-table $map
  5. # ```
  6. #
  7. # Converts a normal map into a binding map.
  8. #elvdoc:fn close-mode
  9. #
  10. # ```elvish
  11. # edit:close-mode
  12. # ```
  13. #
  14. # Closes the current active mode.
  15. #elvdoc:fn end-of-history
  16. #
  17. # ```elvish
  18. # edit:end-of-history
  19. # ```
  20. #
  21. # Adds a notification saying "End of history".
  22. #elvdoc:fn redraw
  23. #
  24. # ```elvish
  25. # edit:redraw &full=$false
  26. # ```
  27. #
  28. # Triggers a redraw.
  29. #
  30. # The `&full` option controls whether to do a full redraw. By default, all
  31. # redraws performed by the line editor are incremental redraws, updating only
  32. # the part of the screen that has changed from the last redraw. A full redraw
  33. # updates the entire command line.
  34. #elvdoc:fn clear
  35. #
  36. # ```elvish
  37. # edit:clear
  38. # ```
  39. #
  40. # Clears the screen.
  41. #
  42. # This command should be used in place of the external `clear` command to clear
  43. # the screen.
  44. #elvdoc:fn insert-raw
  45. #
  46. # ```elvish
  47. # edit:insert-raw
  48. # ```
  49. #
  50. # Requests the next terminal input to be inserted uninterpreted.
  51. #elvdoc:fn key
  52. #
  53. # ```elvish
  54. # edit:key $string
  55. # ```
  56. #
  57. # Parses a string into a key.
  58. #elvdoc:fn notify
  59. #
  60. # ```elvish
  61. # edit:notify $message
  62. # ```
  63. #
  64. # Prints a notification message. The argument may be a string or a [styled
  65. # text](builtin.html#styled).
  66. #
  67. # If called while the editor is active, this will print the message above the
  68. # editor, and redraw the editor.
  69. #
  70. # If called while the editor is inactive, the message will be queued, and shown
  71. # once the editor becomes active.
  72. #elvdoc:fn return-line
  73. #
  74. # ```elvish
  75. # edit:return-line
  76. # ```
  77. #
  78. # Causes the Elvish REPL to end the current read iteration and evaluate the
  79. # code it just read. If called from a key binding, takes effect after the key
  80. # binding returns.
  81. #elvdoc:fn return-eof
  82. #
  83. # ```elvish
  84. # edit:return-eof
  85. # ```
  86. #
  87. # Causes the Elvish REPL to terminate. If called from a key binding, takes
  88. # effect after the key binding returns.
  89. #elvdoc:fn smart-enter
  90. #
  91. # ```elvish
  92. # edit:smart-enter
  93. # ```
  94. #
  95. # Inserts a literal newline if the current code is not syntactically complete
  96. # Elvish code. Accepts the current line otherwise.
  97. #elvdoc:fn wordify
  98. #
  99. # ```elvish
  100. # edit:wordify $code
  101. # ```
  102. #
  103. # Breaks Elvish code into words.