Comments (6)
See screenshot at https://github.com/angelozerr/eclipse-wtp-htmlcss#user-content-css-files-completion
from eclipse-wtp-webresources.
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.
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.
I pulled and the order is A->Z now.
Consider the situation on the screenshot:
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.
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.
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)
- Support dynamic path (ex : JSP expression) HOT 2
- Too much proposals with css autocompletion HOT 2
- nick HOT 2
- Skip validation when embedded PHP script is used HOT 2
- Regular Exception since update to Luna 4.4.1 JEE packaging HOT 1
- Closed project is causing too many stacktraces HOT 2
- Release 0.8.0 in January HOT 2
- Mark folders as web root folders HOT 12
- Undefined JavaScript/Css file HOT 2
- Data URI schemes should not be marked as errors HOT 5
- Avoid validating class values with PHP code inside HOT 5
- Unable to disable validation HOT 3
- Completion, Hyperlink, Validation, Hover support for a/@href, iframe/@src HOT 1
- Rename resource => refactoring
- ./ and / links
- Exclude some folders from validation HOT 1
- CSS class validator does not respect web root folders HOT 5
- Support resolving of directives and CSS classes in AngularJS templates HOT 4
- Support for GitHub pages templates, Jekyll
- Give up WTP Webresources HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eclipse-wtp-webresources.