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

Make tab and shift-tab change ordered/unordered list level #31885

Closed
andfinally opened this issue May 17, 2021 · 2 comments
Closed

Make tab and shift-tab change ordered/unordered list level #31885

andfinally opened this issue May 17, 2021 · 2 comments
Labels
[Block] List Affects the List Block [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Enhancement A suggestion for improvement. [Type] Feedback Issues that relate purely to feedback on a feature that isn't necessarily actionable

Comments

@andfinally
Copy link

andfinally commented May 17, 2021

What problem does this address?

Whenever I'm creating a bulleted list, I instinctively tap the tab key or shift/tab combination to change the indent level of the list item, and I'm always frustrated when I rediscover for the umpteenth time that Gutenberg doesn't support it. It's an almost universal convention, used in MS Word, VSCode, tinyMCE and many other editors. The current shortcuts – space and backspace – feel idiosyncratic.

The way they work is also not very convenient, because your cursor needs to be positioned at the start of the list item, otherwise they do what space and backspace normally do. You can't type or paste the list item content in and then change the indent – you have to go searching for the start of the line first.

What is your proposed solution?

When a bullet list or numbered list is selected in the editor, or the cursor is anywhere in a list item, make tab increase the list item indent level and shift-tab decrease it.

@skorasaurus skorasaurus added [Type] Enhancement A suggestion for improvement. [Block] List Affects the List Block [Type] Feedback Issues that relate purely to feedback on a feature that isn't necessarily actionable [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed labels May 18, 2021
@skorasaurus
Copy link
Member

Hi,

Thanks for reporting. The tab and shift/tab combination because TAB is used as a keyboard shortcut to navigate to other parts of the block editor; there's discussion about this at #8356 and #7051

Secondly, you can go to the beginning of a line by using the keyboard shortcut Ctrl and the left arrow key.

@andfinally
Copy link
Author

Hm, I see! Thanks @skorasaurus, sorry about the duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] List Affects the List Block [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Enhancement A suggestion for improvement. [Type] Feedback Issues that relate purely to feedback on a feature that isn't necessarily actionable
Projects
None yet
Development

No branches or pull requests

2 participants