from imports import *
from castervoice.lib import utilities

direction_dict = {
    "duck|doc|dog": "down",
    "neck|Nick": "up",
    "lease": "left",
    "ross": "right",
}
        
class CustomNavigation(MappingRule):

    mapping = {
        "Wendy|windy":
            R(Key("ca-tab")),
             
        "altar|alter [<nn10>]":
            R(Key("alt:down, tab/20:%(nn10)d, alt:up"), rdescript="Core: switch to most recent Windows"),
        "nexy [<nn50>]":
            R(Key("c-pgdown"))*Repeat(extra="nn50"),
        "proxy [<nn50>]":
            R(Key("c-pgup"))*Repeat(extra="nn50"),
        "new (tab|tabby)":
            R(Key("c-t")),
        "close (tab|tabby) [<nn50>]":
            R(Key("c-w/20"))*Repeat(extra="nn50"),
        "close window":
            R(Key("a-f4")),
        'maximize':
            R(Function(utilities.maximize_window)),
        'minimize':
            R(Function(utilities.minimize_window)),
            
        "refresh|reload":
            R(Key("f5")),
        "context menu":
            R(Key("s-f10")),
            
        'save':
            R(Key("c-s"), rspec="save"),
        "find":
            R(Key("c-f")),
        "find next [<nn50>]":
            R(Key("f3"))*Repeat(extra="nn50"),
        "find prior [<nn50>]":
            R(Key("s-f3"))*Repeat(extra="nn50"),
        "find everywhere":
            R(Key("cs-f")),
        "replace":
            R(Key("c-h")),
            
        "select all":
            R(Key("c-a")),
    }
    extras = [
        IntegerRefST("nn10", 1, 11),
        IntegerRefST("nn50", 1, 50),
        Choice("direction", direction_dict),
    ]
    defaults = {
        "nn10": 1,
        "nn50": 1,
    }
    
def get_rule():
    #return CustomNavigation, RuleDetails(name="CustomNavigation", grammar_name="CustomNavigation")
    return CustomNavigation, RuleDetails(name="CustomNavigation")
01c105792c1844fb272a487dcdce79a621ea9703
<mask token>


class CustomNavigation(MappingRule):
    <mask token>
    <mask token>
    <mask token>


<mask token>

<mask token>


class CustomNavigation(MappingRule):
    mapping = {'Wendy|windy': R(Key('ca-tab')), 'altar|alter [<nn10>]': R(
        Key('alt:down, tab/20:%(nn10)d, alt:up'), rdescript=
        'Core: switch to most recent Windows'), 'nexy [<nn50>]': R(Key(
        'c-pgdown')) * Repeat(extra='nn50'), 'proxy [<nn50>]': R(Key(
        'c-pgup')) * Repeat(extra='nn50'), 'new (tab|tabby)': R(Key('c-t')),
        'close (tab|tabby) [<nn50>]': R(Key('c-w/20')) * Repeat(extra=
        'nn50'), 'close window': R(Key('a-f4')), 'maximize': R(Function(
        utilities.maximize_window)), 'minimize': R(Function(utilities.
        minimize_window)), 'refresh|reload': R(Key('f5')), 'context menu':
        R(Key('s-f10')), 'save': R(Key('c-s'), rspec='save'), 'find': R(Key
        ('c-f')), 'find next [<nn50>]': R(Key('f3')) * Repeat(extra='nn50'),
        'find prior [<nn50>]': R(Key('s-f3')) * Repeat(extra='nn50'),
        'find everywhere': R(Key('cs-f')), 'replace': R(Key('c-h')),
        'select all': R(Key('c-a'))}
    extras = [IntegerRefST('nn10', 1, 11), IntegerRefST('nn50', 1, 50),
        Choice('direction', direction_dict)]
    defaults = {'nn10': 1, 'nn50': 1}


<mask token>

<mask token>
direction_dict = {'duck|doc|dog': 'down', 'neck|Nick': 'up', 'lease':
    'left', 'ross': 'right'}


class CustomNavigation(MappingRule):
    mapping = {'Wendy|windy': R(Key('ca-tab')), 'altar|alter [<nn10>]': R(
        Key('alt:down, tab/20:%(nn10)d, alt:up'), rdescript=
        'Core: switch to most recent Windows'), 'nexy [<nn50>]': R(Key(
        'c-pgdown')) * Repeat(extra='nn50'), 'proxy [<nn50>]': R(Key(
        'c-pgup')) * Repeat(extra='nn50'), 'new (tab|tabby)': R(Key('c-t')),
        'close (tab|tabby) [<nn50>]': R(Key('c-w/20')) * Repeat(extra=
        'nn50'), 'close window': R(Key('a-f4')), 'maximize': R(Function(
        utilities.maximize_window)), 'minimize': R(Function(utilities.
        minimize_window)), 'refresh|reload': R(Key('f5')), 'context menu':
        R(Key('s-f10')), 'save': R(Key('c-s'), rspec='save'), 'find': R(Key
        ('c-f')), 'find next [<nn50>]': R(Key('f3')) * Repeat(extra='nn50'),
        'find prior [<nn50>]': R(Key('s-f3')) * Repeat(extra='nn50'),
        'find everywhere': R(Key('cs-f')), 'replace': R(Key('c-h')),
        'select all': R(Key('c-a'))}
    extras = [IntegerRefST('nn10', 1, 11), IntegerRefST('nn50', 1, 50),
        Choice('direction', direction_dict)]
    defaults = {'nn10': 1, 'nn50': 1}


def get_rule():
    return CustomNavigation, RuleDetails(name='CustomNavigation')

from imports import *
from castervoice.lib import utilities
direction_dict = {'duck|doc|dog': 'down', 'neck|Nick': 'up', 'lease':
    'left', 'ross': 'right'}


class CustomNavigation(MappingRule):
    mapping = {'Wendy|windy': R(Key('ca-tab')), 'altar|alter [<nn10>]': R(
        Key('alt:down, tab/20:%(nn10)d, alt:up'), rdescript=
        'Core: switch to most recent Windows'), 'nexy [<nn50>]': R(Key(
        'c-pgdown')) * Repeat(extra='nn50'), 'proxy [<nn50>]': R(Key(
        'c-pgup')) * Repeat(extra='nn50'), 'new (tab|tabby)': R(Key('c-t')),
        'close (tab|tabby) [<nn50>]': R(Key('c-w/20')) * Repeat(extra=
        'nn50'), 'close window': R(Key('a-f4')), 'maximize': R(Function(
        utilities.maximize_window)), 'minimize': R(Function(utilities.
        minimize_window)), 'refresh|reload': R(Key('f5')), 'context menu':
        R(Key('s-f10')), 'save': R(Key('c-s'), rspec='save'), 'find': R(Key
        ('c-f')), 'find next [<nn50>]': R(Key('f3')) * Repeat(extra='nn50'),
        'find prior [<nn50>]': R(Key('s-f3')) * Repeat(extra='nn50'),
        'find everywhere': R(Key('cs-f')), 'replace': R(Key('c-h')),
        'select all': R(Key('c-a'))}
    extras = [IntegerRefST('nn10', 1, 11), IntegerRefST('nn50', 1, 50),
        Choice('direction', direction_dict)]
    defaults = {'nn10': 1, 'nn50': 1}


def get_rule():
    return CustomNavigation, RuleDetails(name='CustomNavigation')

from imports import *
from castervoice.lib import utilities

direction_dict = {
    "duck|doc|dog": "down",
    "neck|Nick": "up",
    "lease": "left",
    "ross": "right",
}
        
class CustomNavigation(MappingRule):

    mapping = {
        "Wendy|windy":
            R(Key("ca-tab")),
             
        "altar|alter [<nn10>]":
            R(Key("alt:down, tab/20:%(nn10)d, alt:up"), rdescript="Core: switch to most recent Windows"),
        "nexy [<nn50>]":
            R(Key("c-pgdown"))*Repeat(extra="nn50"),
        "proxy [<nn50>]":
            R(Key("c-pgup"))*Repeat(extra="nn50"),
        "new (tab|tabby)":
            R(Key("c-t")),
        "close (tab|tabby) [<nn50>]":
            R(Key("c-w/20"))*Repeat(extra="nn50"),
        "close window":
            R(Key("a-f4")),
        'maximize':
            R(Function(utilities.maximize_window)),
        'minimize':
            R(Function(utilities.minimize_window)),
            
        "refresh|reload":
            R(Key("f5")),
        "context menu":
            R(Key("s-f10")),
            
        'save':
            R(Key("c-s"), rspec="save"),
        "find":
            R(Key("c-f")),
        "find next [<nn50>]":
            R(Key("f3"))*Repeat(extra="nn50"),
        "find prior [<nn50>]":
            R(Key("s-f3"))*Repeat(extra="nn50"),
        "find everywhere":
            R(Key("cs-f")),
        "replace":
            R(Key("c-h")),
            
        "select all":
            R(Key("c-a")),
    }
    extras = [
        IntegerRefST("nn10", 1, 11),
        IntegerRefST("nn50", 1, 50),
        Choice("direction", direction_dict),
    ]
    defaults = {
        "nn10": 1,
        "nn50": 1,
    }
    
def get_rule():
    #return CustomNavigation, RuleDetails(name="CustomNavigation", grammar_name="CustomNavigation")
    return CustomNavigation, RuleDetails(name="CustomNavigation")