Added sommand to save file you are working on 'save'

master
Jeremy 2021-02-25 10:34:43 -06:00
parent 2d9fc8c7a5
commit 3f13cfa421
3 changed files with 6 additions and 5 deletions

View File

@ -20,6 +20,7 @@ class UsefulStuff(MappingRule):
"east": Key("end"), "east": Key("end"),
"west": Key("home"), "west": Key("home"),
"format": Key("ctrl") + Key("alt") + Key("b"), "format": Key("ctrl") + Key("alt") + Key("b"),
"save": Key("ctrl") + Key("s")
} }
globalStuff = Grammar("useful custom global commands") # Create a grammar to contain the command rule. globalStuff = Grammar("useful custom global commands") # Create a grammar to contain the command rule.

View File

@ -83,11 +83,11 @@ class JavaScriptMiscellaneousStuff(MappingRule):
class JavaScriptComparisonOperators(MappingRule): class JavaScriptComparisonOperators(MappingRule):
mapping = { mapping = {
"equal to": Text("=="), "equal to|is it": Text("=="),
"exactly equal to": Text("==="), "exactly equal to|for sure": Text("==="),
"(not equal to|bang it)": Text("!="), "(not equal to|bang it)": Text("!="),
"greater than": Text(">"), "greater than|pack man left": Text(">"),
"less than": Text("<"), "less than|pack man right": Text("<"),
"greater than or equal to": Text(">="), "greater than or equal to": Text(">="),
"less than or equal to": Text("<="), "less than or equal to": Text("<="),
"(lake|open curly)": Text("{"), "(lake|open curly)": Text("{"),

View File

@ -1,4 +1,4 @@
# Author:Brandon Lovrien # Author:Jeremy Hayes
# This script is to be used for programming in the Julia programming language # This script is to be used for programming in the Julia programming language
from dragonfly import (Grammar, CompoundRule, Dictation, Text, Key, AppContext, MappingRule) from dragonfly import (Grammar, CompoundRule, Dictation, Text, Key, AppContext, MappingRule)