lk/data/sc-im.md

81 lines
2.1 KiB
Markdown
Raw Normal View History

2022-01-16 18:20:39 +00:00
---
title: "sc-im"
tags: [ "Documentation", "data" ]
---
2024-11-14 16:54:18 +00:00
- [Sample file](sc-im/sample.sc)
2020-01-02 00:04:35 +00:00
# Basic Commands
2024-11-14 16:54:18 +00:00
## See Cells
2020-01-02 00:04:35 +00:00
2024-11-14 16:54:18 +00:00
Cells are hard to see.
Change this with `:set autowrap`.
2020-01-02 00:04:35 +00:00
2024-11-14 16:54:18 +00:00
Make `sc-im` always autowrap:
2020-01-02 00:04:35 +00:00
2024-11-14 16:54:18 +00:00
```bash
mkdir .config/sc-im/bash
echo 'set autowrap' >> .config/sc-im/scimrc
```
2020-01-02 00:04:35 +00:00
2024-11-14 16:54:18 +00:00
## Movement
2020-01-02 00:04:35 +00:00
2024-11-14 16:54:18 +00:00
| Command | Key |
|:------------------------------------|:---:|
| highest part | H |
| lowest part | L |
| top | gg |
| most right. | g$ |
| most left. | g0 |
| insert middle | \ |
| insert left | \> |
| insert right | < |
| to to cell b4 | gb4 |
| see all text in cells | aa |
| format cells so you can see it. | f |
| format wider right | fl |
| format smaller left | fh |
| format wider down | fj |
| format smaller down | fk |
2020-01-02 00:04:35 +00:00
2024-11-14 16:54:18 +00:00
## Edit
2020-01-02 00:04:35 +00:00
2024-11-14 16:54:18 +00:00
### Text
2022-07-09 17:46:55 +00:00
| Action | Key |
|:----------------------|:---:|
| text (left align) | < |
| text (right align) | > |
| Edit existing text | E |
2024-11-14 16:54:18 +00:00
### Meta Actions
2022-07-09 17:46:55 +00:00
| Action | Key |
|:----------------------|:---:|
| edit a number | e |
| delete column | dc |
| yank column | yc |
| delete row | dr |
| literal paste | p |
| paste with format | Pc |
| delete a cell | x |
2024-11-14 16:54:18 +00:00
### Functions
2020-01-02 00:04:35 +00:00
2022-12-21 22:30:20 +00:00
| Action | Key |
|:--------------------------------|:------------:|
| add A1 to A4 | =@sum(A1:A4) |
| average B1 to B4 | =@avg(B1:B4) |
| maximum of those numbers | =@max(B1:B4) |
| minimumof those numbers | =@min(B1:B8) |
| multiply C1 to C8 | =@prod(C1:C8)|
2020-01-02 00:04:35 +00:00
2024-11-14 16:54:18 +00:00
### Visual
2020-01-02 00:04:35 +00:00
2022-07-09 17:46:55 +00:00
| Action | Key |
|:--------------------------------|:------------:|
| Increase decimals | f- |
| Decrease decimals | f+ |