Git Product home page Git Product logo

Comments (8)

karthink avatar karthink commented on June 4, 2024

I don't see where the conflict is. gptel-send is not bound to any key unless you're in a special buffer you create with M-x gptel -- in which case you're not in latex-mode.

from gptel.

hongyi-zhao avatar hongyi-zhao commented on June 4, 2024

Say, I'm in AUCTeX buffer, C-c RET will not trigger gptel-send, and as an alternative, now I rebound it to F2.

from gptel.

karthink avatar karthink commented on June 4, 2024

Say, I'm in AUCTeX buffer, C-c RET will not trigger gptel-send, and as an alternative, now I rebound it to F2.

Sorry, I don't follow. gptel-send is not bound to any key, so you're free to bind it as you please, or just call M-x gptel-send. So where is the conflict?

from gptel.

hongyi-zhao avatar hongyi-zhao commented on June 4, 2024

If so, why do you give the following description:
image

from gptel.

karthink avatar karthink commented on June 4, 2024

It's bound to C-c RET in dedicated gptel buffers, i.e. one created using M-x gptel. But this is a markdown or org buffer (depending on the value of gptel-default-mode), not an AuCTeX buffer.

Of the two ways of using gptel (in a dedicated chat buffer vs queries in any buffer), may I ask how you use or would like to use gptel?

from gptel.

hongyi-zhao avatar hongyi-zhao commented on June 4, 2024

Of the two ways of using gptel (in a dedicated chat buffer vs queries in any buffer), may I ask how you use or would like to use gptel?

Both. They have their own advantages and disadvantages. Therefore, I am seeking a unified shortcut key convention.

from gptel.

karthink avatar karthink commented on June 4, 2024

I see. Do you have a suggestion for a keybinding that works in both contexts?

from gptel.

hongyi-zhao avatar hongyi-zhao commented on June 4, 2024

<f2> is already globally bound in Emacs, though.

Both. They have their own advantages and disadvantages. Therefore, I am seeking a unified shortcut key convention.

I've found that C-c C-RET is unbound in most major modes I've tried, that could be a viable option for you too.

In any case, I'm not going to bind gptel-send in the global map, so the user is free to choose whatever key they would like. When gptel-mode is active (in text, markdown or org-mode buffers) C-c RET takes precedence and is simpler than C-c C-RET, so I'm going to stick with that.

I'm closing this issue now, feel free to reopen if you think of a better keybinding.

from gptel.

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.