Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
0050e248
Commit
0050e248
authored
Aug 21, 2020
by
Dylan Griffith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add `/` as keyboard shortcut for search
parent
aa02b081
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
1 deletion
+9
-1
app/assets/javascripts/behaviors/shortcuts/shortcuts.js
app/assets/javascripts/behaviors/shortcuts/shortcuts.js
+1
-0
app/views/help/_shortcuts.html.haml
app/views/help/_shortcuts.html.haml
+2
-0
changelogs/unreleased/239195-slash-to-start-search-shortcut.yml
...logs/unreleased/239195-slash-to-start-search-shortcut.yml
+5
-0
doc/user/shortcuts.md
doc/user/shortcuts.md
+1
-1
No files found.
app/assets/javascripts/behaviors/shortcuts/shortcuts.js
View file @
0050e248
...
@@ -34,6 +34,7 @@ export default class Shortcuts {
...
@@ -34,6 +34,7 @@ export default class Shortcuts {
Mousetrap
.
bind
(
'
?
'
,
this
.
onToggleHelp
);
Mousetrap
.
bind
(
'
?
'
,
this
.
onToggleHelp
);
Mousetrap
.
bind
(
'
s
'
,
Shortcuts
.
focusSearch
);
Mousetrap
.
bind
(
'
s
'
,
Shortcuts
.
focusSearch
);
Mousetrap
.
bind
(
'
/
'
,
Shortcuts
.
focusSearch
);
Mousetrap
.
bind
(
'
f
'
,
this
.
focusFilter
.
bind
(
this
));
Mousetrap
.
bind
(
'
f
'
,
this
.
focusFilter
.
bind
(
this
));
Mousetrap
.
bind
(
'
p b
'
,
Shortcuts
.
onTogglePerfBar
);
Mousetrap
.
bind
(
'
p b
'
,
Shortcuts
.
onTogglePerfBar
);
...
...
app/views/help/_shortcuts.html.haml
View file @
0050e248
...
@@ -40,6 +40,8 @@
...
@@ -40,6 +40,8 @@
%tr
%tr
%td
.shortcut
%td
.shortcut
%kbd
s
%kbd
s
\/
%kbd
/
%td
=
_
(
'Start search'
)
%td
=
_
(
'Start search'
)
%tr
%tr
%td
.shortcut
%td
.shortcut
...
...
changelogs/unreleased/239195-slash-to-start-search-shortcut.yml
0 → 100644
View file @
0050e248
---
title
:
Add `/` as keyboard shortcut for search
merge_request
:
40057
author
:
type
:
added
doc/user/shortcuts.md
View file @
0050e248
...
@@ -27,7 +27,7 @@ These shortcuts are available in most areas of GitLab
...
@@ -27,7 +27,7 @@ These shortcuts are available in most areas of GitLab
|
<kbd>
Shift
</kbd>
+
<kbd>
a
</kbd>
| Go to your Activity page. |
|
<kbd>
Shift
</kbd>
+
<kbd>
a
</kbd>
| Go to your Activity page. |
|
<kbd>
Shift
</kbd>
+
<kbd>
l
</kbd>
| Go to your Milestones page. |
|
<kbd>
Shift
</kbd>
+
<kbd>
l
</kbd>
| Go to your Milestones page. |
|
<kbd>
Shift
</kbd>
+
<kbd>
s
</kbd>
| Go to your Snippets page. |
|
<kbd>
Shift
</kbd>
+
<kbd>
s
</kbd>
| Go to your Snippets page. |
|
<kbd>
s
</kbd>
| Put cursor in the issues/merge requests search
. |
|
<kbd>
s
</kbd>
/
<kbd>
/
</kbd>
| Put cursor in the search bar
. |
|
<kbd>
Shift
</kbd>
+
<kbd>
i
</kbd>
| Go to your Issues page. |
|
<kbd>
Shift
</kbd>
+
<kbd>
i
</kbd>
| Go to your Issues page. |
|
<kbd>
Shift
</kbd>
+
<kbd>
m
</kbd>
| Go to your Merge requests page.|
|
<kbd>
Shift
</kbd>
+
<kbd>
m
</kbd>
| Go to your Merge requests page.|
|
<kbd>
Shift
</kbd>
+
<kbd>
t
</kbd>
| Go to your To-Do List page. |
|
<kbd>
Shift
</kbd>
+
<kbd>
t
</kbd>
| Go to your To-Do List page. |
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment