generated from Xithrius/rust-binary-project-template
-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update keybinds in help window. (#41)
* Insert mode no longer accepts empty messages * Stored keybinds in static vectors * vector_column_max can now take any width 2D vector * Added more keys to the README.md tables. Also, added insert mode to the key.rs file because I forgot about it. * Appease Clippy
- Loading branch information
Showing
8 changed files
with
162 additions
and
51 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
use lazy_static::lazy_static; | ||
|
||
lazy_static! { | ||
pub static ref COLUMN_TITLES: Vec<&'static str> = vec!["Keybind", "Description"]; | ||
pub static ref NORMAL_MODE: Vec<Vec<&'static str>> = vec![ | ||
vec!["c", "Chat window"], | ||
vec!["i", "Insert mode"], | ||
vec!["?", "Bring up this window"], | ||
vec!["q", "Quit this application"], | ||
vec!["Esc", "Drop back to previous window layer"], | ||
]; | ||
pub static ref INSERT_MODE: Vec<Vec<&'static str>> = vec![ | ||
vec!["Ctrl + f", "Move cursor to the right"], | ||
vec!["Ctrl + b", "Move cursor to the left"], | ||
vec!["Ctrl + a", "Move cursor to the start"], | ||
vec!["Ctrl + e", "Move cursor to the end"], | ||
vec!["Alt + f", "Move to the end of the next word"], | ||
vec!["Alt + b", "Move to the start of the previous word"], | ||
vec!["Ctrl + t", "Swap previous item with current item"], | ||
vec!["Alt + t", "Swap previous word with current word"], | ||
vec!["Ctrl + u", "Remove everything before the cursor"], | ||
vec!["Ctrl + k", "Remove everything after the cursor"], | ||
vec!["Ctrl + w", "Remove the previous word"], | ||
vec!["Ctrl + d", "Remove item to the right"], | ||
vec!["Esc", "Drop back to previous window layer"], | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
pub mod chat; | ||
pub mod help; | ||
pub mod keys; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters