Aligned plugin command exec args with args, kwargs

This commit is contained in:
2026-02-24 22:39:07 -06:00
parent 608699c431
commit 6946dde0ad
5 changed files with 15 additions and 5 deletions

View File

@@ -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)

View File

@@ -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")

View File

@@ -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() )

View File

@@ -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")

View File

@@ -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")