Djam25 / css-x-fire

Automatically exported from code.google.com/p/css-x-fire
0 stars 0 forks source link

Cannot differentiate between multiple files or selectors of the same name #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. open a project in IntelliJ which contains multiple CSS files of the same 
name, but in different subfolders. OR open a project which contains multiple 
CSS files with different names, but using the same selector (for instance 
#content)
2. edit a value in Firebug
3. check the CSS-X-Fire "incoming changes" panel in IntelliJ

What is the expected output? What do you see instead?
When editing a single selector/attribute/value, the CSS-X-Fire "incoming 
changes" panel in IntelliJ should only show 1 file modified, but instead it 
shows every file in my project which matches that filename or selector (even 
after selecting "filename reduce filter").

What version of the product are you using? On what operating system?
css-x-fire 1.11
IntelliJ 10.0.1
Firefox 3.6.13
Firebug 1.6.0

Please provide any additional information below.

Original issue reported on code.google.com by spin...@gmail.com on 4 Jan 2011 at 5:20

GoogleCodeExporter commented 9 years ago
Thank you for your report. I know that the tool is not 100% automatic for 
everyone's needs when working with every type of web application. There just 
are so many programming languages, ways of laying out a project and mapping it 
on a server. The tool is originally designed for dynamic template languages 
with style sheets that are generated and minified deployment-time, and later 
adjusted to suit a wider audience. For these reasons your issue is considered a 
feature rather than a bug ;) Anyways, here's a little more explanation on how 
it works, and why.

First of all, the "filename reduce filter" works on the filename only, not the 
complete path. The file path on the server may very well differ from the path 
in the project. 
It is quite common to serve static files from a separate location, such as a 
CDN or a different folder on the server, with a mapping like /static/ or 
similar.

Secondly, the "incoming changes panel" shows all matching selectors, possibly 
filtered down by filename or media query. This panel may display changes in 
locations that are not intended by you.
For example if you have the same selector in two files with the same filename 
they will both appear in the tree, but in separate paths. Under these 
circumstances you have the option to include or exclude the changes on a file, 
selector or property level. Simply right-click on the file, selector or 
property node and choose your action. This is why the panel exists in the first 
place; for auditing and cherry-picking.

Finally, for the above reasons there exists no "Auto-apply-all-my-changes" 
feature. In the end all changes, correct or wrong, have to be confirmed by you 
before any changes are made to the source code.

Original comment by ronnie.k...@gmail.com on 7 Jan 2011 at 10:22

GoogleCodeExporter commented 9 years ago
Configurable route mappings will be a part of next release (1.15). When used, 
only the exact file will be matched.

Original comment by ronnie.k...@gmail.com on 20 Mar 2011 at 7:42