1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-18 04:05:46 +01:00

Don't force help initialization until we see something that looks like a help link. Other small interface changes.

This commit is contained in:
Kris Maglione
2011-01-21 05:27:15 -05:00
parent 2af9754509
commit d71320aa09
8 changed files with 68 additions and 47 deletions

View File

@@ -450,10 +450,13 @@ var Styles = Module("Styles", {
bang: true,
completer: function (context, args) {
let compl = [];
if (args.completeArg == 0)
Styles.completeSite(context, window.content);
let sheet = styles.user.get(args["-name"]);
if (args.completeArg == 0) {
if (sheet)
context.completions = [[sheet.sites.join(","), "Current Value"]];
context.fork("sites", 0, Styles, "completeSite", window.content);
}
else if (args.completeArg == 1) {
let sheet = styles.user.get(args["-name"]);
if (sheet)
context.completions = [[sheet.css, "Current Value"]];
context.fork("css", 0, modules.completion, "css");