summaryrefslogtreecommitdiffstats
path: root/zellij-tile/src
diff options
context:
space:
mode:
authorBrooks J Rady <b.j.rady@gmail.com>2021-03-23 16:42:54 +0000
committerBrooks J Rady <b.j.rady@gmail.com>2021-03-23 16:42:54 +0000
commit9bc7a268ce18b8e1f8d60f476903a6832f946de6 (patch)
treed7c81b6af7b79dfb62951ab494a4b2de70d9234d /zellij-tile/src
parenta1e6171031dbf6f3285a99a84555a13f7ce88127 (diff)
parent46c9802f6fd7cf37dab6c775554a9b7b9aa39bfd (diff)
Merge changes from main
Diffstat (limited to 'zellij-tile/src')
-rw-r--r--zellij-tile/src/data.rs11
1 files changed, 5 insertions, 6 deletions
diff --git a/zellij-tile/src/data.rs b/zellij-tile/src/data.rs
index 2979bece0..2a03b94c7 100644
--- a/zellij-tile/src/data.rs
+++ b/zellij-tile/src/data.rs
@@ -35,13 +35,12 @@ pub enum Event {
/// Describes the different input modes, which change the way that keystrokes will be interpreted.
#[derive(Debug, PartialEq, Eq, Hash, Copy, Clone, EnumIter, Serialize, Deserialize)]
pub enum InputMode {
- /// In `Normal` mode, input is always written to the terminal, except for one special input that
- /// triggers the switch to [`InputMode::Command`] mode.
+ /// In `Normal` mode, input is always written to the terminal, except for the shortcuts leading
+ /// to other modes
Normal,
- /// In `Command` mode, input is bound to actions (more precisely, sequences of actions).
- /// `Command` mode gives access to the other modes non-`InputMode::Normal` modes.
- /// etc.
- Command,
+ /// In `Locked` mode, input is always written to the terminal and all shortcuts are disabled
+ /// except the one leading back to normal mode
+ Locked,
/// `Resize` mode allows resizing the different existing panes.
Resize,
/// `Pane` mode allows creating and closing panes, as well as moving between them.