summaryrefslogtreecommitdiff
path: root/autoload (follow)
Commit message (Collapse)AuthorAgeFiles
* chore: rebase and fix up conflictsMax Resnick2025-01-311
|
* added image generationMartin Bielik2024-12-222
|
* fixed default complete configMartin Bielik2024-12-211
|
* new utility commandsMartin Bielik2024-12-171
|
* replace :AINew with default roles, closes #97Martin Bielik2024-12-172
|
* simplified new role syntaxMartin Bielik2024-12-171
|
* command-type only rolesMartin Bielik2024-12-161
|
* refactoring: import python when needed, run as functionsMartin Bielik2024-12-161
|
* refactoring: make prompt in pythonMartin Bielik2024-12-151
|
* unified config parsing + testsMartin Bielik2024-12-151
|
* allow passing single line rangeMartin Bielik2024-12-101
|
* don't include not selected line, refactor ranges, fixes #112Martin Bielik2024-12-081
|
* improved initial message configMartin Bielik2024-12-071
|
* allow override global token configMartin Bielik2024-12-061
|
* moving from legacy completions apiMartin Bielik2024-12-051
|
* docu new optionsMartin Bielik2024-12-031
|
* o1 support - max_completion_tokensMartin Bielik2024-12-031
|
* remove useless buffer in keep open modeMartin Bielik2024-07-291
|
* private MakeScratchWindow functionMartin Bielik2024-07-251
|
* switch to last created buffer in keep open modeMartin Bielik2024-07-241
|
* allow multiple chats in keep open modeMartin Bielik2024-07-232
|
* added abort flag to the plugin functionsMartin Bielik2024-06-091
|
* handle paste mode in finally blockMartin Bielik2024-06-091
|
* gpt-4o as default chat modelMartin Bielik2024-05-311
|
* define required max_tokens for turbo-instruct modelMartin Bielik2024-05-311
|
* increase token limitEnno2024-04-141
|
* Merge pull request #88 from Konfekt/tabwinMartin Bielik2024-03-241
|\ | | | | detect chat window in other tabs as well
| * refactoring: extracted to helper function, using guardsMartin Bielik2024-03-241
| |
| * retabMartin Bielik2024-03-241
| |
| * Implement smarter AI chat window detection to reuse existing AI chat windows.Konfekt2024-03-111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 wellKonfekt2024-03-101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/pasteMartin Bielik2024-03-241
|\ \ | | | | | | automatically unset &paste also after failed command
| * | consistent execution delimiterMartin Bielik2024-03-241
| | |
| * | automatically unset &paste also after failed commandKonfekt2024-03-141
| |/
* | removed unused logMartin Bielik2024-03-091
| |
* | roles example fileMartin Bielik2024-03-092
| |
* | roles completionMartin Bielik2024-03-091
|/
* removed unused variableMartin Bielik2024-03-091
|
* Merge pull request #84 from Konfekt/rangeMartin Bielik2024-03-091
|\ | | | | allow overriding range if called on visual selection
| * remove garbled textKonfekt2024-03-091
| |
| * fix typoKonfekt2024-03-091
| |
| * allow overriding range if called on visual selectionKonfekt2024-03-081
| | | | | | | | | | | | | | 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 locationjiangyinzuo2024-03-081
|/
* removed debug logMartin Bielik2024-02-261
|
* apply suggestions of review at PR #77Konfekt2024-02-261
|
* drop superfluous selection argument and fix instruction argumentKonfekt2024-02-261
|
* align AIRedo with AI/AIEdit/ChatKonfekt2024-02-261
| | | | | | | | 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 functionsKonfekt2024-02-261
| | | | addresses https://github.com/madox2/vim-ai/issues/76
* added explaining commentMartin Bielik2023-12-021
|
* fix selection include extra content when the user is in visual modecposture2023-12-021
|