Skip to content

feat: add keyboard shortcuts and clickable nodes to the preview - #76

Open
Xiao-Chenguang wants to merge 1 commit into
markmap:masterfrom
Xiao-Chenguang:feat/preview-shortcuts
Open

feat: add keyboard shortcuts and clickable nodes to the preview#76
Xiao-Chenguang wants to merge 1 commit into
markmap:masterfrom
Xiao-Chenguang:feat/preview-shortcuts

Conversation

@Xiao-Chenguang

Copy link
Copy Markdown
  • Add single-key shortcuts when the preview is focused: F (fit window size), R (toggle recursively), +/- (zoom in/out), E/C (expand/collapse all), T (toggle the highlighted node), ? (shortcut help)
  • Sync the state of toolbar buttons with the shortcuts
  • Toggle a node by clicking anywhere on it, not only the circle; Ctrl/Cmd+click inverts the toggle-recursively mode
  • Fix the 'Toggle the active node' commands, which never worked because the active node was not tracked

- Add single-key shortcuts when the preview is focused: F (fit window
  size), R (toggle recursively), +/- (zoom in/out), E/C (expand/collapse
  all), T (toggle the highlighted node), ? (shortcut help)
- Sync the state of toolbar buttons with the shortcuts
- Toggle a node by clicking anywhere on it, not only the circle;
  Ctrl/Cmd+click inverts the toggle-recursively mode
- Fix the 'Toggle the active node' commands, which never worked because
  the active node was not tracked
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.

1 participant