Sublime Forum

AutoFileName (ST2/ST3)

#15

Just released a fixed that should appease the complainersā€¦

Thanks, now it looks more stable. As for css, autocomplete still doesnā€™t work for non-quoted url declaration.

0 Likes

#16

It works fine.
Your last char in path must contain backslash /, and only then press CTRL+SPACE
for example:

background: url(./)
background: url(../)
background: url(img/)
background: url(../img/)
                      |
                      ^-cursor after slash
0 Likes

#17

I installed by package manager and canā€™t really see anything happening when coding in PHP?

0 Likes

#18

Yes, that is how I was testing it. Iā€™m on windows7x64, sublime b2165, installed from package manager and I still having issues.

0 Likes

#19

Hmmā€¦ for those of you who are having issues, could you please open your console (control + ` ) and tell me what appears after you press control + space?

Could you give me a sample of your code to test with? I donā€™t use PHP and it would be helpful for me to see the problem firsthand. Thanks.

0 Likes

#20

Nothing happens, no errors :frowning:

0 Likes

#21

Could you provide a sample of the code you are using so I have some context?

0 Likes

#22

http://clip2net.com/clip/m0/1327027674-clip-25kb.png
Here it is.

0 Likes

#23

I reproduced the bug that is described above pod.
if you open the editor and start working, it is like in the screenshot - no files in the auto-completion.
but if you open and reload autŠ¾filename.py (just save without changing anything), then the auto-completion is beginning to show the files.

pod - try to repeat my actions - open the file autŠ¾filename.py and simply save it, and then try again auto-completion

0 Likes

#24

Correct, it worked after reloading plugin. Is there a way to fix that?

0 Likes

#25

Iā€™m working on a fix as we speak. It should be ready soon.

0 Likes

#26

I just released a fix. Windows users, you could test it and make sure it works? I made some changes how it handles paths so I need someone to test on Windows. Thanks.

0 Likes

#27

Just reinstalled from package manager, now it doesnā€™t work at all. No messages/errors in console as well. Also doesnā€™t work after reloading.
Iā€™m afraid this report will not help you :smile:

0 Likes

#28

[quote=ā€œpodā€]Just reinstalled from package manager, now it doesnā€™t work at all. No messages/errors in console as well. Also doesnā€™t work after reloading.
Iā€™m afraid this report will not help you :smile:[/quote]

Hmmā€¦ I guess os.path.join is not as smart as the description on the docs saidā€¦ Could you do me a favor and see if it works when you press \ instead of /?

0 Likes

#29

In linux still starts to work [size=110]only after a restart[/size] the plug-in, as described above.

0 Likes

#30

Iā€™m not really sure what thatā€™s supposed to meanā€¦ AutoFileName does all of its work at runtime. So I donā€™t know how a restart can change anything. Do you mean a restart just after installing it or every time to get it to work?

0 Likes

#31

[quote=ā€œC0D312ā€]

the plug-in, as described above.

Iā€™m not really sure what thatā€™s supposed to meanā€¦ AutoFileName does all of its work at runtime. So I donā€™t know how a restart can change anything. Do you mean a restart just after installing it or every time to get it to work?[/quote]

omg, I found my problem !
I had another old copy of the autofilename.py in another directory when he was not in the package manager.

now all works fine :smile:

p.s. maybe pod has the same problem.

0 Likes

#32

True-true :smile:

Now the only issue I have is that all items in auto-complete box have backslash ā€˜ā€™ instead of normal slash ā€˜/ā€™.
I believe I can fix it by replacing d += os.path.sep with d += ā€˜/ā€™ correct?

0 Likes

#33

[quote=ā€œpodā€]

True-true :smile:

Now the only issue I have is that all items in auto-complete box have backslash ā€˜ā€™ instead of normal slash ā€˜/ā€™.
I believe I can fix it by replacing d += os.path.sep with d += ā€˜/ā€™ correct?[/quote]

I changed this because when I was trying to fix all the windows bugs, I changed all references of ā€˜/ā€™ to os.path.sep Iā€™ll change it back though.

0 Likes

#34

It would be marvellous if the plugin would somehow use the Sublime Project root as ā€œ/ā€, because itā€™s often the case that my CSS files are in /css/ and my images are in /images/, and all of my references to files in CSS are absolute paths. So instead of background: url(ā€¦/images/bg.png), I use background: url(/images/bg.png). In this context, the plugin is of no use :frowning:

Also, is there some way to have the auto-complete window make suggestions immediately as I type, rather than after a manual invocation with CTRL+SPACE? It was also unable to complete a filename if I began typing one that I knew already. IE: ā€¦/images/backg[CTRL+SPACE] yields no suggestions, even though I have a background.png image in there.

Just thought Iā€™d post my feedback! Thanks for making this :smile:

0 Likes