clemos / haxe-sublime-bundle

Sublime Text bundle for Haxe programming language
Apache License 2.0
235 stars 86 forks source link

Building openfl project and vintageous #133

Closed RudolfVonKrugstein closed 9 years ago

RudolfVonKrugstein commented 10 years ago

I am using vintageos to get vim keybindings in sublime. When I want to build an openfl project, I have to press Ctrl-Enter (is there also another way), which works ONLY if I am in insert mode. That is doable, but anyoing.

clemos commented 10 years ago

You should be able to override plugins' default key bindings with your own user keybindings: http://www.sublimetext.com/docs/2/settings.html Here are all the commands available / defined by the plugin : https://github.com/clemos/haxe-sublime-bundle/blob/master/Support/Default.sublime-keymap For instance, you can add this part to your user keybindings file and change the keys part :

{
        "keys": ["ctrl+enter"],
        "command": "run_macro_file",
        "args":
        {
            "file": "Packages/Haxe/Macros/SaveAllAndBuild.sublime-macro"
        },
        "context":
        [
            {
                "key": "selector",
                "operator": "equal",
                "operand": "source.haxe.2,source.hxml,source.nmml,source.erazor"
            }
        ]
    }
clemos commented 9 years ago

I'll close the issue for now, you can always re-open it if the solution I propose doesn't fit your needs.