Overview
The Jump extension provides the toolbar UI for jumping to the specified line.
| Keys | Description |
|---|---|
| Ctrl+G | Display the Jump toolbar |
| Esc | Hide the toolbar |
Usage
Register the Toolbar and Jump component:
import { RyuseiCode, Toolbar, Jump } from '@ryusei/code';
RyuseiCode.compose( { Toolbar, Jump } );
or import files:
<script src="path-to-the-file/toolbar.min.js"></script> <script src="path-to-the-file/jump.min.js"></script>
Options
Set an object to jump to update default options,
or false to deactivate it.
new RyuseiCode( { jump: { ... } } );
// or
new RyuseiCode( { jump: false } );
hideLocation
Determines whether to hide the current location on the toolbar or not.
type: boolean default: undefined