# Opens URL's in the default web browser
#
# Example:
# > open github.com
# The file ~/github.com does not exist.
# Perhaps you meant 'http://github.com'?
#


def match(command, settings):
    return (command.script.startswith('open')
            and (
                '.com' in command.script
                or '.net' in command.script
                or '.org' in command.script
                or '.ly' in command.script
                or '.io' in command.script
                or '.se' in command.script
                or '.edu' in command.script))


def get_new_command(command, settings):
    return 'open http://' + command.script[5:]

@@ -529,16 +529,148 @@
 r '.edu'
+ in command.script%0A                or '.info' in command.script%0A                or '.me' in command.script%0A                or 'www.'
  in comm

Add a few other common patterns for the open rule