Compare commits

..

8 Commits

4 changed files with 14 additions and 2 deletions

View File

@ -35,6 +35,13 @@ Options:
sheetui path/to/file.xlsx # edit/view a spreadsheet sheetui path/to/file.xlsx # edit/view a spreadsheet
``` ```
### Supported files
Currently we only support the [ironcalc](https://docs.ironcalc.com/) xlsx
features for spreadsheet. CSV import and expor are planned.
### Screenshot
<img src="./assets/screenshot.png" /> <img src="./assets/screenshot.png" />
## Reference ## Reference

View File

@ -20,6 +20,13 @@ Options:
-V, --version Print version -V, --version Print version
``` ```
## Supported formats
Currently we only support the [ironcalc](https://docs.ironcalc.com/) xlsx
features for spreadsheet. I plan to handle csv import and export at some point.
I also might support other export formats as well but for the moment just csv
and it's variants such as tsv are in the roadmap.
## User Interface ## User Interface
The sheetui user interface is loosely inspired by vim. It is a modal interface The sheetui user interface is loosely inspired by vim. It is a modal interface

View File

@ -451,7 +451,6 @@ impl<'ws> Workspace<'ws> {
Ok(None) Ok(None)
} }
Ok(Some(Cmd::Quit)) => { Ok(Some(Cmd::Quit)) => {
// TODO(zaphar): We probably need to do better than this
Ok(Some(ExitCode::SUCCESS)) Ok(Some(ExitCode::SUCCESS))
} }
Ok(None) => { Ok(None) => {

View File

@ -155,7 +155,6 @@ impl<'ws> Viewport<'ws> {
let mut cells = vec![Cell::new(Text::from(ri.to_string()))]; let mut cells = vec![Cell::new(Text::from(ri.to_string()))];
cells.extend(visible_columns.iter().map( cells.extend(visible_columns.iter().map(
|VisibleColumn { idx: ci, length: _ }| { |VisibleColumn { idx: ci, length: _ }| {
// TODO(zaphar): Is this safe?
let content = self let content = self
.book .book
.get_cell_addr_rendered(&Address { row: ri, col: *ci }) .get_cell_addr_rendered(&Address { row: ri, col: *ci })