{"action":"created","issue":{"url":"https://api.github.com/repos/wbsoft/frescobaldi/issues/522","labels_url":"https://api.github.com/repos/wbsoft/frescobaldi/issues/522/labels{/name}","comments_url":"https://api.github.com/repos/wbsoft/frescobaldi/issues/522/comments","events_url":"https://api.github.com/repos/wbsoft/frescobaldi/issues/522/events","html_url":"https://github.com/wbsoft/frescobaldi/issues/522","id":51182479,"number":522,"title":"Allow snippets in other menus than *File->New from Template* and *Edit*","user":{"login":"wbsoft","id":588454,"avatar_url":"https://avatars.githubusercontent.com/u/588454?v=3","gravatar_id":"","url":"https://api.github.com/users/wbsoft","html_url":"https://github.com/wbsoft","followers_url":"https://api.github.com/users/wbsoft/followers","following_url":"https://api.github.com/users/wbsoft/following{/other_user}","gists_url":"https://api.github.com/users/wbsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/wbsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wbsoft/subscriptions","organizations_url":"https://api.github.com/users/wbsoft/orgs","repos_url":"https://api.github.com/users/wbsoft/repos","events_url":"https://api.github.com/users/wbsoft/events{/privacy}","received_events_url":"https://api.github.com/users/wbsoft/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wbsoft/frescobaldi/labels/snippets","name":"snippets","color":"5319e7"},{"url":"https://api.github.com/repos/wbsoft/frescobaldi/labels/wish","name":"wish","color":"02e10c"}],"state":"closed","locked":false,"assignee":{"login":"wbsoft","id":588454,"avatar_url":"https://avatars.githubusercontent.com/u/588454?v=3","gravatar_id":"","url":"https://api.github.com/users/wbsoft","html_url":"https://github.com/wbsoft","followers_url":"https://api.github.com/users/wbsoft/followers","following_url":"https://api.github.com/users/wbsoft/following{/other_user}","gists_url":"https://api.github.com/users/wbsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/wbsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wbsoft/subscriptions","organizations_url":"https://api.github.com/users/wbsoft/orgs","repos_url":"https://api.github.com/users/wbsoft/repos","events_url":"https://api.github.com/users/wbsoft/events{/privacy}","received_events_url":"https://api.github.com/users/wbsoft/received_events","type":"User","site_admin":false},"milestone":null,"comments":9,"created_at":"2014-12-06T13:24:50Z","updated_at":"2015-01-17T13:28:01Z","closed_at":"2015-01-17T13:28:01Z","body":"Currently, a snippet can define the `menu` variable, causing it to appear in the *Insert* menu. Or it can define the `template` variable, causing it to appear in the *File→New from Template* menu.\r\n\r\nBut it is desired that a snippet can also list itself in the *Edit* menu, and in the *Tools* menu.\r\n\r\nSnippets in the Edit menu should be simple manipulations, such as \"Remove comments\", or define cursor movements, such as \"Next Note\", \"Previous Note\".\r\nSnippets in the Tools menu could comprise larger manipulations.\r\n\r\n**Implementation**\r\nTo this end: the infrastructure that updates the menus should be changed. Currently, the *Insert* and *New from Template* menus are redrawn each time they are requested. The QActions are not existing when the menu is not displayed (instead, the snippet actions live on their own).\r\n\r\nBut to make appearance in other places possible, it should be implemented such that the menus are updated when anything in the snippet library changes. Then redrawing each time is not needed anymore."},"comment":{"url":"https://api.github.com/repos/wbsoft/frescobaldi/issues/comments/70366902","html_url":"https://github.com/wbsoft/frescobaldi/issues/522#issuecomment-70366902","issue_url":"https://api.github.com/repos/wbsoft/frescobaldi/issues/522","id":70366902,"user":{"login":"wbsoft","id":588454,"avatar_url":"https://avatars.githubusercontent.com/u/588454?v=3","gravatar_id":"","url":"https://api.github.com/users/wbsoft","html_url":"https://github.com/wbsoft","followers_url":"https://api.github.com/users/wbsoft/followers","following_url":"https://api.github.com/users/wbsoft/following{/other_user}","gists_url":"https://api.github.com/users/wbsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/wbsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wbsoft/subscriptions","organizations_url":"https://api.github.com/users/wbsoft/orgs","repos_url":"https://api.github.com/users/wbsoft/repos","events_url":"https://api.github.com/users/wbsoft/events{/privacy}","received_events_url":"https://api.github.com/users/wbsoft/received_events","type":"User","site_admin":false},"created_at":"2015-01-17T13:28:01Z","updated_at":"2015-01-17T13:28:01Z","body":"Closing this bug because it is decided that snippets remain in their own menu (Snippets). (And snippets with the `template` variable set are in File→New from template.)"}}