Moves the cursor to the end of the current textblock.
This command finds the containing textblock (navigating up from inline nodes if necessary) and positions the cursor at its end. This is useful for:
Implementing "End" key behavior at the block level
Quickly navigating to the end of paragraphs or headings
Providing text selection ending points
The command will fail if the cursor is not within a textblock.
Example
typescript
// Bind to End key for block-level navigationconst keymap = { End: selectTextblockEnd, "Mod-End": selectTextblockEnd,};// Create menu items for navigationconst menuItem = { label: "Jump to end of block", run: selectTextblockEnd,};