Skip to content

Conversation

@topherhunt
Copy link
Contributor

@topherhunt topherhunt commented Feb 6, 2024

This PR adds a keyboard shortcut to toggle the expanded/collapsed state of the currently edited or selected block(s), addressing requests made here:

The new keybinding defaults to mod + ; by default. It works by checking whether the focused block is currently expanded or collapsed, and invoking collapse! or expand! respectively. Scenarios where the whiteboard UI is active, or where no block is currently being edited/selected, are left as no-ops for now.

@xyhp915 xyhp915 requested review from andelf and xyhp915 February 18, 2024 04:58
Copy link
Collaborator

@andelf andelf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Works as expected.

@andelf andelf merged commit 2bbd1bf into logseq:master Feb 20, 2024
@topherhunt topherhunt deleted the th/shortcut-toggle branch February 20, 2024 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants