Haehnchen / idea-php-toolbox

Collections of tools and improvements to make PhpStorm a little bit better
http://phpstorm.espend.de/php-toolbox
MIT License
158 stars 20 forks source link

Add support of the twig/url templates target (currently only PHP classes are supported) #17

Open Koc opened 8 years ago

Koc commented 8 years ago
    "providers": [
        {
            "name": "sonata_admin_list_templates",
            "defaults": {
                "icon": "icons.TwigIcons.TwigFileIcon"
            },
            "items": [
                {
                    "lookup_string": "array",
                    "target": "SonataAdminBundle:CRUD:list_array.html.twig"
                },

ctrl+click in 'array' string in php code opens PS_UNRESERVE_PREFIX_array

Haehnchen commented 8 years ago

related #13

Koc commented 8 years ago

@Haehnchen current implementation is partly inconveniently

"target": "file:///vendor/sonata-project/admin-bundle/Resources/views/CRUD/list_array.html.twig"

Is it possible add resolver which supports namespaced notation like:

"target": "twig://@SonataAdmin/CRUD/list_array.html.twig"
Koc commented 8 years ago

@Haehnchen also would be great add support of the shift+f1 navigation for opening url. For example we can open http://php.net/manual/en/context.params.php for notification key in code like $context = stream_context_create(array(), array('notification' => array($this, 'progress')));

"url_target": "http://php.net/manual/en/context.params.php"
Koc commented 8 years ago

you can see https://github.com/psliwa/idea-composer-plugin/commit/5f02d1d7a21a8fa1d9dd550b31b9a2c297354b0c for details of implementation this