-
Notifications
You must be signed in to change notification settings - Fork 0
Components
Transgenesis UI is split up into several components that make up each Editor.
This component handles command input
- Left arrow (without Shift): Cursor left
- Right arrow (without Shift): Cursor right
- Backspace: Delete character behind cursor
- Delete: TO DO
- Enter: Enters the command (handled by the Editor)
This component lists autocomplete suggestions and lets you select one or none. It handles the selection part; option are populated manually by the Editor. The options are manually formatted into dynamically sized columns and the selected option is highlighted in inverted colors.
- Up arrow: Move selection up
- Down arrow: Move selection down
- Spacebar: Enters the suggestion into the Input. Hold down Shift to place a regular space
- Enter: Automatically clears the listing since the command is entered
This component displays help text below the Input. Text content is manually managed by the Editor. When the input is empty, it usually displays keyboard shortcut information; otherwise, it displays info for the current command.
This component allows you to select a previously entered command.
- Up arrow + Shift: Selects the previous entry in history
- Down arrow + Shift: Selects the next entry in history
- Enter: Resets the index as command is entered. The Editor must call
Record()
to record the entered command in history.
This component displays the visible portion of Editor content and supports scrolling. Additional scrolling options are handled by the Editor.
- Page up: Scroll up
- Page down: Scroll down