mirror of
https://github.com/nushell/nushell.git
synced 2025-08-15 02:32:51 +02:00
Fix typos by codespell (#7600)
# Description Found via `codespell -S target -L crate,ser,numer,falsy,ro,te,nd,bu,ndoes,statics,ons,fo,rouge,pard` # User-Facing Changes None. # Tests + Formatting None and done. # After Submitting None.
This commit is contained in:
@ -73,7 +73,7 @@ impl ViewCommand for TableCmd {
|
||||
Shortcode::new("Esc", "", "Exits cursor mode. Exits the just explored dataset."),
|
||||
Shortcode::new("i", "view", "Enters cursor mode to inspect individual cells"),
|
||||
Shortcode::new("t", "view", "Transpose table, so that columns become rows and vice versa"),
|
||||
Shortcode::new("e", "view", "Open expand view (equvalent of :expand)"),
|
||||
Shortcode::new("e", "view", "Open expand view (equivalent of :expand)"),
|
||||
Shortcode::new("Enter", "cursor", "In cursor mode, explore the data of the selected cell"),
|
||||
];
|
||||
|
||||
|
@ -77,8 +77,8 @@ fn eval_source2(
|
||||
return Err(ShellError::IOError(err.to_string()));
|
||||
}
|
||||
|
||||
// eval_block outputs all expressions expept the last to STDOUT;
|
||||
// we don't wont that.
|
||||
// eval_block outputs all expressions except the last to STDOUT;
|
||||
// we don't won't that.
|
||||
//
|
||||
// So we LITERALLY ignore all expressions except the LAST.
|
||||
if block.len() > 1 {
|
||||
|
@ -171,7 +171,7 @@ fn build_expanded_table(
|
||||
|
||||
match table {
|
||||
Some((mut table, with_header, with_index)) => {
|
||||
// controll width via removing table columns.
|
||||
// control width via removing table columns.
|
||||
let theme = load_theme_from_config(config);
|
||||
table.truncate(remaining_width, &theme);
|
||||
|
||||
|
@ -732,7 +732,7 @@ fn handle_event<V: View>(
|
||||
}
|
||||
}
|
||||
|
||||
// was not handled so we must check our default controlls
|
||||
// was not handled so we must check our default controls
|
||||
handle_general_key_events2(&key, search, command, view, info);
|
||||
|
||||
None
|
||||
|
@ -46,9 +46,9 @@ impl CommandRegistry {
|
||||
);
|
||||
}
|
||||
|
||||
pub fn create_aliase(&mut self, aliase: &str, command: &str) {
|
||||
pub fn create_aliase(&mut self, aliases: &str, command: &str) {
|
||||
self.aliases.insert(
|
||||
Cow::Owned(aliase.to_owned()),
|
||||
Cow::Owned(aliases.to_owned()),
|
||||
Cow::Owned(command.to_owned()),
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user