| Commit message (Collapse) | Author | Files | ||
|---|---|---|---|---|
| 2024-12-22 | added image generation | Martin Bielik | 1 | |
| 2024-12-17 | special role | Martin Bielik | 1 | |
| 2024-12-17 | introduced pre-defined default roles | Martin Bielik | 1 | |
| 2024-12-16 | command-type only roles | Martin Bielik | 1 | |
| 2024-12-16 | new role syntax | Martin Bielik | 1 | |
| 2024-12-16 | refactoring: import python when needed, run as functions | Martin Bielik | 1 | |
| 2024-03-24 | reusing parsing code | Martin Bielik | 1 | |
| 2024-03-11 | optionally supplement roles dict by vim function source | Konfekt | 1 | |
| The application was restricted to loading role configurations only from a predefined config file, which limited extensibility. Enable dynamic role configuration by invoking a custom Vim function if it is defined. This allows users to extend the role configurations beyond the static file. diff --git a/doc/vim-ai.txt b/doc/vim-ai.txt: -The roles in g:vim_ai_roles_config_file are converted to a Vim dictionary. -Optionally, additional roles can be added by defining a function VimAIRoleParser() -whose output is a dictionary of the same format as g:vim_ai_roles_config_file. - diff --git a/py/roles.py b/py/roles.py: -if vim.eval('exists("*VimAIRoleParser")'): - roles.update(vim.eval('VimAIRoleParser()')) - diff --git a/py/utils.py b/py/utils.py: - if vim.eval('exists("*VimAIRoleParser")'): - roles.update(vim.eval('VimAIRoleParser()')) - | ||||
| 2024-03-10 | Ensure role config file exists before loading to prevent errors | Konfekt | 1 | |
| The problem was that the application tried to load a roles configuration file without checking whether it actually exists, potentially leading to unhandled exceptions if the file is missing. Ensure that the roles configuration file exists before attempting to read from it; raise an exception with a clear message if the file is not found. diff --git a/py/roles.py b/py/roles.py: -if not os.path.exists(roles_config_path): - raise Exception(f"Role config file does not exist: {roles_config_path}") - | ||||
| 2024-03-09 | roles example file | Martin Bielik | 1 | |
| 2024-03-09 | roles completion | Martin Bielik | 1 | |