user.lang.tags.functions.py
Modules
Actions
- user.code_default_function(text: str)
Inserts function declaration
- user.code_insert_named_argument(parameter_name: str)
Inserts a named argument
- user.code_insert_return_type(type: str)
Inserts a return type
- user.code_insert_type_annotation(type: str)
Inserts a type annotation
- user.code_modified_function(modifiers: list[str] | int, text: str)
Inserts function declaration with the given modifiers. modifiers == 0 implies no modifiers (.talon files don't have empty list literal syntax)
- user.code_private_function(text: str)
Inserts private function declaration
- user.code_private_function_formatter(name: str)
Inserts private function name with formatter
- user.code_private_static_function(text: str)
Inserts private static function
- user.code_private_variable_formatter(name: str)
inserts properly formatted private function name
- user.code_protected_function(text: str)
Inserts protected function declaration
- user.code_protected_function_formatter(name: str)
inserts properly formatted private function name
- user.code_protected_static_function(text: str)
Inserts public function
- user.code_protected_variable_formatter(name: str)
inserts properly formatted private function name
- user.code_public_function(text: str)
Inserts public function
- user.code_public_function_formatter(name: str)
inserts properly formatted private function name
- user.code_public_static_function(text: str)
Inserts public function
- user.code_public_variable_formatter(name: str)
inserts properly formatted private function name
Captures
- user.code_type: str
- {user.code_type}
Returns a macro name
Lists
- user.code_type
List of types for active language
- user.code_parameter_name
List of common parameter names for active language
- user.code_function_modifier
List of function modifiers (e.g. private, async, static)
'pub' 'public' 'pro' 'protected' 'private' 'private' 'static' 'static'
Settings
- user.code_private_function_formatter: str
- user.code_protected_function_formatter: str
- user.code_public_function_formatter: str
- user.code_private_variable_formatter: str
- user.code_protected_variable_formatter: str
- user.code_public_variable_formatter: str
Tags
- user.code_functions
Tag for enabling commands for functions