Aligned plugin command exec args with args, kwargs
This commit is contained in:
@@ -47,7 +47,9 @@ class Handler:
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def execute(
|
def execute(
|
||||||
view: any,
|
view: any,
|
||||||
char_str: str
|
char_str: str,
|
||||||
|
*args,
|
||||||
|
**kwargs
|
||||||
):
|
):
|
||||||
logger.debug("Command: Autopairs")
|
logger.debug("Command: Autopairs")
|
||||||
autopairs.handle_word_wrap(view.get_buffer(), char_str)
|
autopairs.handle_word_wrap(view.get_buffer(), char_str)
|
||||||
|
|||||||
@@ -43,7 +43,9 @@ class Plugin(PluginCode):
|
|||||||
class Handler:
|
class Handler:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def execute(
|
def execute(
|
||||||
view: any
|
view: any,
|
||||||
|
*args,
|
||||||
|
**kwargs
|
||||||
):
|
):
|
||||||
logger.debug("Command: Toggle Colorize")
|
logger.debug("Command: Toggle Colorize")
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,9 @@ class Plugin(PluginCode):
|
|||||||
class Handler:
|
class Handler:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def execute(
|
def execute(
|
||||||
view: any
|
view: any,
|
||||||
|
*args,
|
||||||
|
**kwargs
|
||||||
):
|
):
|
||||||
logger.debug("Command: Toggle Comment")
|
logger.debug("Command: Toggle Comment")
|
||||||
commenter.keyboard_tggl_comment( view.get_buffer() )
|
commenter.keyboard_tggl_comment( view.get_buffer() )
|
||||||
@@ -57,7 +57,9 @@ class Plugin(PluginCode):
|
|||||||
class Handler:
|
class Handler:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def execute(
|
def execute(
|
||||||
view: any
|
view: any,
|
||||||
|
*args,
|
||||||
|
**kwargs
|
||||||
):
|
):
|
||||||
logger.debug("Command: Markdown Preview")
|
logger.debug("Command: Markdown Preview")
|
||||||
|
|
||||||
|
|||||||
@@ -56,7 +56,9 @@ class Plugin(PluginCode):
|
|||||||
class Handler:
|
class Handler:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def execute(
|
def execute(
|
||||||
view: any
|
view: any,
|
||||||
|
*args,
|
||||||
|
**kwargs
|
||||||
):
|
):
|
||||||
logger.debug("Command: Search/Replace")
|
logger.debug("Command: Search/Replace")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user