-
Notifications
You must be signed in to change notification settings - Fork 45
Added "Folding" Keybindings #4
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
Conversation
New keybindings z-c : close selected cell code z-o : open selected cell code z-m : close all cell code z-r : open all cell code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried this out and it works, it's definitely a great addition!
I made suggestions for the documentation language as these commands are really working with cell objects rather than lines of code as in normal vim. But I think it could definitely be merged as is.
Fixed language consistency. Co-Authored-By: Ian Hunt-Isaak <[email protected]>
Fix language consistency Co-Authored-By: Ian Hunt-Isaak <[email protected]>
@ianhi , I approved your changes to make the language more clear. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the feature!
@axelfahy thanks for adding! Does adding a new feature warrant a new release? |
@ianhhi you're welcome. I am not sure what you mean by warrant, but to make the feature available easily (without cloning and compiling), a new release has to be made. |
I've added the following keybindings to hide and show code blocks analogous to vim folding.
Z, C
hides the code in the selected cellZ, O
shows the code in the selected cellZ, M
hides the code in all cellsZ, R
shows the code in all cellsI also bumped the version and added these shortcuts to
README.md
.