File tree Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 4
4
// - advanced: advanced commands are not shown in the help dialog by default.
5
5
// - background: whether this command has to be run by the background page.
6
6
// - desc: shown in the help dialog and command listing page.
7
+ // - details: extra help information that will only be shown on the command listing page.
7
8
// - group: commands are displayed in groups in the help dialog and command listing.
8
9
// - noRepeat: whether this command can be used with a count key prefix.
9
10
// - repeatLimit: the number of allowed repetitions of this command before the user is prompted for
@@ -261,8 +262,8 @@ const allCommands = [
261
262
262
263
{
263
264
name : "Marks.activateCreateMode" ,
264
- desc :
265
- "Create a new mark. Do this by typing the key bound to this command, and then a letter. " +
265
+ desc : "Create a new mark" ,
266
+ details : " Do this by typing the key bound to this command, and then a letter. " +
266
267
"This will set a mark bound to that letter. Lowercase letters are local marks and uppercase " +
267
268
"letters are global marks." ,
268
269
options : {
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ h3 code {
68
68
margin-right : auto;
69
69
}
70
70
71
- p .desc {
71
+ p .desc , p . details {
72
72
margin-left : 1rem ;
73
73
}
74
74
Original file line number Diff line number Diff line change 39
39
< span class ="key-bindings "> </ span >
40
40
</ h3 >
41
41
< p class ="desc "> Example description.</ p >
42
+ < p class ="details "> </ p >
42
43
< div class ="options ">
43
44
< p > < strong > Options</ strong > </ p >
44
45
< ul > </ ul >
Original file line number Diff line number Diff line change @@ -53,6 +53,9 @@ async function populatePage() {
53
53
}
54
54
55
55
el . querySelector ( ".desc" ) . textContent = command . desc ;
56
+ if ( command . details ) {
57
+ el . querySelector ( ".details" ) . textContent = command . details ;
58
+ }
56
59
57
60
if ( command . options ) {
58
61
const ul = el . querySelector ( ".options ul" ) ;
You can’t perform that action at this time.
0 commit comments