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 #### Input
+ 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.
**<inspect>** **<inspect>**
@ -146,23 +106,35 @@ Pop result frame.
Echo entry value and exit with success. 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 ## Format
``` ```
%[flags][width]<specifier> %[flags][width]<specifier>
``` ```
#### flags #### Flags
``` ```
- : left-justify within [width] - : left-justify within [width]
\# : relative (has effect on time specifiers) # : relative (has effect on time specifiers)
``` ```
#### width #### Width
+ number of characters to align to + number of characters to align to
#### specifiers #### Specifiers
These specifiers root mainly from the C stdlib. These specifiers root mainly from the C stdlib.
``` ```
@ -188,3 +160,14 @@ T : ISO 8601 time format ("HH:MM:SS")
# Environment # Environment
HISTUIFILE : histuidb to be used HISTUIFILE : histuidb to be used
+---+---------------+
| p | ssh nigger |
| o | ssh hot@nigger|
| s | ssh nigger1 |
+---+---------------+
| ruler |
+-------------------+
| ssh nigger |
+-------------------+