forked from andonome/lk
		
	expand sc-im
This commit is contained in:
		| @@ -2,32 +2,46 @@ | ||||
| title: "sc-im" | ||||
| tags: [ "Documentation", "data" ] | ||||
| --- | ||||
|  | ||||
| - [Sample file](sc-im/sample.sc) | ||||
|  | ||||
| # Basic Commands | ||||
|  | ||||
| > H = highest part | ||||
| > L = lowest part | ||||
| > gg = top | ||||
| ## See Cells | ||||
|  | ||||
| > g$ = most right. | ||||
| > g0 = most left. | ||||
| Cells are hard to see. | ||||
| Change this with `:set autowrap`. | ||||
|  | ||||
| > \ = insert middle | ||||
| > \> = insert left | ||||
| > < = insert right | ||||
| Make `sc-im` always autowrap: | ||||
|  | ||||
| gb4 = to to cell b4 | ||||
| ```bash | ||||
| mkdir .config/sc-im/bash | ||||
| echo 'set autowrap' >> .config/sc-im/scimrc | ||||
| ``` | ||||
|  | ||||
| > aa = see all text in cells | ||||
| > f = format cells so you can see it. | ||||
| > fl = format wider right | ||||
| > fh = format smaller left | ||||
| ## Movement | ||||
|  | ||||
| > fj = format wider down | ||||
| > fk = format smaller down | ||||
| | 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  | | ||||
|  | ||||
| # Edit | ||||
| ## Edit | ||||
|  | ||||
| ## Text | ||||
| ### Text | ||||
|  | ||||
| | Action                | Key | | ||||
| |:----------------------|:---:| | ||||
| @@ -35,7 +49,7 @@ gb4 = to to cell b4 | ||||
| | text (right align)    | >   | | ||||
| | Edit existing  text   | E   | | ||||
|  | ||||
| ## Meta Actions | ||||
| ### Meta Actions | ||||
|  | ||||
| | Action                | Key | | ||||
| |:----------------------|:---:| | ||||
| @@ -48,7 +62,7 @@ gb4 = to to cell b4 | ||||
| |  delete a cell        | x   | | ||||
|  | ||||
|  | ||||
| ## Functions | ||||
| ### Functions | ||||
|  | ||||
| | Action                          | Key          | | ||||
| |:--------------------------------|:------------:| | ||||
| @@ -58,7 +72,7 @@ gb4 = to to cell b4 | ||||
| |  minimumof those numbers        | =@min(B1:B8) | | ||||
| |  multiply C1 to C8              | =@prod(C1:C8)| | ||||
|  | ||||
| ## Visual | ||||
| ### Visual | ||||
|  | ||||
| | Action                          | Key          | | ||||
| |:--------------------------------|:------------:| | ||||
|   | ||||
							
								
								
									
										38
									
								
								data/sc-im/sample.sc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								data/sc-im/sample.sc
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,38 @@ | ||||
| # This data file was generated by the Spreadsheet Calculator Improvised (sc-im) | ||||
| # You almost certainly shouldn't edit it. | ||||
|  | ||||
| newsheet "Sheet1" | ||||
| movetosheet "Sheet1" | ||||
| offscr_sc_cols 0 | ||||
| offscr_sc_rows 0 | ||||
| nb_frozen_rows 1 | ||||
| nb_frozen_cols 0 | ||||
| nb_frozen_screenrows 2 | ||||
| nb_frozen_screencols 0 | ||||
| format A 14 1 0 | ||||
| format B 18 2 0 | ||||
| format 0 2 | ||||
| freeze 0 | ||||
| label A0 = "Food by Weight" | ||||
| leftstring B0 = "No. Meals" | ||||
| leftstring A1 = "Ajvar" | ||||
| let A1 = 5 | ||||
| let B1 = A1*$A$10 | ||||
| leftstring A2 = "Apples" | ||||
| let A2 = 3 | ||||
| let B2 = A2*$A$10 | ||||
| leftstring A3 = "Rocket" | ||||
| let A3 = 0.2 | ||||
| let B3 = A3*$A$10 | ||||
| leftstring A4 = "Beli Cheese" | ||||
| let A4 = 1 | ||||
| let B4 = A4*$A$10 | ||||
| leftstring A6 = "Total" | ||||
| let A6 = @sum(A1:A4) | ||||
| leftstring B6 = "Total" | ||||
| let B6 = @sum(B1:B4) | ||||
| leftstring A7 = "Average" | ||||
| let A7 = @avg(A1:A4) | ||||
| leftstring A10 = "Weight of Meal" | ||||
| let A10 = 0.3 | ||||
| goto B7 | ||||
		Reference in New Issue
	
	Block a user