// TODO: This file was created by bulk-decaffeinate. // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * DS205: Consider reworking code to avoid use of IIFEs * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md */ app.templates.helpPage = function () { let key, value; const ctrlKey = $.isMac() ? "cmd" : "ctrl"; const navKey = $.isMac() ? "cmd" : "alt"; const arrowScroll = app.settings.get("arrowScroll"); const aliases_one = {}; const aliases_two = {}; const keys = Object.keys(app.models.Entry.ALIASES); const middle = Math.ceil(keys.length / 2) - 1; for (let i = 0; i < keys.length; i++) { key = keys[i]; (i > middle ? aliases_two : aliases_one)[key] = app.models.Entry.ALIASES[key]; } return `\
Documentations can be enabled and disabled in the Preferences. Alternatively, you can enable a documentation by searching for it in the main search and clicking the "Enable" link in the results. For faster and better search, only enable the documentations you plan on actively using.
Once a documentation is enabled, it becomes part of the search and its content can be downloaded for offline access — and faster page loads when online — in the Offline area.
The search is case-insensitive and ignores whitespace. It supports fuzzy matching
(e.g. bgcp
matches background-clip
)
as well as aliases (full list below).
tab
(space
on mobile).
For example, to search the JavaScript documentation, enter javascript
or js
, then tab
.backspace
or
esc
.
#q=
will be used as search query.tab
when devdocs.io is autocompleted
in the omnibox (to set a custom keyword, click Manage search engines\u2026 in Chrome's settings).
Note: the above search features only work for documentations that are enabled.
shift
+ ' : ""}
↓
↑
shift
+ ' : ""}
→
←
enter
${ctrlKey} + enter
alt + r
${navKey} + ←
${navKey} + →
↓
' +
'↑
'
: 'alt + ↓
' +
'alt + ↑
' +
"shift + ↓
' +
'shift + ↑
'
}
space
shift + space
${ctrlKey} + ↑
${ctrlKey} + ↓
alt + f
ctrl + ,
esc
?
alt + c
alt + o
alt + g
alt + s
alt + d
Tip: If the cursor is no longer in the search field, press /
or
continue to type and it will refocus the search field and start showing new results.
Word | Alias ${(() => { const result = []; for (key in aliases_one) { value = aliases_one[key]; result.push( ` |
---|---|
${key} | ${value}`, ); } return result; })().join("")} |
Word | Alias ${(() => { const result1 = []; for (key in aliases_two) { value = aliases_two[key]; result1.push( ` |
---|---|
${key} | ${value}`, ); } return result1; })().join("")} |
Feel free to suggest new aliases on GitHub.\ `; };