     isEnabled = false if request.url.match(regexp)
   { isEnabledForUrl: isEnabled }
 
-#
 # Called by the popup UI. Strips leading/trailing whitespace and ignores empty strings.
-#
-addExcludedUrl = (url) ->
+root.addExcludedUrl = (url) ->
   return unless url = url.trim()
 
   excludedUrls = Settings.get("excludedUrls")

    if (getActualKeyStrokeLength(key) == 1)
      singleKeyCommands.push(key)

refreshCompletionKeysAfterMappingSave = ->
  validFirstKeys = {}
  singleKeyCommands = []


saveHelpDialogSettings = (request) ->
  Settings.set("helpDialog_showAdvancedCommands", request.showAdvancedCommands)

# Retrieves the help dialog HTML template from a file, and populates it with the latest keybindings.
# This is called by options.coffee.
root.helpDialogHtml = (showUnboundCommands, showCommandNames, customTitle) ->
  commandsToKey = {}
  for key of Commands.keyToCommandRegistry
    command = Commands.keyToCommandRegistry[key].command
