public abstract class Mode extends Object
The current mode of the editor state machine. It decodes a command line operation according to the current status and its possible state and provide an editor action that will modify the state of the editor.
| Modifier and Type | Class and Description |
|---|---|
static class |
EditorAction.History |
static class |
Mode.ChangeChar |
static class |
Mode.Digit |
| Modifier and Type | Field and Description |
|---|---|
static Mode |
CHANGE_TO |
static Mode |
DELETE_TO |
static Mode |
EMACS |
static Mode |
VI_INSERT |
static Mode |
VI_MOVE |
static Mode |
YANK_TO |
| Constructor and Description |
|---|
Mode() |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
getKeyMap() |
org.crsh.console.EditorAction |
on(org.crsh.console.KeyStroke keyStroke)
Transform a key stroke into a editor action.
|
org.crsh.console.EditorAction |
repeat(int count) |
org.crsh.console.EditorAction |
then(org.crsh.console.EditorAction action) |
abstract String |
toString() |
public static final Mode EMACS
public static final Mode VI_INSERT
public static final Mode VI_MOVE
public static final Mode DELETE_TO
public static final Mode CHANGE_TO
public static final Mode YANK_TO
public abstract String getKeyMap()
public org.crsh.console.EditorAction on(org.crsh.console.KeyStroke keyStroke)
keyStroke - the key strokepublic org.crsh.console.EditorAction then(org.crsh.console.EditorAction action)
public org.crsh.console.EditorAction repeat(int count)
Copyright © 2015 eXo Platform SAS. All Rights Reserved.