From c68c526fd6bd3598576d5baadc7639d53977d414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bisinger?= Date: Sat, 13 Oct 2018 11:41:06 +0200 Subject: [PATCH] Add keybings to rename the file and organize imports in typescript --- layers/+lang/typescript/README.org | 2 ++ layers/+lang/typescript/packages.el | 2 ++ 2 files changed, 4 insertions(+) diff --git a/layers/+lang/typescript/README.org b/layers/+lang/typescript/README.org index 7dcea9a60..43dd50fa6 100644 --- a/layers/+lang/typescript/README.org +++ b/layers/+lang/typescript/README.org @@ -143,7 +143,9 @@ You have to install the following dependencies with npm. | ~SPC m g t~ | jump to entity’s type definition | | ~SPC m g u~ | references | | ~SPC m h h~ | documentation at point | +| ~SPC m r i~ | organize imports | ~SPC m r r~ | rename symbol | +| ~SPC m r f~ | rename file | | ~SPC m s p~ | send selected region or current buffer to the web playground | | ~SPC m s r~ | restart server | diff --git a/layers/+lang/typescript/packages.el b/layers/+lang/typescript/packages.el index 7cde2feaf..22b2771c5 100644 --- a/layers/+lang/typescript/packages.el +++ b/layers/+lang/typescript/packages.el @@ -84,7 +84,9 @@ "gt" spacemacs/typescript-jump-to-type-def "gu" tide-references "hh" tide-documentation-at-point + "ri" 'tide-organize-imports "rr" tide-rename-symbol + "rf" 'tide-rename-file "sr" tide-restart-server) typescriptList (cons 'typescript-mode keybindingList) typescriptTsxList (cons 'typescript-tsx-mode