Code Monkey home page Code Monkey logo

Comments (6)

angelozerr avatar angelozerr commented on June 4, 2024

See screenshot at https://github.com/angelozerr/eclipse-wtp-htmlcss#user-content-css-files-completion

from eclipse-wtp-webresources.

kaloyan-raev avatar kaloyan-raev commented on June 4, 2024

I've just checked the current progress on this. It's really cool to have this feature.

Currently it seems that the suggestions are sorted by in reversed alphabetical order, i.e. Z->A. Could you change the order to A->Z?

And, perhaps, if there are files in the current folder they should precede any subfolders in the list.

from eclipse-wtp-webresources.

angelozerr avatar angelozerr commented on June 4, 2024

Currently it seems that the suggestions are sorted by in reversed alphabetical order, i.e. Z->A. Could you change the order to A->Z?

Could retry it please, now I'm using WTP CustomCompeltionProposal which should manage that.

And, perhaps, if there are files in the current folder they should precede any subfolders in the list.

I don't understan dvery well? You wish to have subfolders in a completion? Why? If I write img/src, I want to have image files and not folder?

from eclipse-wtp-webresources.

kaloyan-raev avatar kaloyan-raev commented on June 4, 2024

I pulled and the order is A->Z now.

Consider the situation on the screenshot:
image

I believe it would be more intuitive if zexport_zpk.png is immediately below export_zpk2_.png. Same for public/breakpoint_compare.png and public/zbreakpoint_preferences.png. Otherwise, if you have hundreds of images in the project, it would be hard to focus on those in a particular folder.

from eclipse-wtp-webresources.

angelozerr avatar angelozerr commented on June 4, 2024

Thank's for the screenshot, I see your idea, but I don't know how to manage that?

Completion proposal is managed with WebResourcesCompletionProposal which extends WTP CustomCompletionProposal which implements IRelevanceCompletionProposal (getRelevance which returns 0)

Sort is done with WTP org.eclipse.wst.xml.ui.internal.contentassist.ProposalComparator which compar eat first relevance and if comparaison resilt is equal to 0 it uses String compare.

I have tried to ovveride getRelevance by returing the occurence of '/' but it doesn't work very well. Any PR are welcome!

from eclipse-wtp-webresources.

angelozerr avatar angelozerr commented on June 4, 2024

I close this issue.

For sort problem @kaloyan-raev pelase create a new issue, but today I don't know how to manage that.

from eclipse-wtp-webresources.

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.