Save and restore chats #139
Replies: 4 comments 12 replies
-
Hey @soundweaverz and thanks for your kind words. I had them in the plugin up until a few days ago (9c57c35). Unfortunately the way I rewrote the messaging element of the chat buffer broke them. I deemed that it wasn't worthwhile fixing them as the future changes I have will necessitate a rewrite again, in a week or two. Feel free to look through the commit and if you can think of a good way of saving and restoring chats, let me know. I'm open to a PR to implement them again. |
Beta Was this translation helpful? Give feedback.
-
Howdy! I implemented a save/retrieve functionality I am pretty happy with you can find it in this gist: https://gist.github.com/itsfrank/942780f88472a14c9cbb3169012a3328 Pretty simple, it adds 2 commands:
Works very well for my needs. The one thing it does not do is allow you to resume chatting, but I haven't really had the need for that. In any case I'm pretty sure I could just select the bits that are relevant and use |
Beta Was this translation helpful? Give feedback.
-
+1 I really believe that saving chats is a very important functionality, as it is quite uncomfortable to rely on the session's integrity for chats, especially because it requires an effort to provide a chat with different contexts |
Beta Was this translation helpful? Give feedback.
-
Hi All, Wanted to share my position regarding this as I still have no plans to support this feature natively in the plugin. The primary reason is supporting saving/restoring will eat into the time I have to add new features. I'm speaking from experience after removing this feature back in August. I believe a native implementation tightly couples this feature to the chat buffer...something which changes regularly! This would mean breaking changes regularly and your saved chats either being unable to be restored or I'd need to come up with some bridging mechanism. I believe we're reaching a point in the plugin's development where you can hook into functionality yourself in order to customize it to your workflow needs. This is something I've implemented in another plugin of mine recently where users were raising awesome ideas that were just too specific to their use cases. In the case of saving and restoring, you could add your own custom keymap that implements the great work done in https://gist.github.com/itsfrank/942780f88472a14c9cbb3169012a3328. Whilst I won't be adding this feature natively, if there are any hooks/events that I can add into the plugin, please let me know. |
Beta Was this translation helpful? Give feedback.
-
Hi Oli! Amazing work! I've been a Neovim user for a few years, shortly tried Zed, but switched back now. However, one feature I'm missing is the ability to save and restore chats and IIRC there used to be a "save and restore" bullet point in the README. I also found another discussion, in which you mention that it could be possible. Any idea how this is prioritized? If I can help you setting it up, I'd gladly try to help working it out!
Beta Was this translation helpful? Give feedback.
All reactions