{"action":"created","issue":{"url":"https://api.github.com/repos/linuxdeepin/dde-file-manager/issues/21","repository_url":"https://api.github.com/repos/linuxdeepin/dde-file-manager","labels_url":"https://api.github.com/repos/linuxdeepin/dde-file-manager/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/linuxdeepin/dde-file-manager/issues/21/comments","events_url":"https://api.github.com/repos/linuxdeepin/dde-file-manager/issues/21/events","html_url":"https://github.com/linuxdeepin/dde-file-manager/issues/21","id":332299860,"node_id":"MDU6SXNzdWUzMzIyOTk4NjA=","number":21,"title":"How to add entry to context menu?","user":{"login":"damien122","id":7516098,"node_id":"MDQ6VXNlcjc1MTYwOTg=","avatar_url":"https://avatars1.githubusercontent.com/u/7516098?v=4","gravatar_id":"","url":"https://api.github.com/users/damien122","html_url":"https://github.com/damien122","followers_url":"https://api.github.com/users/damien122/followers","following_url":"https://api.github.com/users/damien122/following{/other_user}","gists_url":"https://api.github.com/users/damien122/gists{/gist_id}","starred_url":"https://api.github.com/users/damien122/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damien122/subscriptions","organizations_url":"https://api.github.com/users/damien122/orgs","repos_url":"https://api.github.com/users/damien122/repos","events_url":"https://api.github.com/users/damien122/events{/privacy}","received_events_url":"https://api.github.com/users/damien122/received_events","type":"User","site_admin":false},"labels":[{"id":860106910,"node_id":"MDU6TGFiZWw4NjAxMDY5MTA=","url":"https://api.github.com/repos/linuxdeepin/dde-file-manager/labels/already%20fixed","name":"already fixed","color":"51db7c","default":false},{"id":860106906,"node_id":"MDU6TGFiZWw4NjAxMDY5MDY=","url":"https://api.github.com/repos/linuxdeepin/dde-file-manager/labels/feature%20request","name":"feature request","color":"75d3d8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-14T08:26:31Z","updated_at":"2018-06-18T08:49:10Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nI want to kow how to add an entry to the context menu in the file manager.\r\nEspacially I want to add \"Open with Visual Studio Code\" to already opend folder like the entry \"open Terminal\" allready did.\r\n"},"comment":{"url":"https://api.github.com/repos/linuxdeepin/dde-file-manager/issues/comments/397984907","html_url":"https://github.com/linuxdeepin/dde-file-manager/issues/21#issuecomment-397984907","issue_url":"https://api.github.com/repos/linuxdeepin/dde-file-manager/issues/21","id":397984907,"node_id":"MDEyOklzc3VlQ29tbWVudDM5Nzk4NDkwNw==","user":{"login":"damien122","id":7516098,"node_id":"MDQ6VXNlcjc1MTYwOTg=","avatar_url":"https://avatars1.githubusercontent.com/u/7516098?v=4","gravatar_id":"","url":"https://api.github.com/users/damien122","html_url":"https://github.com/damien122","followers_url":"https://api.github.com/users/damien122/followers","following_url":"https://api.github.com/users/damien122/following{/other_user}","gists_url":"https://api.github.com/users/damien122/gists{/gist_id}","starred_url":"https://api.github.com/users/damien122/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damien122/subscriptions","organizations_url":"https://api.github.com/users/damien122/orgs","repos_url":"https://api.github.com/users/damien122/repos","events_url":"https://api.github.com/users/damien122/events{/privacy}","received_events_url":"https://api.github.com/users/damien122/received_events","type":"User","site_admin":false},"created_at":"2018-06-18T08:49:10Z","updated_at":"2018-06-18T08:49:10Z","author_association":"NONE","body":"Hi @BLumia,\r\n\r\nthanks for your answere. Unfortunatelly your fix works not propperly.\r\nI have added this code:\r\n`[\r\n    {\r\n        \"MenuType\": \"EmptyArea\",\r\n        \"Icon\": \"Files\",\r\n        \"Text[de]\": \"Mit VSCode öffnen\",\r\n        \"Text[zh_CN]\": \"在 VSCode 中打开\",\r\n        \"Text[en]\": \"Open with VSCode\",\r\n        \"Exec\": \"code\"\r\n    },\r\n{\r\n        \"MenuType\": \"SingleDir\",\r\n        \"Icon\": \"Files\",\r\n        \"Text[de]\": \"Mit VSCode öffnen\",\r\n        \"Text[zh_CN]\": \"在 VSCode 中打开\",\r\n        \"Text[en]\": \"Open with VSCode\",\r\n        \"Exec\": \"code\"\r\n    },\r\n{\r\n        \"MenuType\": \"MultiFileDirs\",\r\n        \"Icon\": \"Files\",\r\n        \"Text[de]\": \"Mit VSCode öffnen\",\r\n        \"Text[zh_CN]\": \"在 VSCode 中打开\",\r\n        \"Text[en]\": \"Open with VSCode\",\r\n        \"Exec\": \"code\"\r\n    }\r\n]`\r\n\r\nBut my Context menü entry is empty, by the way my system language is German (de).\r\nAlso the behavior of VSCode is strange. If I start VSCode from a selected folder or file, I just see an empty file with the file name but no contetent. Is this because of the missing Args? \r\n\r\nWhat I also tried was:\r\n\r\n`[\r\n    {\r\n        \"MenuType\": \"EmptyArea\",\r\n        \"Icon\": \"Files\",\r\n        \"Text[de]\": \"Mit VSCode öffnen\",\r\n        \"Text[zh_CN]\": \"在 VSCode 中打开\",\r\n        \"Text[en]\": \"Open with VSCode\",\r\n        \"Exec\": \"'code ./'\"\r\n    }\r\n]`\r\n\r\nIn my understanding the exec command is just an executable which is triggerd. My idea was to encapsulate the command with single quotes. Unfortunatelly this fix didn't work. Do you maybe know an workarround?"}}
{"actor":{"display_login":"damien122"}}