{"action":"created","issue":{"url":"https://api.github.com/repos/SublimeTextIssues/Core/issues/1551","repository_url":"https://api.github.com/repos/SublimeTextIssues/Core","labels_url":"https://api.github.com/repos/SublimeTextIssues/Core/issues/1551/labels{/name}","comments_url":"https://api.github.com/repos/SublimeTextIssues/Core/issues/1551/comments","events_url":"https://api.github.com/repos/SublimeTextIssues/Core/issues/1551/events","html_url":"https://github.com/SublimeTextIssues/Core/issues/1551","id":197373566,"number":1551,"title":"Cannot adjust font size defined in syntax specific settings by ctrl+-/+","user":{"login":"ParadiseDS","id":3424318,"avatar_url":"https://avatars.githubusercontent.com/u/3424318?v=3","gravatar_id":"","url":"https://api.github.com/users/ParadiseDS","html_url":"https://github.com/ParadiseDS","followers_url":"https://api.github.com/users/ParadiseDS/followers","following_url":"https://api.github.com/users/ParadiseDS/following{/other_user}","gists_url":"https://api.github.com/users/ParadiseDS/gists{/gist_id}","starred_url":"https://api.github.com/users/ParadiseDS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ParadiseDS/subscriptions","organizations_url":"https://api.github.com/users/ParadiseDS/orgs","repos_url":"https://api.github.com/users/ParadiseDS/repos","events_url":"https://api.github.com/users/ParadiseDS/events{/privacy}","received_events_url":"https://api.github.com/users/ParadiseDS/received_events","type":"User","site_admin":false},"labels":[{"id":103795741,"url":"https://api.github.com/repos/SublimeTextIssues/Core/labels/C:%20Default%20Packages","name":"C: Default Packages","color":"669933","default":false},{"id":36961173,"url":"https://api.github.com/repos/SublimeTextIssues/Core/labels/C:%20Settings","name":"C: Settings","color":"669933","default":false},{"id":37304112,"url":"https://api.github.com/repos/SublimeTextIssues/Core/labels/S:%20trivial","name":"S: trivial","color":"F7C9B2","default":false},{"id":36869002,"url":"https://api.github.com/repos/SublimeTextIssues/Core/labels/T:%20enhancement","name":"T: enhancement","color":"1975E7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-23T13:56:59Z","updated_at":"2016-12-23T14:04:44Z","closed_at":null,"body":"### Summary\r\n\r\nWith a Syntax Specific settings file present and font size overridden in it, adjusting font size with `ctrl+-/+` results in changing the global setting rather than the syntax specific setting, even when the active tab is the corresponding specific syntax.\r\n\r\n### Expected behavior\r\n\r\nWhen pressing `ctrl+-/+`, the font size in the active tab should be smaller/larger.\r\n\r\n### Actual behavior\r\n\r\nWhen a syntax specific setting exists, even with the corresponding specific syntax file active, ctrl+-/+ didn't change the font size, that is, font size is changed in the global settings file (Preferences.sublime-settings) rather than the syntax specific settings file (xxx.sublime-settings).\r\n\r\n### Steps to reproduce\r\n1. First step\r\n  set font size in User settings file (`Preference.sublime-settings`)\r\n  ```\r\n  {\r\n      \"font_size\": 10,\r\n  }\r\n  ```\r\n2. Second step\r\n  Open a markdown source file (call it 'sample.md')\r\n3. Third step\r\n  Set the file syntax to markdown.\r\n4. Fourth step\r\n  Create a syntax specific file for markdown syntax, whose file name is 'Markdown.sublime-settings', by default.\r\n5. Fifth step\r\n  set the font size in the syntax specific file (`Markdown.sublime-settings`) as following.\r\n  ```\r\n  {\r\n      \"font_size\": 15,\r\n  }\r\n  ```\r\n6. Sixth step\r\n  switch back to the sample.md tab and adjust font size using `ctrl+-`.\r\n\r\nIn the sixth step you won't see any font size change, as the key shortcut changes the global settings (Preferences.sublime-settings) rather than the Syntax Specific settings (`Markdown.sublime-settings`).\r\nWhen you create a new tab without setting its syntax, you will found the font size is quite small, which follows the default setting, being smaller than 10.\r\n\r\n### Environment\r\n\r\n* Operating system and version:\r\n  * [x] Windows 10\r\n  * [x] Mac OS Sierra10.12.2\r\n  * [x] Linux Ubuntu 14.04.5 LTS\r\n* Sublime Text:\r\n  * Build 3126\r\n"},"comment":{"url":"https://api.github.com/repos/SublimeTextIssues/Core/issues/comments/268994558","html_url":"https://github.com/SublimeTextIssues/Core/issues/1551#issuecomment-268994558","issue_url":"https://api.github.com/repos/SublimeTextIssues/Core/issues/1551","id":268994558,"user":{"login":"keith-hall","id":11882719,"avatar_url":"https://avatars.githubusercontent.com/u/11882719?v=3","gravatar_id":"","url":"https://api.github.com/users/keith-hall","html_url":"https://github.com/keith-hall","followers_url":"https://api.github.com/users/keith-hall/followers","following_url":"https://api.github.com/users/keith-hall/following{/other_user}","gists_url":"https://api.github.com/users/keith-hall/gists{/gist_id}","starred_url":"https://api.github.com/users/keith-hall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keith-hall/subscriptions","organizations_url":"https://api.github.com/users/keith-hall/orgs","repos_url":"https://api.github.com/users/keith-hall/repos","events_url":"https://api.github.com/users/keith-hall/events{/privacy}","received_events_url":"https://api.github.com/users/keith-hall/received_events","type":"User","site_admin":false},"created_at":"2016-12-23T14:04:44Z","updated_at":"2016-12-23T14:04:44Z","body":"For reference, the `increase_font_size` and `decrease_font_size` commands are defined in `Packages/Default/font.py` as `ApplicationCommand`s. This means that they are designed to be global and not per-view, so I'm marking this as an enhancement as opposed to a bug.\r\n\r\nOut of interest, would you expect that the font size in the syntax specific settings would be changed in addition to the global preferences, or would you expect that the settings for the view would be affected directly? It would be possible to write a plugin to do either. Bearing in mind, that for the former, I guess the plugin would have to find all syntax specific settings and update them, rather than just doing it for syntaxes that are open in a view."}}
{"actor":{"display_login":"keith-hall"}}