• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mizchi / next-editor / 1409

pending completion
1409

Pull #349

circleci

web-flow
chore(deps): update babel monorepo
Pull Request #349: chore(deps): update babel monorepo

95 of 450 branches covered (21.11%)

Branch coverage included in aggregate %.

967 of 2058 relevant lines covered (46.99%)

1.93 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/ui/components/utils/commandMap.ts
1
import actions from "../../actionCreators"
×
2

3
type MousetrapExpr = string | string[]
4

5
export const setLayoutMode1 = "setLayoutMode1"
×
6
export const setLayoutMode2 = "setLayoutMode2"
×
7
export const setLayoutMode3 = "setLayoutMode3"
×
8
export const setLayoutMode4 = "setLayoutMode4"
×
9
export const saveCurrentFile = "saveCurrentFile"
×
10
export const commitAll = "commitAll"
×
11

12
export const implCommandMap: {
×
13
  [event: string]: (dispatch: any, event: any) => void
14
} = {
15
  [setLayoutMode1]: dispatch => {
16
    dispatch(actions.app.setLayout1({}))
×
17
  },
18
  [setLayoutMode2]: dispatch => {
19
    dispatch(actions.app.setLayout2({}))
×
20
  },
21
  [setLayoutMode3]: dispatch => {
22
    dispatch(actions.app.setLayout3({}))
×
23
  },
24
  [setLayoutMode4]: dispatch => {
25
    dispatch(actions.app.setLayout4({}))
×
26
  },
27
  [saveCurrentFile]: (dispatch, event) => {
28
    event.preventDefault()
×
29
    dispatch(actions.buffer.saveFile({}))
×
30
  },
31
  [commitAll]: dispatch => {
32
    dispatch(actions.git.commitAll({ message: "Update" }))
×
33
  }
34
}
35

36
export const defaultKeyMap: {
×
37
  [commandName: string]: MousetrapExpr | null
38
} = {
39
  [setLayoutMode1]: "ctrl+1",
40
  [setLayoutMode2]: "ctrl+2",
41
  [setLayoutMode3]: "ctrl+3",
42
  [setLayoutMode4]: "ctrl+4",
43
  [saveCurrentFile]: "command+s",
44
  [commitAll]: "command+shift+s"
45
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc