Skip to content

"Shift + Enter" on a SQL cell could create a new SQL cell instead #6790

@hugoboia

Description

@hugoboia

Description

Shift+Enter on the last notebook cell runs it and inserts a new cell below. By default the new cell is a Python cell regardless of the previous cell’s type.

Suggested solution

That’s usually fine after a Markdown cell, as I think users rarely add multiple Markdown cells in a row. But for SQL cells, it’s reasonable to expect the next cell to match the previous one.

I know that the shortcut F4 can change the cell type, but I think it's more useful when inserting via "create cell before/after" shortcut, and Shift + Enter is more about "momentum", when running and creating cells in sequence, and this change could improve the flow.

Are you willing to submit a PR?

  • Yes

Alternatives

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions