Improve comments a bit

This commit is contained in:
Maddison Hellstrom 2017-09-17 16:33:01 -07:00
parent 0567ed4d58
commit f9193ffb0e
1 changed files with 7 additions and 5 deletions

12
conf.js
View File

@ -1,3 +1,4 @@
//---- Cleanup ----//
// Unmap undesired defaults // Unmap undesired defaults
var unmaps = [ "sb" , "sw", "ob" var unmaps = [ "sb" , "sw", "ob"
, "ow" , "cp", ";cp" , "ow" , "cp", ";cp"
@ -24,13 +25,13 @@ Object.keys(rmSearchAliases).forEach(function(k) {
}); });
}); });
// Settings //---- Settings ----//
settings.hintAlign = "left"; settings.hintAlign = "left";
settings.omnibarSuggestionTimeout = 500; settings.omnibarSuggestionTimeout = 500;
settings.hintGroups = true; settings.hintGroups = true;
settings.hintGroupStart = "middle"; settings.hintGroupStart = "middle";
// Maps //---- Maps ----//
// Left-hand aliases // Left-hand aliases
// Movement // Movement
map('w', 'k'); map('w', 'k');
@ -46,7 +47,8 @@ map('H', 'S');
map('L', 'D'); map('L', 'D');
// Mapkeys //---- Mapkeys ----//
// Helper function to generate mapkey opts
function rid(d) { return { repeatIgnore: true, domain: d }; } function rid(d) { return { repeatIgnore: true, domain: d }; }
mapkey('=w', "Lookup whois information for domain", whois, rid()); mapkey('=w', "Lookup whois information for domain", whois, rid());
@ -66,7 +68,7 @@ mapkey('\\c', "Collapse comment (HN)", hnCollapseComment
mapkey('\\v', "Cast vote (Reddit)", redditVote, rid(/(reddit\.com)/i)); mapkey('\\v', "Cast vote (Reddit)", redditVote, rid(/(reddit\.com)/i));
mapkey('\\v', "Cast vote (HN)", hnVote, rid(/(news\.ycombinator\.com)/i)); mapkey('\\v', "Cast vote (HN)", hnVote, rid(/(news\.ycombinator\.com)/i));
// Search & completion //---- Search & completion ----//
// Search leader // Search leader
let sl = 'a'; let sl = 'a';
@ -792,7 +794,7 @@ for(var i = 0; i < search.length; i++) {
mapkey(la, '#8Search ' + s.name, 'Front.openOmnibar({type: "SearchEngine", extra: "' + s.alias + '"})'); mapkey(la, '#8Search ' + s.name, 'Front.openOmnibar({type: "SearchEngine", extra: "' + s.alias + '"})');
} }
// Functions //---- Functions ----//
function fakeSpot() { function fakeSpot() {
var url = "http://fakespot.com/analyze?url=" + window.location.href; var url = "http://fakespot.com/analyze?url=" + window.location.href;
window.open(url, '_blank').focus(); window.open(url, '_blank').focus();