Skip to content

hostep/sublime-magentoutils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Magento Utils for Sublime Text 2 & 3

Provides copying specific files from one directory to another

When right clicking on a file or directory in the sidebar, you will have the option to copy it from one directory to another. The plugin will first look if you already have a copy at the destination and if it finds one, it won't allow you to copy it anymore as it already exists.

The following directories are considered:

  • Files from app/code/core/... or app/code/community/... to app/code/local/...
  • Files from app/design/frontend/{package}/{theme} to another package/theme combination
  • Files from skin/frontend/{package}/{theme} to another package/theme combination

You can define the package/theme copying on a per-project base by defining this setting in your .sublime-project file:

"settings":
{
    "magento_utils_packages_to_copy_between":
    {
        "base/default": "custom/default",
        "default/default": "custom/default",
        "parent/default": "custom/default"     # Useful for Magento CE >= 1.9 parent/child theme support
    }
}

If there isn't a project setting, the plugin will try to guess your custom package, by looking at the available packages and taking the first one which isn't 'base', 'default' or 'enterprise'.

Roadmap

I'm considering of adding a feature where you can copy a template from the same source to multiple destinations, and giving you the option to choose which one out of those destinations you want to use, this will allow you to do something like this:

"settings":
{
    "magento_utils_packages_to_copy_between":
    {
        "base/default": "custom/default",
        "default/default": "custom/default",
        "base/default": "custom/christmas",
        "default/default": "custom/christmas",
        "custom/default": "custom/christmas"
    }
}

Issues

I noticed a certain issue when sometimes the MagentoUtils menu item isn't showing when it should.
It only seems to be happening when the file wasn't opened in Sublime before you right click it. Then Sublime will open the file without creating a new tab, but while opening the file the right click context menu is already showing, and for some reason the MagentoUtils submenu won't appear. It seems like the file isn't completely loaded/opened yet in Sublime when this happens.
The best way to get around it is to explicitly open the file in a new tab and then right clicking the file in the sidebar.

About

Magento utility plugin for Sublime Text 2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published