GithubHelp home page GithubHelp logo

Comments (8)

KieranConlon avatar KieranConlon commented on May 21, 2024 3

With the recent addition of the OpenAI chat feature, I suggest a couple of key bindings for the chat-specific feature.

CoPilot -> Chat with Selection: ⌥"
CoPilot -> Explain Selection: ⌥|

Again, using ⌥⇧ as the "access" key combination for these bindings.

The rationale for these bindings...
Chat: Using the 'quote' symbol for starting an OpenAI chat session has an analogy to starting a conversation with OpenAI where the initial question is about the selected (or quoted) text.
Explain: Using the 'pipe' symbol for starting an OpenAI session to explain the selected code has an analogy with command line tools (e.g. grep) for 'piping' text to another command so that additional processing of the code/selection can happen.

image

These bindings do not seem to conflict with standard key bindings used on Xcode.

image

I am using an English-UK keyboard layout, so the keys used may not be suitable for all languages/regions.

@intitni Do you think this could be added to the README?

from copilotforxcode.

intitni avatar intitni commented on May 21, 2024 2

Thanks for sharing, I don't think we can add default key bindings to commands, but will add this recommendation to readme.

from copilotforxcode.

intitni avatar intitni commented on May 21, 2024 1

A key binding section is added to README.md with your recommendation.

from copilotforxcode.

WingCH avatar WingCH commented on May 21, 2024 1

i think add this key bindings is very helpful for me, thanks @KieranConlon and hope can add into README

from copilotforxcode.

icezohu avatar icezohu commented on May 21, 2024

Snipaste_2023-03-02_19-09-16

Suggesting another set of key bindings...

from copilotforxcode.

intitni avatar intitni commented on May 21, 2024

They are now added to readme

from copilotforxcode.

13088992520 avatar 13088992520 commented on May 21, 2024

xcode setting did not show the CoPilot key bindings. Anyone know Why? and my codeium works well , i just cant search copilot in setting keybindings

from copilotforxcode.

intitni avatar intitni commented on May 21, 2024

@13088992520 Please make sure you have enabled the source editor extension https://github.com/intitni/CopilotForXcode#enable-the-extension

from copilotforxcode.

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.