| Commit message (Collapse) | Author | Age | Files | |
|---|---|---|---|---|
| * | command-type only roles | Martin Bielik | 2024-12-16 | 1 |
| | | ||||
| * | refactoring: import python when needed, run as functions | Martin Bielik | 2024-12-16 | 1 |
| | | ||||
| * | refactoring: make prompt in python | Martin Bielik | 2024-12-15 | 1 |
| | | ||||
| * | unified config parsing + tests | Martin Bielik | 2024-12-15 | 1 |
| | | ||||
| * | allow passing single line range | Martin Bielik | 2024-12-10 | 1 |
| | | ||||
| * | don't include not selected line, refactor ranges, fixes #112 | Martin Bielik | 2024-12-08 | 1 |
| | | ||||
| * | improved initial message config | Martin Bielik | 2024-12-07 | 1 |
| | | ||||
| * | allow override global token config | Martin Bielik | 2024-12-06 | 1 |
| | | ||||
| * | moving from legacy completions api | Martin Bielik | 2024-12-05 | 1 |
| | | ||||
| * | docu new options | Martin Bielik | 2024-12-03 | 1 |
| | | ||||
| * | o1 support - max_completion_tokens | Martin Bielik | 2024-12-03 | 1 |
| | | ||||
| * | remove useless buffer in keep open mode | Martin Bielik | 2024-07-29 | 1 |
| | | ||||
| * | private MakeScratchWindow function | Martin Bielik | 2024-07-25 | 1 |
| | | ||||
| * | switch to last created buffer in keep open mode | Martin Bielik | 2024-07-24 | 1 |
| | | ||||
| * | allow multiple chats in keep open mode | Martin Bielik | 2024-07-23 | 2 |
| | | ||||
| * | added abort flag to the plugin functions | Martin Bielik | 2024-06-09 | 1 |
| | | ||||
| * | handle paste mode in finally block | Martin Bielik | 2024-06-09 | 1 |
| | | ||||
| * | gpt-4o as default chat model | Martin Bielik | 2024-05-31 | 1 |
| | | ||||
| * | define required max_tokens for turbo-instruct model | Martin Bielik | 2024-05-31 | 1 |
| | | ||||
| * | increase token limit | Enno | 2024-04-14 | 1 |
| | | ||||
| * | Merge pull request #88 from Konfekt/tabwin | Martin Bielik | 2024-03-24 | 1 |
| |\ | | | | | detect chat window in other tabs as well | |||
| | * | refactoring: extracted to helper function, using guards | Martin Bielik | 2024-03-24 | 1 |
| | | | ||||
| | * | retab | Martin Bielik | 2024-03-24 | 1 |
| | | | ||||
| | * | Implement smarter AI chat window detection to reuse existing AI chat windows. | Konfekt | 2024-03-11 | 1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First search for AI chat windows within the same tab and then within other tabs if none are found in the current tab. It now prioritizes the reusing of an existing chat window that matches the '.aichat' filetype before considering opening a new one. If there are no existing AI chat windows, the plugin will open a new chat window as a last resort. diff --git a/autoload/vim_ai.vim b/autoload/vim_ai.vim: - " reuse chat in active window or tab + " TODO: look for first active chat buffer. If .aichat file is used, + " then reuse chat in active window - " allow .aichat files windows to be switched to, preferably on same tab - let buffer_list_tab = tabpagebuflist(tabpagenr()) - let buffer_list_tab = filter(buffer_list_tab, 'getbufvar(v:val, "&filetype") ==# "aichat"') - - let buffer_list = [] - for i in range(tabpagenr('$')) - call extend(buffer_list, tabpagebuflist(i + 1)) - endfor - let buffer_list = filter(buffer_list, 'getbufvar(v:val, "&filetype") ==# "aichat"') - - if len(buffer_list_tab) > 0 - call win_gotoid(win_findbuf(buffer_list_tab[0])[0]) - elseif len(buffer_list) > 0 - call win_gotoid(win_findbuf(buffer_list[0])[0]) - else - " open new chat window - let l:open_conf = l:config['ui']['open_chat_command'] - call s:OpenChatWindow(l:open_conf) - endif + " open new chat window + let l:open_conf = l:config['ui']['open_chat_command'] + call s:OpenChatWindow(l:open_conf) | |||
| | * | detect chat window in other tabs as well | Konfekt | 2024-03-10 | 1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | diff --git a/autoload/vim_ai.vim b/autoload/vim_ai.vim: - - let l:chat_win_ids = win_findbuf(bufnr(s:scratch_buffer_name)) - if !empty(l:chat_win_ids) - " TODO: look for first active chat buffer. If .aichat file is used, - " then reuse chat in active window - call win_gotoid(l:chat_win_ids[0]) + let l:chat_win_id = bufwinid(s:scratch_buffer_name) + if l:chat_win_id != -1 + " TODO: look for first active chat buffer, in case .aichat file is used + " reuse chat in active window + call win_gotoid(l:chat_win_id) | |||
| * | | Merge pull request #89 from Konfekt/paste | Martin Bielik | 2024-03-24 | 1 |
| |\ \ | | | | | | | automatically unset &paste also after failed command | |||
| | * | | consistent execution delimiter | Martin Bielik | 2024-03-24 | 1 |
| | | | | ||||
| | * | | automatically unset &paste also after failed command | Konfekt | 2024-03-14 | 1 |
| | |/ | ||||
| * | | removed unused log | Martin Bielik | 2024-03-09 | 1 |
| | | | ||||
| * | | roles example file | Martin Bielik | 2024-03-09 | 2 |
| | | | ||||
| * | | roles completion | Martin Bielik | 2024-03-09 | 1 |
| |/ | ||||
| * | removed unused variable | Martin Bielik | 2024-03-09 | 1 |
| | | ||||
| * | Merge pull request #84 from Konfekt/range | Martin Bielik | 2024-03-09 | 1 |
| |\ | | | | | allow overriding range if called on visual selection | |||
| | * | remove garbled text | Konfekt | 2024-03-09 | 1 |
| | | | ||||
| | * | fix typo | Konfekt | 2024-03-09 | 1 |
| | | | ||||
| | * | allow overriding range if called on visual selection | Konfekt | 2024-03-08 | 1 |
| | | | | | | | | | | | | | | | Check if the start and end line of range equals that of visual selection. If so, take the visual selection; otherwise the supplied range | |||
| * | | feat: add an option to customize api key file location | jiangyinzuo | 2024-03-08 | 1 |
| |/ | ||||
| * | removed debug log | Martin Bielik | 2024-02-26 | 1 |
| | | ||||
| * | apply suggestions of review at PR #77 | Konfekt | 2024-02-26 | 1 |
| | | ||||
| * | drop superfluous selection argument and fix instruction argument | Konfekt | 2024-02-26 | 1 |
| | | ||||
| * | align AIRedo with AI/AIEdit/Chat | Konfekt | 2024-02-26 | 1 |
| | | | | | | | | | These changes were necessary to fix a bug where commands were not being executed correctly in non-visual modes, and to make the code cleaner and more efficient. By explicitly handling the visual selection state, it ensures that the plugin functions correctly regardless of how the user invokes the AI features. | |||
| * | fix selection handling in vim_ai functions | Konfekt | 2024-02-26 | 1 |
| | | | | | addresses https://github.com/madox2/vim-ai/issues/76 | |||
| * | added explaining comment | Martin Bielik | 2023-12-02 | 1 |
| | | ||||
| * | fix selection include extra content when the user is in visual mode | cposture | 2023-12-02 | 1 |
| | | ||||
| * | Merge remote-tracking branch 'origin/main' into base-url-config | Martin Bielik | 2023-10-21 | 1 |
| |\ | ||||
| | * | use gpt-3.5-turbo-instruct by default, closes #48 | Martin Bielik | 2023-09-26 | 1 |
| | | | ||||
| * | | endpoint_url config | Martin Bielik | 2023-10-21 | 1 |
| | | | ||||
| * | | option to disable authorization | Martin Bielik | 2023-10-21 | 1 |
| | | | ||||
| * | | base_url extracted to config, docu | Martin Bielik | 2023-10-21 | 1 |
| |/ | ||||
| * | Allow modification of vim_ai_open_chat_presets | BonaBeavis | 2023-05-07 | 1 |
| | | ||||