Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds a colon after path 'project folder' on network folders #86

Closed
seadynamic8 opened this issue Mar 12, 2014 · 6 comments
Closed

Adds a colon after path 'project folder' on network folders #86

seadynamic8 opened this issue Mar 12, 2014 · 6 comments

Comments

@seadynamic8
Copy link

I'm not sure if this is Windows only, but this is what happens when I try to use it with a network path:

When the input box on the bottom shows, the path is like this:

\NetworkShare\Code\projectname: (Notice the ending colon there)

So, whenever I try to create files, it always appends the project folder name, a colon, and then whatever I name the file.

It gives me an error when trying to create directories, because, well I don't think a colon is allowed for directories.

It works fine for local folders, but for network shares it adds a colon for some reason. Anyone know a workaround, or maybe I need to change a config somewhere?

@skuroda
Copy link
Contributor

skuroda commented Mar 12, 2014

For the key bindings, you likely have a key conflict. You can enter sublime.log_commands(True) in the ST console to see what is running. It may also be a system level key binding.

Haven't done much testing with network drives so likely an issue with the plugin. Did you customize any of the settings for the plugin (See Packages/User/AdvancedNewFile.sublime-settings). Does the status bar display what you posted before entering any content?

@seadynamic8
Copy link
Author

Yea, for the key binding, the sublime log commands didn't work. But I figured it out, it was another Windows program I use (Enounce MySpeed). So I just remapped it another key.

For the network drive, the status bar displays what I showed above:
Creating file at \NetworkShare\Code\foldername:

It says this even before entering any content.

@skuroda
Copy link
Contributor

skuroda commented Mar 13, 2014

Sorry I misread your initial comment. Is the input panel prefilled with the mentioned content? Also, have you modified the settings for AdvancedNewFile? You can do it either on a per project basis or in Packages/User/AdvancedNewFile.sublime-settings. You can view the project settings by going to Project -> Edit Project. You can view the user settings by going to Preferences -> Package Settings -> AdvancedNewFile -> Settings - User

@seadynamic8
Copy link
Author

Yea, about the key binding I just edited that part because I realized my mistake shortly after I posted that originally.

About the network share, the input panel is not prefilled. That is just what is being shown in the status bar, so therefore ends up being part of the file path for the new file.
Here's a screenshot: (don't know if this works)
screenshot

Also I don't have any settings for the AdvancedNewFile package.

@skuroda
Copy link
Contributor

skuroda commented Apr 14, 2014

Sorry for the delay, I've pushed a fix that I believe addresses the issue in 1.2.4. Please confirm that it is fixed for you and close if it is.

Thanks for using AdvancedNewFile.

@seadynamic8
Copy link
Author

Issued fixed in 1.2.4. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants