Compare commits

..

2 Commits

Author SHA1 Message Date
20ed78b32a removed modes 2024-02-10 19:28:41 +01:00
8fb2fbce3d autism fixes 2024-02-10 19:27:08 +01:00

View File

@ -83,47 +83,7 @@ $ histui tui [options]
+-------------------+
```
### Modes
+ the reason why we have modes is to make both
inspecting and selection entries,
and searching/filtering entries piss easy
##### Normal mode
The user may move up and down freely on the list
with any prefered binding (Vimlike by default),
or repeat a motion by specifying a repeat count
before any motion.
**\[repeat\]\<motion\>**
move around
**:<int>**
Jump to Nth entry.
#### Result stack
Everytime the user issues a search,
or inspects an item
the result stack is pushed.
The top search frame can/will be
overwritten.
The user may pop or clear by hand.
The result stack is NOT persistent between sessions.
#### Command mode
Every character entered narrows the list of results.
The user may use altered {ctrl+n} or special {arrow} keys
to navigate the results,
but may be unable to issue repeats or jumps.
#### Global input
Do note that these actions may have
different bindings in different modes.
#### Input
**<inspect>**
@ -146,23 +106,35 @@ Pop result frame.
Echo entry value and exit with success.
### Result stack
Everytime the user issues a search,
or inspects an item
the result stack is pushed.
The top search frame can/will be
overwritten.
The user may pop or clear by hand.
The result stack is NOT persistent between sessions.
## Format
```
%[flags][width]<specifier>
```
#### flags
#### Flags
```
- : left-justify within [width]
\# : relative (has effect on time specifiers)
# : relative (has effect on time specifiers)
```
#### width
#### Width
+ number of characters to align to
#### specifiers
#### Specifiers
These specifiers root mainly from the C stdlib.
```
@ -174,8 +146,8 @@ A : full weekday name
u : ISO 8601 decimal week day weekday (1-7)
b : short month name
B : full month name
C : year (integer) devided by 100
d : day of the month; 0 padded {"09"}
C : year (integer) devided by 100
d : day of the month; 0 padded {"09"}
D : short date ("MM/DD/YY")
H : hour in 24h format {18}
I : hour in 12h format {06}; 0 padded
@ -188,3 +160,14 @@ T : ISO 8601 time format ("HH:MM:SS")
# Environment
HISTUIFILE : histuidb to be used
+---+---------------+
| p | ssh nigger |
| o | ssh hot@nigger|
| s | ssh nigger1 |
+---+---------------+
| ruler |
+-------------------+
| ssh nigger |
+-------------------+