Change commands to :< and :> in EvEditor (code mode)
This commit is contained in:
parent
1697263fd7
commit
88fc854b36
1 changed files with 7 additions and 7 deletions
|
|
@ -115,8 +115,8 @@ _HELP_LEGEND = \
|
||||||
|
|
||||||
_HELP_CODE = \
|
_HELP_CODE = \
|
||||||
"""
|
"""
|
||||||
:- - Decrease 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
|
:> - Increase the level of automatic indentation for the next lines
|
||||||
:= - Switch automatic indentation on/off
|
:= - Switch automatic indentation on/off
|
||||||
""".strip("\n")
|
""".strip("\n")
|
||||||
|
|
||||||
|
|
@ -415,7 +415,7 @@ class CmdEditorGroup(CmdEditorBase):
|
||||||
aliases = [":","::", ":::", ":h", ":w", ":wq", ":q", ":q!", ":u", ":uu", ":UU",
|
aliases = [":","::", ":::", ":h", ":w", ":wq", ":q", ":q!", ":u", ":uu", ":UU",
|
||||||
":dd", ":dw", ":DD", ":y", ":x", ":p", ":i", ":j",
|
":dd", ":dw", ":DD", ":y", ":x", ":p", ":i", ":j",
|
||||||
":r", ":I", ":A", ":s", ":S", ":f", ":fi", ":fd", ":echo",
|
":r", ":I", ":A", ":s", ":S", ":f", ":fi", ":fd", ":echo",
|
||||||
":-", ":+", ":="]
|
":<", ":>", ":="]
|
||||||
arg_regex = r"\s.*?|$"
|
arg_regex = r"\s.*?|$"
|
||||||
|
|
||||||
def func(self):
|
def func(self):
|
||||||
|
|
@ -652,8 +652,8 @@ class CmdEditorGroup(CmdEditorBase):
|
||||||
# set echoing on/off
|
# set echoing on/off
|
||||||
editor._echo_mode = not editor._echo_mode
|
editor._echo_mode = not editor._echo_mode
|
||||||
caller.msg("Echo mode set to %s" % editor._echo_mode)
|
caller.msg("Echo mode set to %s" % editor._echo_mode)
|
||||||
elif cmd == ":-":
|
elif cmd == ":<":
|
||||||
# :-
|
# :<
|
||||||
if editor._code:
|
if editor._code:
|
||||||
editor.decrease_indent()
|
editor.decrease_indent()
|
||||||
indent = editor._indent
|
indent = editor._indent
|
||||||
|
|
@ -664,8 +664,8 @@ class CmdEditorGroup(CmdEditorBase):
|
||||||
caller.msg("|rManual indentation is OFF.|n Use := to turn it on.")
|
caller.msg("|rManual indentation is OFF.|n Use := to turn it on.")
|
||||||
else:
|
else:
|
||||||
caller.msg("This is not a code editor, you cannot use this option.")
|
caller.msg("This is not a code editor, you cannot use this option.")
|
||||||
elif cmd == ":+":
|
elif cmd == ":>":
|
||||||
# :+
|
# :>
|
||||||
if editor._code:
|
if editor._code:
|
||||||
editor.increase_indent()
|
editor.increase_indent()
|
||||||
indent = editor._indent
|
indent = editor._indent
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue