Skip to content

Commit 5441e4f

Browse files
committed
docs: Add new ignored words and files
The commit adds new ignored words and files to improve spell checking accuracy. Signed-off-by: Salvydas Lukosius <ss-o@users.noreply.github.com>
1 parent 327a9c0 commit 5441e4f

File tree

4 files changed

+97
-1070
lines changed

4 files changed

+97
-1070
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,74 @@
1+
actlen
2+
addwin
13
altmark
4+
assgn
25
autoload
36
bindkey
7+
bools
8+
BTAB
9+
builtins
10+
cidx
11+
circpath
412
colorpair
13+
curx
14+
cvar
515
datetime
16+
delwin
17+
dirpath
18+
elems
19+
ganchor
620
ganchors
21+
hidx
22+
hpfx
23+
iidx
24+
isset
25+
lanchors
26+
lbox
727
linerev
828
lineund
929
lzui
30+
midx
1031
nmap
1132
nohyp
33+
NONSELECTABLE
34+
nonselectables
35+
obal
36+
regen
37+
Regen
38+
SBUFFER
39+
segs
40+
sidx
41+
SIDX
42+
skeys
43+
slist
44+
stalog
1245
stdlib
46+
stext
47+
strftime
1348
syslib
49+
tfield
50+
THEWORD
51+
timestr
1452
unfunction
1553
usetty
1654
utillib
55+
varname
56+
xpos
57+
ypos
1758
zcurses
59+
zgen
60+
Zgen
1861
zmodload
1962
zstat
2063
zstyle
64+
zuiaction
65+
zuianchor
66+
zuianchoraglobal
67+
zuicheckbox
68+
zuieanchor
69+
zuiel
70+
zuiiaction
71+
zuilbox
72+
ZUILIST
73+
zuilog
74+
zuitfield

.github/.cspell/project-words.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1+
EPOCHSECONDS
12
FPATH
3+
mbegin
24
PMSPEC
5+
setopt
6+
subshell
7+
unsetopt
8+
zcompile
39
Zshell
410
ZSTYLES

docs/README.md

Lines changed: 37 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,72 +9,82 @@
99

1010
## ZUI – CGI+DHTML-like User Interface Library for Zsh / ZCurses
1111

12-
This is a RAD (Rapid Application Development) textual user interface library for Zsh. It in many aspects resembles a typical CGI+(D)HTML setup. There are:
12+
This is a RAD (Rapid Application Development) textual user interface library for Zsh.
1313

14-
- generators ran on the "server" side (basic Zshell-code that is just generating text!),
15-
- event loop that turns the generated text into a document with active elements (buttons, anchors, toggle buttons, text fields, list boxes),
16-
- mechanism to regenerate document parts from the original generators.
14+
It in many aspects resembles a typical CGI+(D)HTML setup. There are:
15+
16+
- generators ran on the "server" side (basic Zshell code that is just generating text!)
17+
- event loop that turns the generated text into a document with active elements (buttons, anchors, toggle buttons, text fields, list boxes)
18+
- mechanism to regenerate document parts from the original generators
1719

1820
So, a Zshell code generates text. It is then turned into a document with hyperlinks. DHTML-like calls are possible that will regenerate document parts on the fly. Page can be also reloaded with input data, just like an HTML page.
1921

2022
A voiced [video tutorial](https://youtu.be/TfZ8b_RS_Bg) shows how to create an application – Nmap network scanner frontend.
2123

22-
> See also [ZSTYLES](ZSTYLES.md)
24+
> More: [zstyles](ZSTYLES.md), [demos](https://github.com/z-shell/zui/blob/main/demos/zui-demo-list-boxes)
25+
26+
The API is described in the [wiki](https://wiki.zshell.dev/ecosystem/plugins/zui).
2327

2428
## Hello World
2529

30+
Enable demo functions before loading the plugin:
31+
2632
```zsh
27-
# Started from Zle or from command line
33+
typeset -A ZUI
34+
ZUI[DEMOS]=1
35+
```
2836

37+
Started from Zle or the command line:
38+
39+
```zsh
2940
-zui_std_cleanup deserialize:"zui-demo-hello-world"
3041
-zui_std_init app:"zui-demo-hello-world" app_name:"ZUI Hello World"
31-
emulate -LR zsh -o extended_glob -o typeset_silent -o warn_create_global
32-
-zui_std_init2 # after emulate -LR
3342

43+
emulate -LR zsh
44+
setopt extended_glob typeset_silent warn_create_global
45+
46+
-zui_std_init2 # after emulate -LR
3447
-zui_std_store_default_app_config b:border 1
3548

3649
demo_generator_A() {
37-
local mod="$1" ice="$2"
38-
# Content, no hyper-links
39-
reply=( "Hello World from ${ZUI[YELLOW]}ZUI${ZUI[FMT_END]}! Module $mod, instance $ice." )
40-
# Non-selectable lines Hops to jump with [ and ] Local anchors
41-
reply2=( ) reply3=( 1 ) reply4=( )
50+
local mod="$1" ice="$2"
51+
# Content, no hyper-links
52+
reply=( "Hello World from ${ZUI[YELLOW]}ZUI${ZUI[FMT_END]}! Module $mod, instance $ice." )
53+
# Non-selectable lines Hops to jump with [ and ] Local anchors
54+
reply2=( ) reply3=( 1 ) reply4=( )
4255
}
56+
```
4357

44-
## Start application ##
58+
Start application:
59+
60+
```zsh
4561
zui-event-loop 1:demo_generator_A
4662

4763
-zui_std_cleanup serialize
4864
```
4965

50-
Other example which uses list-box: [zui-demo-list-box](https://github.com/z-shell/zui/blob/main/demos/zui-demo-list-boxes)
51-
52-
The API is described in the [wiki](https://wiki.zshell.dev/ecosystem/plugins/zui).
53-
5466
## Installation
5567

56-
**The plugin is "standalone"**, which means that only sourcing it is needed. To install, unpack `zui` somewhere and add to `zshrc`:
68+
**The plugin is "standalone"**, which means that only sourcing it is needed. To install, unpack <samp>zui</samp> and load from <samp>.zshrc</samp>:
5769

5870
```zsh
5971
source {where-zui-is}/zui.plugin.zsh
6072
```
6173

62-
If using a plugin manager, then `Zi` is recommended, but you can use any other too, and also install with `Oh My Zsh` (by copying the directory to `~`/.oh-my-zsh/custom/plugins`).
63-
6474
### [Zi](https://github.com/z-shell/zi)
6575

66-
Add `zi load z-shell/zui` to your `.zshrc` file. ZI will handle the rest automatically the next time you start zsh. To update (i.e. to pull from origin) issue `zi update z-shell/zui`.
76+
Add <samp>zi load z-shell/zui</samp> to your <samp>.zshrc</samp> file. ZI will handle the rest automatically the next time you start zsh. To update (i.e. to pull from origin) issue <samp>zi update z-shell/zui</samp>.
6777

6878
### Antigen
6979

70-
Add `antigen bundle z-shell/zui` to your `.zshrc` file. Antigen will handle cloning the plugin for you automatically the next time you start zsh.
80+
Add <samp>antigen bundle z-shell/zui</samp> to your <samp>.zshrc</samp> file. Antigen will handle cloning the plugin for you automatically the next time you start zsh.
7181

7282
### Oh-My-Zsh
7383

74-
1. `cd ~/.oh-my-zsh/custom/plugins`
75-
2. `git clone git@github.com:z-shell/zui.git`
76-
3. Add `zui` to your plugin list
84+
1. <samp>cd ~/.oh-my-zsh/custom/plugins</samp>
85+
2. <samp>git clone https://github.com/z-shell/zui.git</samp>
86+
3. Add <samp>zui</samp> to your plugin list
7787

7888
### Zgen
7989

80-
Add `zgen load z-shell/zui` to your .zshrc file in the same place you're doing your other `zgen load` calls in.
90+
Add <samp>zgen load z-shell/zui</samp> to your .zshrc file in the same place you're doing your other <samp>zgen load</samp> calls in.

0 commit comments

Comments
 (0)