From 88fc854b36bf5f6b3f753d1d6ab4fdcc94a16d41 Mon Sep 17 00:00:00 2001 From: Vincent Le Goff Date: Sat, 11 Feb 2017 14:45:40 -0800 Subject: [PATCH] Change commands to :< and :> in EvEditor (code mode) --- evennia/utils/eveditor.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/evennia/utils/eveditor.py b/evennia/utils/eveditor.py index 0038fbcc68..81c1dc4477 100644 --- a/evennia/utils/eveditor.py +++ b/evennia/utils/eveditor.py @@ -115,8 +115,8 @@ _HELP_LEGEND = \ _HELP_CODE = \ """ - :- - Decrease the level of automatic indentation for the next lines - :+ - Increase the level of automatic indentation for the next lines + :< - Decrease the level of automatic indentation for the next lines + :> - Increase the level of automatic indentation for the next lines := - Switch automatic indentation on/off """.strip("\n") @@ -415,7 +415,7 @@ class CmdEditorGroup(CmdEditorBase): aliases = [":","::", ":::", ":h", ":w", ":wq", ":q", ":q!", ":u", ":uu", ":UU", ":dd", ":dw", ":DD", ":y", ":x", ":p", ":i", ":j", ":r", ":I", ":A", ":s", ":S", ":f", ":fi", ":fd", ":echo", - ":-", ":+", ":="] + ":<", ":>", ":="] arg_regex = r"\s.*?|$" def func(self): @@ -652,8 +652,8 @@ class CmdEditorGroup(CmdEditorBase): # set echoing on/off editor._echo_mode = not editor._echo_mode caller.msg("Echo mode set to %s" % editor._echo_mode) - elif cmd == ":-": - # :- + elif cmd == ":<": + # :< if editor._code: editor.decrease_indent() indent = editor._indent @@ -664,8 +664,8 @@ class CmdEditorGroup(CmdEditorBase): caller.msg("|rManual indentation is OFF.|n Use := to turn it on.") else: caller.msg("This is not a code editor, you cannot use this option.") - elif cmd == ":+": - # :+ + elif cmd == ":>": + # :> if editor._code: editor.increase_indent() indent = editor._indent