Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vintage mode for toggle foldong? 'za' #195

Open
drewlesueur opened this issue Apr 23, 2014 · 3 comments
Open

Vintage mode for toggle foldong? 'za' #195

drewlesueur opened this issue Apr 23, 2014 · 3 comments

Comments

@drewlesueur
Copy link

I would love it if we could toggle folding by using 'za' is this possible?

Thanks!

@plato-cambrian
Copy link

+1, also zc for close current fold and zo for open current fold

@mmagnuski
Copy link

Taking a look at the default keybindings file you can find a part that defines folding:

    { "keys": ["ctrl+shift+["], "command": "fold" },
    { "keys": ["ctrl+shift+]"], "command": "unfold" },

Just put it in you user key bindings adding command mode context and it will work fine:

    { "keys": ["z", "c"], "command": "fold",
        "context":
        [
            { "key": "setting.command_mode", "operand": true },
            { "key": "setting.is_widget", "operand": false }
        ]
    },
    { "keys": ["z", "o"], "command": "unfold",
        "context":
        [
            { "key": "setting.command_mode", "operand": true },
            { "key": "setting.is_widget", "operand": false }
        ]
    }

You can do something similar to fold/unfold all

@plato-cambrian
Copy link

Thanks @mmagnuski

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants