Code Monkey home page Code Monkey logo

Comments (5)

xenodium avatar xenodium commented on June 12, 2024

Whenever I press , the text in chatgpt buffer shifts downwards

Can you share a bit more? Is this not typically expected?

Do you happen to have the behaviour you'd like in another shell? Maybe show how that one is configured?

In terms of hooks, chatgpt-shell is comint-based, so all same hooks should available there too.

from chatgpt-shell.

agzam avatar agzam commented on June 12, 2024

Can you share a bit more? Is this not typically expected?

I'm not entirely sure as I've just started using the package, but I've noticed that the prompt always ends up at the bottom. For some reason, I think I might prefer it to be (recenter)ed. However, I could be wrong, and I plan to experiment with it some more. By the way, I probably should have added a disclaimer that this is not an actual issue or complaint. I opened it as a means for discussion.

from chatgpt-shell.

xenodium avatar xenodium commented on June 12, 2024

but I've noticed that the prompt always ends up at the bottom.

A benefit is that with ChatGPT giving long answers, keeping the prompt at the bottom increases the amount of readable output/response text. Having said that, prolly just user preference.

I think I might prefer it to be (recenter)ed

With the latest, you should be able to do something like

(defun my/chatgpt-shell-recenter (_command _output)
  (recenter))

(add-hook 'chatgpt-shell-after-command-functions
          'my/chatgpt-shell-recenter)

I've just renamed the variable to behave like an abnormal hook. Lemme know if you run into issues.

By the way, I probably should have added a disclaimer that this is not an actual issue or complaint. I opened it as a means for discussion.

No worries! Didn't think it was a coimplaint.

from chatgpt-shell.

agzam avatar agzam commented on June 12, 2024

Very nice. Thank you. I have started using other commands like chatgp-shell-proofreading-doc more, and I'm not typing directly in the "chatgpt repl" as much as before. And I still can't decide which way I prefer better: the default or recentered. But having multiple choices is great. I appreciate you taking the time to add the hook. Honestly, I didn't expect you to respond with new code so quickly. I'll try to be careful next time with expressing what I wish for 😄

from chatgpt-shell.

xenodium avatar xenodium commented on June 12, 2024

I appreciate you taking the time to add the hook. Honestly, I didn't expect you to respond with new code so quickly.

👍

I'll try to be careful next time with expressing what I wish for 😄

All good. Looks like we can close this issue now. Please reopen if otherwise.

from chatgpt-shell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.