Code Monkey home page Code Monkey logo

Comments (9)

pkriens avatar pkriens commented on July 21, 2024

I miss it :-)

from bndtools.

davemssavage avatar davemssavage commented on July 21, 2024

Some progress towards this. I've added the bndtools.editor.completion package which lifts the functionality from bnd.plugin.editors.BndSourceViewerConfiguration.

Two outstanding problems that need resolving before this is completed.

Firstly I've embedded aQute.bnd.help.Syntax in this package as it is not yet exported from bndlib.

Secondly bndtools.editor.completion.BndScanner has a comment:

// TODO need to move these constants to Constants to avoid the dependency on aQute.bnd.make.component which drags in half the universe
//addWords(ServiceComponent.componentDirectives, bsvc.T_COMPONENT);

from bndtools.

njbartlett avatar njbartlett commented on July 21, 2024

Very nice progress, but the completion is not quite working the way I would like. It does not take account of the prefix already typed. For example the user types the following:

Expo

And then hits Ctrl-Space. We should only show the completions matching that prefix (i.e. Export-Package and Export-Service). If only one possible completion matches the prefix then we can insert it straight away without needing to show a list of proposals.

I have some example code from another project that does this.

from bndtools.

njbartlett avatar njbartlett commented on July 21, 2024

BTW we should raise the other issues (i.e. exporting aQute.bnd.help and moving the ServiceComponent constants) as bugs against bnd.

from bndtools.

davemssavage avatar davemssavage commented on July 21, 2024

Agreed about the prefix string support, I've pushed a patch that supports that. I'll raise issues on bnd shortly...

from bndtools.

davemssavage avatar davemssavage commented on July 21, 2024

Also just spotted I hadn't implemented the case where there is only one possible solution, further patch supplied.

from bndtools.

njbartlett avatar njbartlett commented on July 21, 2024

Something else I noticed. The Eclipse standard .properties file editor colours property names differently from property values. I found this really useful with lines joined together by blackslashes, because if I forgot the backslash then the next line is the wrong colour. Can we do the same?

from bndtools.

davemssavage avatar davemssavage commented on July 21, 2024

I've raised the two bnd issues here:

https://github.com/bnd/bnd/issues/87
https://github.com/bnd/bnd/issues/88

from bndtools.

njbartlett avatar njbartlett commented on July 21, 2024

closing

from bndtools.

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.