diff --git a/README.md b/README.md index aa17fd2..ed5de49 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,26 @@ navigating through errors: ![Error navigation example](media/error-navigation.gif) +### Type Enclosings + +`ocaml-eglot` displays the type of expression below the cursor and +increases or decreases the enclosings of the expression or verbosity: + +- `ocaml-eglot-type-enclosing` (C-c C-t) + +And when a type is displayed, additional commands are possible: + +- `ocaml-eglot-type-enclosing-increase-verbosity` (C-c + C-t): to increase the verbosity of the type observed +- `ocaml-eglot-type-enclosing-grow` (C-↑>): to grow the + expression +- `ocaml-eglot-type-enclosing-shrink` (C-↓>): to shrink the + expression +- `ocaml-eglot-type-enclosing-copy` (C-w>): to copy the + type expression to the _kill-ring_ (clipboard) + +![Type Enclosings example](media/type-enclosing.gif) + ### Jump to definition/declaration OCaml-eglot provides a shortcut to quickly jump to the definition or diff --git a/media/type-enclosing.gif b/media/type-enclosing.gif new file mode 100644 index 0000000..a65adfa Binary files /dev/null and b/media/type-enclosing.gif differ