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

Code Block do not support shortcuts #155

Open
1 of 2 tasks
Bad3r opened this issue Nov 3, 2024 · 2 comments
Open
1 of 2 tasks

Code Block do not support shortcuts #155

Bad3r opened this issue Nov 3, 2024 · 2 comments
Labels

Comments

@Bad3r
Copy link

Bad3r commented Nov 3, 2024

Search first

  • I searched and no similar issues were found

What Happened?

With recent changes preventing access to code block edit mode (editing code blocks as plain text outside of CodeMirror), users are no longer able to change the indentation within code blocks using the keyboard shortcuts Tab or Shift+Tab. The current workaround is dragging the block.

Reproduce the Bug

  1. Create or open a code block in the editor.
  2. Attempt to adjust the indentation using Tab or Shift+Tab.
  3. Observe that the shortcuts do not change the indentation as expected.

Expected Behavior

The Tab shortcut should increase the indentation, and Shift+Tab should decrease it within code blocks.

Screenshots

No response

Browser, Desktop or Mobile Platform Information

No response

Additional Context

No response

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)
@Bad3r Bad3r changed the title Cannot Adjust Code Block Indentation Using Tab/Shift+Tab Shortcuts Code Block do not support shortcuts Nov 3, 2024
@Bad3r
Copy link
Author

Bad3r commented Nov 3, 2024

Updated the issue title since it also doesn't support block selecting via CTRL+A to select multiple blocks by continuously pressing it.

@Bad3r
Copy link
Author

Bad3r commented Nov 3, 2024

I know this introduces a challenge with in-code-block shortcuts and global/logseq shortcuts.
There are workarounds but they are all clunky and result in a bad user experience.

Its likely that other introduced block types suffer from the same issue.

@xyhp915 xyhp915 added the ux label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants