Skip to content

Commit

Permalink
Change show-type shortcut to ctrl-alt-T
Browse files Browse the repository at this point in the history
  • Loading branch information
retronym committed Aug 4, 2021
1 parent 782888a commit ddac496
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ object Reader {
// VIINS, VICMD, EMACS
val keymap = if (config.viMode) VIINS else EMACS
reader.getKeyMaps.put(MAIN, reader.getKeyMaps.get(keymap));
keyMap.bind(new Reference(ScalaShowType.Name), KeyMap.ctrl('T'))
keyMap.bind(new Reference(ScalaShowType.Name), KeyMap.alt(KeyMap.ctrl('t')))
}
def secure(p: java.nio.file.Path): Unit = {
try scala.reflect.internal.util.OwnerOnlyChmod.chmodFileOrCreateEmpty(p)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ trait LoopCommands {
echo("")
echo("Useful default key bindings:")
echo(" TAB code completion")
echo(" CTRL-T type at cursor, hit again to see the code with all types/implicits inferred.")
echo(" CTRL-ALT-T show type at cursor, hit again to show code with types/implicits inferred.")
}
def ambiguousError(cmd: String): Result = {
matchingCommands(cmd) match {
Expand Down

0 comments on commit ddac496

Please sign in to comment.