{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":739000474,"defaultBranch":"main","name":"gp.nvim","ownerLogin":"argshook","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2024-01-04T14:43:20.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/4284659?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1704379407.055428","currentOid":""},"activityList":{"items":[{"before":"0260c288e1b767c019e7dc894418904ce821da77","after":"0c776368b29edf4edf75c4204b0982766a20ed9d","ref":"refs/heads/main","pushedAt":"2024-06-10T07:54:02.000Z","pushType":"push","commitsCount":5,"pusher":{"login":"argshook","name":"Arijus Šukys","path":"/argshook","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4284659?s=80&v=4"},"commit":{"message":"Merge branch 'Robitx:main' into main","shortMessageHtmlLink":"Merge branch 'Robitx:main' into main"}},{"before":"73224690ecc823a3f8a16d670ab24190ab243f6d","after":"0260c288e1b767c019e7dc894418904ce821da77","ref":"refs/heads/main","pushedAt":"2024-06-10T07:53:14.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"argshook","name":"Arijus Šukys","path":"/argshook","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4284659?s=80&v=4"},"commit":{"message":"Add support for relative paths in template render\n\nthis changes the `{{filename}}` substitute in templates to point to a\nrelative path from the `.git` repository. If `.git` repository is not\nfound, then full path is used.\n\nWith this change commands like `:GpChatPaste` would include a less\nverbose path without including the username.\n\nFor example with config like this:\n\n```lua\ntemplate_selection = \"from `{{filename}}`\"\n```\n\nwe now get\n```\nfrom `my-project/file.py`\n```\n\npreviously we would get\n\n```\nfrom `/home/username/projects/repositories/my-project/file.py`\n```\n\nwhich is often excessive and also leaks the username.","shortMessageHtmlLink":"Add support for relative paths in template render"}},{"before":"b2946757326611465b8ad43e71dda93cc694bb03","after":"73224690ecc823a3f8a16d670ab24190ab243f6d","ref":"refs/heads/main","pushedAt":"2024-05-23T08:32:24.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"argshook","name":"Arijus Šukys","path":"/argshook","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4284659?s=80&v=4"},"commit":{"message":"Update README with note on repository fork\n\nAdd a prominent note about this repo being a fork with improvements.","shortMessageHtmlLink":"Update README with note on repository fork"}},{"before":"3bf41dbead42f3b2bfe7c6a6814b06c2610355bf","after":"b2946757326611465b8ad43e71dda93cc694bb03","ref":"refs/heads/main","pushedAt":"2024-05-23T08:31:40.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"argshook","name":"Arijus Šukys","path":"/argshook","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4284659?s=80&v=4"},"commit":{"message":"Update README with note on repository fork\n\nAdd a prominent note about this repo being a fork with improvements.","shortMessageHtmlLink":"Update README with note on repository fork"}},{"before":"6c0196a3a90537879f1605dc07de8b14af15d14f","after":"3bf41dbead42f3b2bfe7c6a6814b06c2610355bf","ref":"refs/heads/main","pushedAt":"2024-05-23T08:23:33.000Z","pushType":"push","commitsCount":3,"pusher":{"login":"argshook","name":"Arijus Šukys","path":"/argshook","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4284659?s=80&v=4"},"commit":{"message":"Merge remote-tracking branch 'upstream/main'","shortMessageHtmlLink":"Merge remote-tracking branch 'upstream/main'"}},{"before":"42076bfe0e37d6f5f037b53c1e233dbf2fe24a32","after":"6c0196a3a90537879f1605dc07de8b14af15d14f","ref":"refs/heads/main","pushedAt":"2024-05-23T08:22:14.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"argshook","name":"Arijus Šukys","path":"/argshook","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4284659?s=80&v=4"},"commit":{"message":"Update model parameters to GPT-4o in config\n\n- Set `model` parameter to \"gpt-4o\" in both chat and command configurations.","shortMessageHtmlLink":"Update model parameters to GPT-4o in config"}},{"before":"93fc0e85ed65ca9d9e21d95ae81f998fbd1aa62a","after":"42076bfe0e37d6f5f037b53c1e233dbf2fe24a32","ref":"refs/heads/main","pushedAt":"2024-05-17T12:54:17.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"argshook","name":"Arijus Šukys","path":"/argshook","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4284659?s=80&v=4"},"commit":{"message":"fix symlink create error\n\nfixes the error:\n```\nln: failed to create symbolic link 'chats/last.md': Directory not empty\n```","shortMessageHtmlLink":"fix symlink create error"}},{"before":"0b6fc73898dca19ad303691b504b3dc71fea116d","after":"93fc0e85ed65ca9d9e21d95ae81f998fbd1aa62a","ref":"refs/heads/main","pushedAt":"2024-05-17T08:07:47.000Z","pushType":"push","commitsCount":5,"pusher":{"login":"argshook","name":"Arijus Šukys","path":"/argshook","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4284659?s=80&v=4"},"commit":{"message":"feat: filter out empty lines in picker","shortMessageHtmlLink":"feat: filter out empty lines in picker"}},{"before":"d76be3d067b4e7352d1e744954327982cf1d24aa","after":"0b6fc73898dca19ad303691b504b3dc71fea116d","ref":"refs/heads/main","pushedAt":"2024-03-13T17:02:50.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"argshook","name":"Arijus Šukys","path":"/argshook","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4284659?s=80&v=4"},"commit":{"message":"add `config.chat_template` to be able to customize the chat file banner","shortMessageHtmlLink":"add config.chat_template to be able to customize the chat file banner"}},{"before":"7dbb6d65675cb4637d7d3ae9829edbb0558f5d80","after":"d76be3d067b4e7352d1e744954327982cf1d24aa","ref":"refs/heads/main","pushedAt":"2024-03-13T17:00:40.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"argshook","name":"Arijus Šukys","path":"/argshook","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4284659?s=80&v=4"},"commit":{"message":"fix: handle symlinks in chat checks (issue: #104)","shortMessageHtmlLink":"fix: handle symlinks in chat checks (issue: Robitx#104)"}},{"before":"3c2e0013a739602d23eb5fdac147507a99f93b16","after":"7dbb6d65675cb4637d7d3ae9829edbb0558f5d80","ref":"refs/heads/main","pushedAt":"2024-03-13T17:00:33.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"argshook","name":"Arijus Šukys","path":"/argshook","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4284659?s=80&v=4"},"commit":{"message":"fix: search as you type needs TextChangedI","shortMessageHtmlLink":"fix: search as you type needs TextChangedI"}},{"before":"b5041f1bdc68206a1aef46402366198e287e0ae1","after":"3c2e0013a739602d23eb5fdac147507a99f93b16","ref":"refs/heads/main","pushedAt":"2024-03-13T16:53:35.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"argshook","name":"Arijus Šukys","path":"/argshook","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4284659?s=80&v=4"},"commit":{"message":"add `config.chat_template` to customize the banner of chat files","shortMessageHtmlLink":"add config.chat_template to customize the banner of chat files"}},{"before":"7dbb6d65675cb4637d7d3ae9829edbb0558f5d80","after":"b5041f1bdc68206a1aef46402366198e287e0ae1","ref":"refs/heads/main","pushedAt":"2024-03-13T16:28:55.000Z","pushType":"push","commitsCount":28,"pusher":{"login":"argshook","name":"Arijus Šukys","path":"/argshook","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4284659?s=80&v=4"},"commit":{"message":"Merge branch 'Robitx:main' into main","shortMessageHtmlLink":"Merge branch 'Robitx:main' into main"}},{"before":"0ca8bcd1addd8e07c02379b54f9f118ae3ce2a11","after":"7dbb6d65675cb4637d7d3ae9829edbb0558f5d80","ref":"refs/heads/main","pushedAt":"2024-01-04T21:20:37.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Robitx","name":"Tibor Schmidt","path":"/Robitx","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/8431097?s=80&v=4"},"commit":{"message":"fix: search as you type needs TextChangedI","shortMessageHtmlLink":"fix: search as you type needs TextChangedI"}},{"before":"f2d9d751ad7e13c2740e0c599e6183f9951e34b7","after":"0ca8bcd1addd8e07c02379b54f9f118ae3ce2a11","ref":"refs/heads/main","pushedAt":"2024-01-04T15:00:50.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"argshook","name":"Arijus Šukys","path":"/argshook","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4284659?s=80&v=4"},"commit":{"message":"use `InsertLeave` instead of `TextChangedI`\n\n`gp.nvim` has autosave feature which is triggered by few events, one of\nwhich is `TextChangedI`.\n\nwhen typing text in insert mode, any change done there saves the file.\nThis grows the `:undolist` too much, because any change in insert mode\nis saved and treated as a separate change.\n\nNormally to undo the last change, you would press `u` once in normal mode.\nBut with autosave triggered by `TextChangedI`, you have to press `u` multiple times, for each change.\n\nusing `InsertLeave` instead of `TextChangedI` avoids such problem.\n\nFor comparison, consider scenario:\n\n1. open neovim\n2. run `:GpChatNew`\n3. go to insert mode and type `123`\n4. leave insert mode\n5. run `:undolist`\n\non my setup it shows:\n\n```\nnumber changes when saved\n 4 4 2 seconds ago\n```\n\ndoing the equivalent when `InsertLeave` is used instead of `TextChangedI`:\n\n```\nnumber changes when saved\n 1 1 2 seconds ago 1\n```\n\nthis is much better, because now you can undo the last change with single `u` press!","shortMessageHtmlLink":"use InsertLeave instead of TextChangedI"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEYNWz3gA","startCursor":null,"endCursor":null}},"title":"Activity · argshook/gp.nvim"}