[conventions] Add conventions for imports
This commit is contained in:
parent
9b77d8cee3
commit
5f27edb107
|
@ -35,6 +35,7 @@
|
||||||
- [[#language-specific][Language specific]]
|
- [[#language-specific][Language specific]]
|
||||||
- [[#toggles][Toggles]]
|
- [[#toggles][Toggles]]
|
||||||
- [[#refactoring][Refactoring]]
|
- [[#refactoring][Refactoring]]
|
||||||
|
- [[#imports][Imports]]
|
||||||
- [[#code-formatting][Code Formatting]]
|
- [[#code-formatting][Code Formatting]]
|
||||||
- [[#web-frameworks][Web frameworks]]
|
- [[#web-frameworks][Web frameworks]]
|
||||||
- [[#help-or-documentation][Help or Documentation]]
|
- [[#help-or-documentation][Help or Documentation]]
|
||||||
|
@ -132,6 +133,7 @@ The prefix for going to something is ~SPC m g~.
|
||||||
| ~m g b~ | go back to previous location (before last jump) |
|
| ~m g b~ | go back to previous location (before last jump) |
|
||||||
| ~m g g~ | go to things under point |
|
| ~m g g~ | go to things under point |
|
||||||
| ~m g G~ | go to things under point in other window |
|
| ~m g G~ | go to things under point in other window |
|
||||||
|
| ~m g i~ | go to imports |
|
||||||
| ~m g t~ | go to corresponding test file if any |
|
| ~m g t~ | go to corresponding test file if any |
|
||||||
| ~m g u~ | go/find usage of thing under point |
|
| ~m g u~ | go/find usage of thing under point |
|
||||||
|
|
||||||
|
@ -366,6 +368,15 @@ one or more bindings for the same thing
|
||||||
** Refactoring
|
** Refactoring
|
||||||
Refactoring prefix is ~SPC m r~.
|
Refactoring prefix is ~SPC m r~.
|
||||||
|
|
||||||
|
** Imports
|
||||||
|
When =import= management is supported the following key-bindings should be used:
|
||||||
|
|
||||||
|
| Key binding | Description |
|
||||||
|
|-------------+------------------------------------|
|
||||||
|
| ~m i i~ | add import for symbol around point |
|
||||||
|
| ~m i f~ | fix/format imports |
|
||||||
|
| ~m g i~ | go to imports |
|
||||||
|
|
||||||
** Code Formatting
|
** Code Formatting
|
||||||
Major-mode code formatting is under prefix ~SPC m =~.
|
Major-mode code formatting is under prefix ~SPC m =~.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue