Sunday, 15 August 2010

sublimetext3 - How to set key-bindings in Sublime that change values of settings? -


I am compelled to force "alt + f11" to toggle "draw_centered", which is the text Focus on distraction -Free mode I'm not sure how to work it.

So far my keypoints are:

  // If draw_centered == is true, set false {"key" "" "" "," Reference ":" Set "" Setting.draw_centered "," operator ":" equal "," operator ": {" setting ":" drag-centric "," value ":" true "," context ": [{" key ":" Setting.draw_centered " Set "set_setting", "args": {"setting", "operator": false}]}, // if draw_centered == is false, set to true {"keys": ["alt + f11"], "command" : "Draw_centered", "value": "false",}, "context": [{"key": "setting.draw_centered", "operator": "I could not find an order that was automatically drawn" Gone ", so I There were some types of advanced commands to be prepared. I have trouble understanding the documentation on keybindings, but I tried to follow the "reference" example. Does anyone tell me what I am doing? 

Thanks for the tip about toggle_setting Sergio FC! I got to work with this code: <">" "" "[" alt + f11 "]," command ":" toggle_setting "," args ": {" setting ":" Draw_centered ",} } Edit: I've discovered a bug with the key-combination "alt-f11" now, after deviation-free mode For example, if I have a file and click on alt-f11 then I

left -united (i.e. Draw_centered = false), the window will be left-aligned when I have distraction-free mode Rg will. Why is this and how to fix it?


No comments:

Post a Comment