File tree Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -487,7 +487,7 @@ const Hints = Module("hints", {
487
487
this . _setClass ( hint . imgSpan , activeHint = = hintnum ) ;
488
488
}
489
489
490
- hint . span . setAttribute ( "number" , hint . showText ? hintnumchars + ": " + hint . text . substr ( 0 , 50 ) : hintnumchars ) ;
490
+ hint . span . setAttribute ( "number" , hint . showText && options . showtexthints ? hintnumchars + ": " + hint . text . substr ( 0 , 50 ) : hintnumchars ) ;
491
491
if ( hint . imgSpan )
492
492
hint . imgSpan . setAttribute ( "number" , hintnumchars ) ;
493
493
else
@@ -1367,6 +1367,10 @@ const Hints = Module("hints", {
1367
1367
[ "name" , "Match against the name of an input field, only if neither a name or value could be found." ]
1368
1368
]
1369
1369
} ) ;
1370
+
1371
+ options . add ( [ "showtexthints" , "sth" ] ,
1372
+ "Whether to show text picked by :hintinputs" ,
1373
+ "boolean" , true ) ;
1370
1374
}
1371
1375
} ) ;
1372
1376
Original file line number Diff line number Diff line change 581
581
</description >
582
582
</item >
583
583
584
+ <item >
585
+ <tags >'sth' 'showtexthints'</tags >
586
+ <spec >'showtexthints' 'sth'</spec >
587
+ <type >boolean</type >
588
+ <default >on</default >
589
+ <description >
590
+ <p >Whether to show text picked by <ex >:hintinputs</ex > after the hint label.</p >
591
+ </description >
592
+ </item >
593
+
584
594
585
595
<item >
586
596
<tags >'hm' 'hintmatching'</tags >
Original file line number Diff line number Diff line change 570
570
</description >
571
571
</item >
572
572
573
+ <item >
574
+ <tags >'sth' 'showtexthints'</tags >
575
+ <spec >'showtexthints' 'sth'</spec >
576
+ <type >boolean</type >
577
+ <default >off</default >
578
+ <description >
579
+ <p ><ex >:hintinputs</ex >のテクストを見せますかどうか。</p >
580
+ </description >
581
+ </item >
582
+
573
583
574
584
<item >
575
585
<tags >'hm' 'hintmatching'</tags >
You can’t perform that action at this time.
0 commit comments