ste.1.in (3021B)
1 .Dd %DATE% 2 .Dt STE 1 3 .Os 4 .Sh NAME 5 .Nm ste 6 .Nd Simple table editor 7 .Sh SYNOPSIS 8 .Nm 9 .Op Fl hVv 10 .Nm 11 .Op Ar tsvfile.tsv 12 .Sh DESCRIPTION 13 .Nm 14 is a simple interactive CLI table editor. 15 It uses 16 .Xr table 1 17 to display and a number of POSIX shell scripts, which use 18 .Xr vipe 1 19 from moreutils to edit files in TSV (Tab Separated Values) format. 20 . 21 .Bl -tag -width "-h " -offset indent 22 .It Fl h 23 Prints usage information. 24 .It Fl V 25 Prints full version information (like 26 .Fl v Ns , 27 followed by copyright notice and global options set in 28 .Pa ste.in Ns 29 ). 30 .It Fl v 31 Prints version and commit date. 32 .El 33 . 34 .Sh INTERACTIVE COMMANDS 35 .Nm 36 accepts interactive commands in its command interface. 37 Accepted commands are: 38 . 39 .Bl -tag -width "help , h" -offset indent 40 . 41 .It Ic / Oo Ar colno Oc Ar text 42 Search for 43 .Ar text 44 in all columns, continuing the search downwards as needed. 45 If 46 .Ar colno 47 is given, limit the search to column number 48 .Ar colno 49 (1\-based). 50 .Pp 51 When the last row was reached without a match, the user will be prompted to 52 continue the search from the first row. 53 . 54 .It Ic = 55 Show current row. 56 . 57 .It Ic cols Op Ar amount 58 Set screen width in columns to 59 .Ar amount . 60 The value of 0 causes 61 .Nm 62 to autodetect screen width on each cycle. 63 If 64 .Ar amount 65 is omitted, show current screen width. 66 . 67 .It Ic delete , Ic x 68 Delete the current table row. 69 . 70 .It Ic edit , Ic e 71 Edit the current table row. 72 . 73 .It Ic exit , Ic q 74 Exit 75 .Nm . 76 . 77 .It Ic G 78 Set current row to last. 79 . 80 .It Ic g Op Ar num 81 Set current table row to 82 .Ar num 83 (header = 0). 84 If 85 .Ar num 86 is not present, set current row to header row. 87 . 88 .It Ic help Oo Ar command Oc , Ic h Op Ar command 89 Show help 90 .Po about a Ar command Pc . 91 If the argument 92 .Ar command 93 is omitted, briefly list all commands. 94 . 95 .It Ic insert Oo - | + Oc , Ic i Oo - | + Oc 96 Add a row to the table before 97 .Pq Ar - 98 or after 99 .Pq Ar + 100 the current line, or, without arguments, to the end of table. 101 . 102 .It Ic J Op Ar num 103 Move the current row down 104 .Ar num 105 rows. 106 If 107 .Ar num 108 is omitted, move the row down. 109 . 110 .It Ic j Op Ar num 111 Move the current row pointer down 112 .Ar num 113 rows. 114 If 115 .Ar num 116 is omitted, move the row pointer down. 117 . 118 .It Ic K Op Ar num 119 Move the current row up 120 .Ar num 121 rows. 122 If 123 .Ar num 124 is omitted, move the row up. 125 . 126 .It Ic k Op Ar num 127 Move the current row pointer up 128 .Ar num 129 rows. 130 If 131 .Ar num 132 is omitted, move the row pointer up. 133 . 134 .It Ic n 135 Find next occurence of previously searched text. 136 If the argument 137 .Ar colno 138 was given in the last search, the search will reuse it. 139 . 140 .It Ic print , Ic p 141 Print (redraw) the table. 142 . 143 .It Ic rows Op Ar amount 144 Set screen height in lines to 145 .Ar amount . 146 The value of 0 causes 147 .Nm 148 to autodetect screen height on each cycle. 149 If 150 .Ar amount 151 is omitted, show current screen height. 152 . 153 .It Ic set Op Ar [no]option 154 Turn option on/off. 155 If argument is omitted, show all current option states. 156 .El 157 .Sh SEE ALSO 158 .Xr table 1 , 159 .Xr transpose 1 , 160 .Xr tsvdel 1 , 161 .Xr tsvedit 1 , 162 .Xr tsvfind 1 , 163 .Xr tsvins 1 , 164 .Xr tsvmove 1 , 165 .Xr vipe 1 166 .Sh AUTHORS 167 .An Strahinya Radich Aq Mt sr@strahinja.org , 168 2023\-2026