mirror of
https://github.com/nushell/nushell.git
synced 2025-08-11 05:44:22 +02:00
Bump tabled to 0.17 (#14415)
With this comes a new `unicode-width` as I remember there was some issue with `ratatui`. And a bit of refactorings which are ment to reduce code lines while not breaking anything. Not yet complete, I think I'll try to improve some more places, just wanted to trigger CI 😄 And yessssssssss we have a new `unicode-width` but I sort of doubtful, I mean the original issue with emojie. I think it may require an additional "clean" call. I am just saying I was not testing it with that case of complex emojies. --------- Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
This commit is contained in:
@ -22,7 +22,7 @@ pub use plugin_gc::{PluginGcConfig, PluginGcConfigs};
|
||||
pub use reedline::{CursorShapeConfig, EditBindings, NuCursorShape, ParsedKeybinding, ParsedMenu};
|
||||
pub use rm::RmConfig;
|
||||
pub use shell_integration::ShellIntegrationConfig;
|
||||
pub use table::{FooterMode, TableConfig, TableIndexMode, TableMode, TrimStrategy};
|
||||
pub use table::{FooterMode, TableConfig, TableIndent, TableIndexMode, TableMode, TrimStrategy};
|
||||
|
||||
mod ansi_coloring;
|
||||
mod completions;
|
||||
|
@ -277,6 +277,12 @@ pub struct TableIndent {
|
||||
pub right: usize,
|
||||
}
|
||||
|
||||
impl TableIndent {
|
||||
pub fn new(left: usize, right: usize) -> Self {
|
||||
Self { left, right }
|
||||
}
|
||||
}
|
||||
|
||||
impl IntoValue for TableIndent {
|
||||
fn into_value(self, span: Span) -> Value {
|
||||
record! {
|
||||
|
Reference in New Issue
Block a user