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

Select next notebook cell on first or last line of editor #13656

Merged
merged 1 commit into from
Apr 29, 2024

Conversation

jonah-iden
Copy link
Contributor

What it does

This replicates the behaviour of vscode when having the cursor on the first or last line in a cell editor and pressing up/down it will select the next/previous cell as if it was one text editor.

How to test

Open or create a notebook with multiple cells. Focus an editor and move up down through the cells with the arrow key

Follow-ups

there is not really a difference between edit and command mode currently in theias notebook editor. So when getting to a markdown cell and then moving to a code cell, it will not focus the editor again

Review checklist

Reminder for reviewers

Signed-off-by: Jonah Iden <jonah.iden@typefox.io>
@jonah-iden jonah-iden requested a review from msujew April 29, 2024 08:19
@msujew msujew changed the title select next node when on first or last line of editor Select next notebook cell on first or last line of editor Apr 29, 2024
Copy link
Member

@msujew msujew left a 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 👍

@jonah-iden jonah-iden merged commit 020a4cb into master Apr 29, 2024
13 of 14 checks passed
@jonah-iden jonah-iden deleted the jiden/focus-next-cell-when-last-line-selected branch April 29, 2024 14:44
@github-actions github-actions bot added this to the 1.50.0 milestone Apr 29, 2024
@msujew msujew added the notebook issues related to notebooks label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notebook issues related to notebooks
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants