mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-14 06:45:51 +01:00
:emenu: Hide hidden items, disable disabled items. Closes issue #582.
This commit is contained in:
@@ -338,7 +338,7 @@ var CompletionContext = Class("CompletionContext", {
|
||||
* The prototype object for items returned by {@link items}.
|
||||
*/
|
||||
get itemPrototype() {
|
||||
let res = {};
|
||||
let res = { highlight: "" };
|
||||
function result(quote) {
|
||||
yield ["result", quote ? function () quote[0] + util.trapErrors(1, quote, this.text) + quote[2]
|
||||
: function () this.text];
|
||||
|
||||
@@ -468,6 +468,8 @@ var ConfigBase = Class("ConfigBase", {
|
||||
color: red !important; background: white !important;
|
||||
StatusWarningMsg /* A warning message in the status line */ \
|
||||
color: red !important; background: transparent !important;
|
||||
Disabled /* Disabled items */ \
|
||||
color: gray !important;
|
||||
|
||||
CmdLine;>*;;FontFixed /* The command line */ \
|
||||
padding: 1px !important;
|
||||
|
||||
@@ -197,7 +197,7 @@ var Template = Module("Template", {
|
||||
- from pushing the baseline down and enlarging
|
||||
- the row.
|
||||
-->
|
||||
<li highlight="CompResult">{text} </li>
|
||||
<li highlight={"CompResult " + item.highlight}>{text} </li>
|
||||
<li highlight="CompDesc">{desc} </li>
|
||||
</div>;
|
||||
// </e4x>
|
||||
|
||||
Reference in New Issue
Block a user