Skip to content

Autoclose brackets,qoutes,[,{ #905

Closed

Description

@yogeshdofficial

Is it possible to complete the brackets and other symbols mentioned in the title and It would be cool to have the cursor placed between them after completing the pair.

Activity

  1. added this to the New features milestone on Aug 17, 2021
  2. samuelgregorovic commented on Oct 5, 2021

    @samuelgregorovic
    Contributor

    i could work on this, if you would assign it to me :)

  3. thomasballinger commented on Oct 5, 2021

    @thomasballinger
    Member

    (edit: I got confused) Go ahead and give it a go! We haven't been assigning folks for issues except on the core team, but feel free to post an early PR.

  4. samuelgregorovic commented on Oct 8, 2021

    @samuelgregorovic
    Contributor

    @thomasballinger i will try to make it as close as possible to commonly used IDEs behavior (as you mentioned in your original message). also, should i also incorporate this as a config option, or let this (bracket/quote completion) be the default behavior for now?

  5. thomasballinger commented on Oct 8, 2021

    @thomasballinger
    Member

    I don't think we should make it the default behavior unless it works well for people who aren't used to the behavior, so before this gets in we'd need to add a config option. That part will be easy though, I wouldn't worry about it for now.

  6. samuelgregorovic commented on Oct 8, 2021

    @samuelgregorovic
    Contributor

    okay, i will keep that in mind

  7. samuelgregorovic commented on Oct 30, 2021

    @samuelgregorovic
    Contributor

    @thomasballinger i am finishing this feature up. i made it so it works just like we are used to from conventional IDEs. should i include an argument for turning this feature on/off for now?

  8. thomasballinger commented on Oct 30, 2021

    @thomasballinger
    Member

    That's great, feel free to make an unfinished PR for feedback. I think this should have a config file way to toggle it (press F3 in bpython to view/create a config file). See config.py for this code.

  9. samuelgregorovic commented on Oct 30, 2021

    @samuelgregorovic
    Contributor

    @thomasballinger will do :) thanks

  10. sebastinas commented on Nov 9, 2021

    @sebastinas
    Contributor

    Implemented in #934.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions