From d9cfd808a088ef4226c8d03e50020b6d52909c52 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Tue, 15 May 2018 11:45:50 +0200 Subject: [PATCH] SONAR-10609 add keyboard shortcuts documentation --- .../sonar-docs/src/EmbedDocsSuggestions.json | 15 ++++++- .../src/pages/keyboard-shortcuts.md | 44 +++++++++++++++++++ 2 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 server/sonar-docs/src/pages/keyboard-shortcuts.md diff --git a/server/sonar-docs/src/EmbedDocsSuggestions.json b/server/sonar-docs/src/EmbedDocsSuggestions.json index 7455d98555c..91be7e4892e 100644 --- a/server/sonar-docs/src/EmbedDocsSuggestions.json +++ b/server/sonar-docs/src/EmbedDocsSuggestions.json @@ -7,18 +7,31 @@ { "link": "/documentation/quality-profiles", "text": "Quality Profiles" + }, + { + "link": "/documentation/keyboard-shortcuts", + "text": "Keyboard Shortcuts" } ], "component_measures": [ { "link": "/documentation/fixing-the-water-leak", "text": "Fixing the Water Leak" + }, + { + "link": "/documentation/keyboard-shortcuts", + "text": "Keyboard Shortcuts" } ], "custom_measures": [], "custom_metrics": [], "global_permissions": [], - "issues": [], + "issues": [ + { + "link": "/documentation/keyboard-shortcuts", + "text": "Keyboard Shortcuts" + } + ], "marketplace": [], "overview": [ { diff --git a/server/sonar-docs/src/pages/keyboard-shortcuts.md b/server/sonar-docs/src/pages/keyboard-shortcuts.md new file mode 100644 index 00000000000..3ec59aeeeab --- /dev/null +++ b/server/sonar-docs/src/pages/keyboard-shortcuts.md @@ -0,0 +1,44 @@ +--- +title: Keyboard Shortcuts +--- + +## Global + +| Shortcut | Action | +| -------- | --------------- | +| `s` | open search bar | +| `?` | open help | + +## Issues Page + +| Shortcut | Action | +| ---------------- | --------------------------------------------- | +| `↑` `↓` | navigate between issues | +| `→` | go from the list of issues to the source code | +| `←` | return back to the list | +| `alt` + `↑` `↓` | to navigate issue locations | +| `alt` + `←` `→` | to switch flows | +| `f` | do an issue transition | +| `a` | assign issue | +| `m` | assign issue to the current user | +| `i` | change severity of issue | +| `c` | comment issue | +| `ctrl` + `enter` | submit comment | +| `t` | change tags of issue | + +## Measures Page + +| Shortcut | Action | +| -------- | --------------------------------------------- | +| `↑` `↓` | select files | +| `→` | open file | +| `←` | return back to the list | +| `j` `k` | switch between files | + +## Rules Page + +| Shortcut | Action | +| -------- | --------------------------------------------- | +| `↑` `↓` | navigate between rules | +| `→` | go from the list of rules to the rule details | +| `←` | return back to the list | -- 2.39.5