Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Commit

Permalink
Add keyboard shortcuts for clearing the console
Browse files Browse the repository at this point in the history
Summary:
This adds a keyboard shortcut for clearing the console that matches Chrome's. A few things to note:

1. It's global (instead of being scoped to the input prompt).
2. Even though it's preferable, we don't use ⌘K because of its conflicts with partially matching pane moving shortcuts. Also, it's currently broken due to atom/atom-keymap#129.

Changelog: Add keyboard shortcut for clearing the console

Reviewed By: jgebhardt

Differential Revision: D3825846

fbshipit-source-id: e9970739ecf9fd78b6b2a87449503c20410aa2cc
  • Loading branch information
matthewwithanm authored and Facebook Github Bot committed Sep 8, 2016
1 parent f06c5a5 commit 1d8ed7b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/nuclide-console/keymaps/nuclide-console.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,11 @@
},
".platform-win32 atom-workspace, .platform-linux atom-workspace": {
"ctrl-shift-j": "nuclide-console:toggle"
},
".platform-darwin atom-workspace": {
"ctrl-l": "nuclide-console:clear"
},
".platform-win32 atom-workspace, .platform-linux atom-workspace": {
"ctrl-l": "nuclide-console:clear"
}
}

0 comments on commit 1d8ed7b

Please sign in to comment.