GithubHelp home page GithubHelp logo

Autocomplete about codemirror-v1 HOT 4 CLOSED

codemirror avatar codemirror commented on May 28, 2024
Autocomplete

from codemirror-v1.

Comments (4)

marijnh avatar marijnh commented on May 28, 2024

My position on autocomplete is that it won't be part of CodeMirror, but CodeMirror should provide the tools to implement it as an add-on. You can add an key event handler to the frame, use cursorCoords to find out where to position your drop-down, and use the API to insert code at the right place.

As for auto-paren-insertion, that's definitely not going to become a default feature (too annoying). If you want to add it as an option, feel free to submit a patch.

from codemirror-v1.

egeozcan avatar egeozcan commented on May 28, 2024

by the way, just an idea: that annoyance can be highly eliminated if the editor overwrites the next char if the typed char and the next char are both closing paranthesis. example:
(helloworld-cursorishere-) => I type ")" => (helloworld)-cursorishere-

from codemirror-v1.

 avatar commented on May 28, 2024

An example of how I would envision this being implemented is by how ActiveState's Komodo EDIT and IDE applications handle auto parens. It's both intuitive and non-invasive. And it could be turned off.

I'll look into creating a patch.

from codemirror-v1.

thomasandersen avatar thomasandersen commented on May 28, 2024

quplo has added what they call The Common Sense Code Completion

Blog post, demo, and source can be found here:

http://blog.quplo.com/2010/06/common-sense-code-completion/

from codemirror-v1.

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.