-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
PR: Add same behaviour for go to previous cell as the one in Matlab #4612
Conversation
Nice! @rlaverde, please take a look at this one. @liavassif, is this what you want? |
@ccordoba12 Yes! |
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 didn't know how "move to the previous cell" works in other IDEs, and added an extra loop to move to the start of the cell (and then to the previous cell), delete this loop was the right thing to do.
while not self.is_cell_separator(cursor): | ||
# Moving to the previous code cell | ||
if self.is_cell_separator(cursor): | ||
# Move to the previous cell |
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.
Maybe explain the behavior in the comment, not always will move to the previous cell: "Move to the previous cell or the beginning of the current cell"
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.
@rlaverde I made the change in the comment below this one, it's ok there or should I make the change here?
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.
Yes, It's ok, It's even better where you did the change
Fixes #4611
Preview:
