idea-php-toolbox icon indicating copy to clipboard operation
idea-php-toolbox copied to clipboard

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

Open Koc opened this issue 9 years ago • 4 comments

    "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

Koc avatar Jan 04 '16 18:01 Koc

related #13

Haehnchen avatar Jan 17 '16 14:01 Haehnchen

@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 avatar Jan 18 '16 09:01 Koc

@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 avatar Jan 18 '16 14:01 Koc

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

Koc avatar Jan 18 '16 14:01 Koc