mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 03:58:03 +02:00
table: Show truncated record differently (#6884)
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com> Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
This commit is contained in:
@ -71,6 +71,14 @@ impl Table {
|
||||
self.is_empty
|
||||
}
|
||||
|
||||
pub fn size(&self) -> (usize, usize) {
|
||||
(self.data.count_rows(), self.data.count_columns())
|
||||
}
|
||||
|
||||
pub fn is_with_index(&self) -> bool {
|
||||
self.with_index
|
||||
}
|
||||
|
||||
pub fn truncate(&mut self, width: usize, theme: &TableTheme) -> bool {
|
||||
let mut truncated = false;
|
||||
while self.data.count_rows() > 0 && self.data.count_columns() > 0 {
|
||||
|
Reference in New Issue
Block a user