Overview

The Jump extension provides the toolbar UI for jumping to the specified line.

KeysDescription
Ctrl+GDisplay the Jump toolbar
EscHide the toolbar

Usage

Register the Toolbar and Jump component:

import { RyuseiCode, Toolbar, Jump } from '@ryusei/code';
RyuseiCode.compose( { Toolbar, Jump } );
JavaScript

or import files:

<script src="path-to-the-file/toolbar.min.js"></script>
<script src="path-to-the-file/jump.min.js"></script>
HTML

Options

Set an object to jump to update default options, or false to deactivate it.

new RyuseiCode( { jump: { ... } } );
// or
new RyuseiCode( { jump: false } );
JavaScript

hideLocation

Determines whether to hide the current location on the toolbar or not.

type: boolean default: undefined