Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into feature/insert-context
Browse files Browse the repository at this point in the history
  • Loading branch information
Odie committed Aug 4, 2024
2 parents dbc7df8 + 58f5c85 commit ab6a3d5
Show file tree
Hide file tree
Showing 18 changed files with 2,900 additions and 2,258 deletions.
18 changes: 14 additions & 4 deletions .gp.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,27 @@ end

Module has following structure:
```lua
local _H = {}
local uv = vim.uv or vim.loop

local config = require("gp.config")

local M = {
_H = _H, -- helper functions
_Name = "Gp", -- plugin name
_handles = {}, -- handles for running processes
_queries = {}, -- table of latest queries
_state = {}, -- table of state variables
agents = {}, -- table of agents
cmd = {}, -- default command functions
config = {}, -- config variables
hooks = {}, -- user defined command functions
defaults = require("gp.defaults"), -- some useful defaults
deprecator = require("gp.deprecator"), -- handle deprecated options
helpers = require("gp.helper"), -- helper functions
imager = require("gp.imager"), -- imager module
logger = require("gp.logger"), -- logger module
render = require("gp.render"), -- render module
spinner = require("gp.spinner"), -- spinner module
tasker = require("gp.tasker"), -- tasker module
vault = require("gp.vault"), -- vault module
whisper = require("gp.whisper"), -- whisper module
}
```

59 changes: 59 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,64 @@
# Changelog

## [3.7.0](https://github.com/Robitx/gp.nvim/compare/v3.6.1...v3.7.0) (2024-08-04)


### Features

* remember last chat without symlinks ([#176](https://github.com/Robitx/gp.nvim/issues/176)) ([df9adc2](https://github.com/Robitx/gp.nvim/commit/df9adc22450c052c9228714cde9b9cf90d6ca3e5))
* copilot with gpt4-o ([c782f9a](https://github.com/Robitx/gp.nvim/commit/c782f9ace9c95f42c3e169df8366537d8980a62f))
* better state logging ([63098a5](https://github.com/Robitx/gp.nvim/commit/63098a530a0fd5ba6dae5d7fb45236d9290ac8c2))
* lazy load secrets (issue: [#152](https://github.com/Robitx/gp.nvim/issues/152)) ([4cea5ae](https://github.com/Robitx/gp.nvim/commit/4cea5aecd1bc4ce0081d2407710ba4741f193b6e))
* configurable default agents ([#85](https://github.com/Robitx/gp.nvim/issues/85), [#148](https://github.com/Robitx/gp.nvim/issues/148)) ([49d1986](https://github.com/Robitx/gp.nvim/commit/49d1986aa98ef748397594aa26e137dbc9cb2798))

### Bug Fixes

* skip BufEnter logic if buf already prepared (issue: [#139](https://github.com/Robitx/gp.nvim/issues/139)) ([2c3d818](https://github.com/Robitx/gp.nvim/commit/2c3d818a47a9b156af921c9b768c7a31dcccf00f))

## [3.6.1](https://github.com/Robitx/gp.nvim/compare/v3.6.0...v3.6.1) (2024-08-01)


### Bug Fixes

* remove code remnant ([4c2f1d4](https://github.com/Robitx/gp.nvim/commit/4c2f1d42083905e41fe68f0fe8bc6f1b920b45e5))

## [3.6.0](https://github.com/Robitx/gp.nvim/compare/v3.5.1...v3.6.0) (2024-08-01)


### Features

* configurable zindex with default to 49 (resolve: [#132](https://github.com/Robitx/gp.nvim/issues/132)) ([6dca8ea](https://github.com/Robitx/gp.nvim/commit/6dca8ead9ffcfdb97d09a97369613ddd30170605))


### Bug Fixes

* agent refreshing for default commands ([d5fcd00](https://github.com/Robitx/gp.nvim/commit/d5fcd00b06d2dab95481f15c79eb1455ff3a4da7))
* win32 detection ([6d0f1b5](https://github.com/Robitx/gp.nvim/commit/6d0f1b5f23c3353b89d8ebadb397a5652e29cead))

## [3.5.1](https://github.com/Robitx/gp.nvim/compare/v3.5.0...v3.5.1) (2024-07-31)


### Bug Fixes

* symbolic links on Windows without admin rights ([#177](https://github.com/Robitx/gp.nvim/issues/177)) ([0f3b5bd](https://github.com/Robitx/gp.nvim/commit/0f3b5bd090871471890502a22fda3ee1abb7c8a2))

## [3.5.0](https://github.com/Robitx/gp.nvim/compare/v3.4.1...v3.5.0) (2024-07-29)


### Features

* capture the preceding number for ChatRespond ([#178](https://github.com/Robitx/gp.nvim/issues/178)) ([14a37df](https://github.com/Robitx/gp.nvim/commit/14a37dfed125782a5a337b26c06201a30d02ca6e))
* configurable sensitive logging to file ([7794e8a](https://github.com/Robitx/gp.nvim/commit/7794e8adf361682ab1488bd910be4ba3828aab03))
* deprecate image_ conf vars in favor of nesting under image table ([dcf116a](https://github.com/Robitx/gp.nvim/commit/dcf116a3390150e2d975e8e74be5fec7c35370e3))
* **logger:** sensitive flag ([85a5f1c](https://github.com/Robitx/gp.nvim/commit/85a5f1cfd976a70677092165b5b1923c9acf9638))
* reuse chat_confirm_delete shortcut in chat picker ([919fdd4](https://github.com/Robitx/gp.nvim/commit/919fdd49fa42a9c2bef3ce85f1532d891c71b953))
* truncating log file and GpInspectLog ([bf38d16](https://github.com/Robitx/gp.nvim/commit/bf38d16e7151db86287ca54b167b8afd990a632a))


### Bug Fixes

* rm obsolete api key validation ([352b0c3](https://github.com/Robitx/gp.nvim/commit/352b0c363bfb1574528743f5771dbd1efbba0046))

## [3.4.1](https://github.com/Robitx/gp.nvim/compare/v3.4.0...v3.4.1) (2024-07-26)


Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ Voice commands (`:GpWhisper*`) depend on `SoX` (Sound eXchange) to handle audio
Below is a linked snippet with the default values, but I suggest starting with minimal config possible (just `openai_api_key` if you don't have `OPENAI_API_KEY` env set up). Defaults change over time to improve things, options might get deprecated and so on - it's better to change only things where the default doesn't fit your needs.

<!-- README_REFERENCE_MARKER_REPLACE_NEXT_LINE -->
https://github.com/Robitx/gp.nvim/blob/33812a62d6e3a34a10d24c696106337a5e2ef4b3/lua/gp/config.lua#L9-L568
https://github.com/Robitx/gp.nvim/blob/49d1986aa98ef748397594aa26e137dbc9cb2798/lua/gp/config.lua#L9-L603

# Usage

Expand Down
4 changes: 2 additions & 2 deletions doc/gp.nvim.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*gp.nvim.txt* For Neovim Last change: 2024 July 26
*gp.nvim.txt* For Neovim Last change: 2024 August 04

==============================================================================
Table of Contents *gp.nvim-table-of-contents*
Expand Down Expand Up @@ -252,7 +252,7 @@ options might get deprecated and so on - it’s better to change only things
where the default doesn’t fit your needs.


https://github.com/Robitx/gp.nvim/blob/33812a62d6e3a34a10d24c696106337a5e2ef4b3/lua/gp/config.lua#L9-L568
https://github.com/Robitx/gp.nvim/blob/49d1986aa98ef748397594aa26e137dbc9cb2798/lua/gp/config.lua#L9-L603


==============================================================================
Expand Down
Loading

0 comments on commit ab6a3d5

Please sign in to comment.