Debian Codegraph @

docs/ChangeLog.md

raw symbols SCIP
1 <!---------------------------------------------------------------------------->
2 # ble-0.4.0-devel4
3
4 2023-04-03... (`#D2030`...) 1a5c451c...
5
6 ## New features
7
8 - Bash 5.3 support
9 - syntax: support bash-5.3 function subst `${ list; }` `#2045` 0906fd95 71272a4b
10 - decode(bind): support the colonless form of `bind -x` of bash-5.3 `#D2106` 78d7d2e3
11 - util(joblist): fix job detection in Bash 5.3 `#D2157` 6d835818
12 - util(joblist): exclude more foreground dead jobs in Bash 5.3 `#D2174` 8a321424
13 - global: work around function names with slashes in Bash 5.3 POSIX mode `#D2221` 48c7bbee
14 - main: fix workaround for the posix vi-insert <kbd>C-i</kbd> binding in `bash <= 5.0` (reported by vasi786) `#D2243` 8e7ed824
15 - main: update the startup message for debug versions of Bash `#D2222` afb29073
16 - main: shorten the startup message for debug versions `#D2241` 0bc8610a
17 - main: suppress `--bash-debug-version` in `ble-reload` `#D2275` ec422115
18 - main (`ble/base/check-bash-debug-version`): print messages to stderr `#D2239` 8904d588
19 - decode(read-user-settings): read the colonless form of `bind -x` of Bash 5.3 `#D2233` 62b23b69
20 - progcomp: use Bash 5.3 `compgen -V` for completions with newlines (motivated by RBT22) `#D2253` 0e8c388a
21 - progcomp: fix a bug that `x` at the end of the last completion is trimmed `#D2308` d9faeb37
22 - main: fix attach failure with `--attach=prompt` in Bash 5.3 POSIX mode `#D2267` 49845707
23 - syntax: fix a problem that `$_` is not preserved `#D2269` e053690d
24 - keymap/vi: support bash-5.3 readline bindable function `bash-vi-complete` in `vi_nmap` `#D2305` 55e0ee71
25 - syntax: parse function name as a word `#D2360` 72364a51
26 - util (`ble/builtin/trap/invoke.sandbox`): set `BASH_TRAPSIG` `#D2364` 858630e5
27 - bgproc: support opts `kill9-timeout=TIMEOUT` `#D2034` 3ab41652
28 - progcomp(cd): change display name and support mandb desc (requested by EmilySeville7cfg) `#D2039` 74402098
29 - cmdspec: add completion options for builtins (motivated by EmilySeville7cfg) `#D2040` 9bd24691
30 - complete: support `bleopt complete_requote_threshold` (requested by rauldipeas) `#2048` bb7e118e
31 - menu (`ble/widget/menu/append-arg`): add option `bell` (motivated by bkerin) `#D2066` 3f31be18 bbf3fed3
32 - make: support `make uninstall` `#D2068` a39a4a89
33 - edit: support `bleopt {edit_marker{,_error},exec_exit_mark}` `#D2079` e4e1c874
34 - edit: add widget `zap-to-char` `#D2082` ce7ce403
35 - keymap/vi: split widget `text-object` into `text-object-{inner,outer}` (requested by Darukutsu) `#D2093` 11cf118a
36 - keymap/vi: implement text-object in xmap for brackets (requested by Darukutsu) `#D2095` 7d80167c
37 - util: support `ble-import -C callback` (motivated by Dominiquini) `#D2102` 0fdbe3b0
38 - mandb: look for git subcommands (motivated by bkerin) `#D2112` 9641c3b8
39 - edit (`display-shell-version`): show the `atuin` version `#D2124` 9045fb87
40 - complete: add widgets `auto_complete/insert-?word` (requested by Tommimon) `#D2127` 0c4b6772
41 - auto-complete: insert word only when the cursor is at the end of line `#D2212` b72d78a9
42 - edit: add widgets `execute-named-command` and `history-goto` `#D2144` aa92b42a
43 - keymap/vi_nmap: support `shell-expand-line` `#D2145` aa92b42a
44 - decode: fix quoting of `WIDGET` and `LASTWIDGET` (reported by 3ximus) `#D2205` 1313390b
45 - main: support `bash ble.sh --install` `#D2169` 986d26a3 3801a87e
46 - util(stty): support `bleopt term_stty_restore` (requested by TheFantasticWarrior) `#D2170` e64b02b7
47 - util: update workaround of Bash 5.2 `checkwinsize` for `term_stty_restore` (reported by TheFantasticWarrior) `#D2184` ef8272a4
48 - magic expansions
49 - edit: support `bleopt edit_magic_accept` (requested by pl643, bkerin) `#D2175` 3e9d8907
50 - edit: support `bleopt edit_magic_accept=verify-syntax` `#D2178` ac84c153
51 - edit: support `bleopt edit_magic_{expand,accept}=autocd` (motivated by Jai-JAP) `#D2187` b6344b3b
52 - main: support shell variable `BLE_VER` `#D2177` a12dedab
53 - util(bleopt, blehook, ble-face): support wildcards `*` and `?` and change `@` to match an empty string `#D2182` bf595293
54 - complete(cd): complete variable names for `cdable_vars` `#D2190` 10527901
55 - sabbrev: support suffix sabbrev to emulate Zsh's suffix aliases `#D2191` d66e05d2
56 - sabbrev: fix bugs in sabbrev matching and positioning (reported by dgudim) `#D2198` 70a325f9
57 - complete: support `ble-face menu_desc_{default,type,quote}` (requested by romaia) `#D2193` b3e7237e
58 - complete: support `bleopt complete_menu_complete_opts=hidden` and menu-style switching (requested by CamRatliff) `#D2199` 16ff7df7
59 - syntax: support `ln=target` in `bleopt filename_ls_colors` (requested by akhilkedia) `#D2213` e169e31d
60 - syntax: support arbitrary suffixes in `bleopt filename_ls_colors` `#D2213` e169e31d
61 - util(vbell): support `bleopt vbell_align=panel` (requested by bb010g) `#D2228` fe85e0dd
62 - highlight: reflect the top-level positional parameters `#D2246` f08e8f08
63 - color: adjust default fg values in faces and add `bleopt color_scheme` (requested by mattmc3) `#D2248` e4cce0ea 5f5554a8 `#D2258` d6a38c43 `#D2263` 0aa66b25
64 - syntax(highlight/vartype): add `ble-face varname_new` `#D2272` 5bfc0ae5
65 - syntax(highlight/vartype): check variable existence for `${var?...}` `#D2273` 5bfc0ae5
66 - highlight: add `bleopt highlight_eval_word_limit` (motivated by orionalves) `#D2256` 6833bdf8
67 - progcomp: support `complete -E` `#D2257` ffac4205
68 - progcomp: fix `complete -I` for empty words (reported by blackteahamburger) `#D2262` 9270b529
69 - make: support make variable `USE_DOC=no` (requested by blackteahamburger) `#D2260` 40fe9c95 134a38d1 c5caedf7
70 - make: fix condition for the `INSDIR_LICENSE` rule (reported by Jai-JAP) `#D2260` 5a8dcb4b
71 - edit (`ble/widget/display-shell-version`): print shell options `#D2261` 70b89e5e ed5d451b
72 - edit: enable `BLE_PIPESTATUS` and `PIPESTATUS` in `PROMPT_COMMAND` and prompts (requested by mattmc3) `#D2276` 27888830
73 - nsearch: support `action={load-{line,command},insert{,-line}}` (motivated by vaab) `#D2286` 32f290df
74 - complete: support completion for `execute-named-command` `#D2288` 4fee44e6
75 - complete: support `ble-face menu_complete_{match,selected}` (requested by simonLeary42) `#D2291` 31f264ad
76 - edit: support `bleopt history_default_point={preserve,begin,end,near,far,{beginning,end}-of-line,preserve-column,...}` (requested by miltieIV2) `#D2297` 37291ff1
77 - edit: support `bleopt history_default_point=auto` (reported by miltieIV2) `#D2297` 2a3351e7
78 - color: fix a bug that reverse rendition vanishes `#D2318` 209b4da0
79 - edit: support `bleopt undo_point={first,last,near,auto}` `#D2303` 99af0ece
80 - keymap/vi: add readline-compatible widgets for `vi_imap` and `vi_nmap` (requested by excited-bore) `#D2304` d7ec488a
81 - edit: support bash-5.2 readline bindable function `vi-edit-and-execute-command` `#D2306` c395eb33 cc47acc2
82 - edit: support readline bindable function `paste-from-clipboard` in more environments `#D2307` 17646524
83 - edit (`paste-from-clipboard`): fix wrong command names to freeze `#D2344` 262baf0e
84 - keymap/vi: support `:marks` `#D2320` 01182d3b
85 - cmap: add <kbd>dsr0</kbd> for <kbd>ESC [ 0 n</kbd> `#D2338` adf53ed3
86 - decode: record timeout in keyboard macro `#D2343` e8045741
87 - edit: add keybindings <kbd>C-up</kbd> and <kbd>C-down</kbd> for history movements (requested by DJCrashdummy) `#D2370` xxxxxxxx
88
89 ## Changes
90
91 - edit: clear character highlighting for overwriting mode (requested by mozirilla213) `#D2052` 1afc616b
92 - history (`ble/builtin/history -w`): write file even without any new entries (requested by Jai-JAP) `#D2053` c78e5c9f
93 - auto-complete: overwrite subsequent characters with self-insert in overwrite mode `#D2059` 7044b2db
94 - complete: move face definitions `menu_filter_*` to `core-complete-def.sh` `#D2060` af022266
95 - make: add `INSDIR_LICENSE` for install location of licenses (reported by willemw) `#D2064` d39998f0 acf3b091
96 - prompt: show prompt ruler after markers (motivated by U-Labs) `#D2067` e4a90378
97 - complete: suffix a space to non-filenames with `compopt -o filenames` (reported by Dominiquini) `#D2096` aef8927f
98 - edit: distinguish space and delimiters in `cword` and `eword` `#D2121` 4f453710
99 - prompt: update status line on face change (motivated by Vosjedev) `#D2134` f3e7e386
100 - decode: specify the default keymap for the keymap load hooks `#D2141` 4a34ccf2
101 - progcomp(compopt): refactor the completion option `ble/{no- => }default` `#D2155` 51f9f4f6
102 - main: export `BLE_SESSION_ID` `#D2188` 5871fea2
103 - menu-complete: adjust cursor position with `insert-selection` disabled (reported by gvlassis) `#D2206` 341179d1
104 - decode (`ble-bind`): do not convert registered C0 (motivated by gvlassis) `#D2210` cbf87fdc
105 - decode: process <kbd>@ESC</kbd> generated by CSI sequence (reported by gvlassis, 10b14224cc, lokxii) `#D2214` 365101cf
106 - decode (`ble-bind`): support combined option arguments of the forms `--long=OPTARG` and `-kOPTARG` `#D2211` 1b16d399
107 - canvas: use `_ble_term_invis` to hide characters used to determine char-width modes (requested by tessus) `#D2223` 8bb302e0
108 - canvas: hide cursor during char-width detection (requested by tessus) `#D2232` 0ff29b26
109 - exec: refine the elapsed time resolution `#D2249` 67548656 713c4215
110 - highlight (`ble/syntax/highlight/vartype`): reference the saved states of variables `#D2268` 063249b4
111 - complete: attempt pathname expansions of incomplete pattern for `COMPV` (reported by mcepl) `#D2278` 6a426954
112 - make: save commit id and branch name with `git archive` (requested by LecrisUT, blackteahamburger) `#D2290` 31f264ad
113 - edit: revert edits with widget `discard-line` (reported by dezza) `#D2301` 3b2b4b81
114 - vi_nmap: fix cursor position after <kbd>C-o</kbd> `#D2302` c106239a
115 - decode (`ble-bind`): initialize specified keymaps (motivated by quantumfrost) `#D2324` 66e450d7
116 - edit (`display-shell-version`): show `(integration: off)` for plugins with integration turned off `#D2330` 2ff03257
117 - edit (`display-shell-version`): fix a bug that `WARNING` is never shown `#D2347` 8dfaa4e8
118 - decode (`ble/debug/keylog`): exclude duplicate characters due to backtracking `#D2332` 355d1dc0 0379e034
119
120 ## Fixes
121
122 - util (`conditional-sync`): fix bugs when `pid=PID` is specified (contributed by bkerin) `#D2031` 09f5cec2 `#D2034` 09f5cec2
123 - util (`conditional-sync`): fix wrong command grouping overwriting `pid=PID` (reported by dragonde, georglauterbach) `#D2122`
124 - bgproc: return status of bgproc process `#D2036` 887d92dd
125 - mandb: replace TAB with 4 spaces before removing control characters (reported by EmilySeville7cfg) `#D2038` 313cfb25
126 - menu(desc): fix a bug that prefix is not shown with menu-filter `#D2039` e92b78d6
127 - progcomp: make option unique after applying mandb description `#D2042` 308ceeed
128 - util (`ble/util/idle`): fix an infinite loop `#D2043` 5f4c0afd
129 - main: fix `--inputrc=TYPE` not applied on startup `#D2044` 1b15b851 0adce7c9
130 - stty: suggest `stty sane` after exiting from bash >= 5.2 to non-ble session `#D2046` b57ab2d6
131 - util (`ble/builtin/readonly`): adjust bash options (reported by dongxi8) `#D2050` 1f3cbc01
132 - history (`ble/builtin/history`): fix error message on the empty `HISTFILE` `#D2061` a2e2c4b6
133 - complete: exit auto-complete mode on complete self-insert `#D2075` 2783d3d0
134 - complete: fix error messages on empty command names `#D2085` dab8dd04
135 - complete: fix parsing the output of `complete -p` in bash-5.2 (reported by maheis) `#D2088` a7eb5d04
136 - make: specify bash to search the awk path using `type -p` (reported by rashil2000) `#D2089` 26826354
137 - keymap/vi: fix the behavior of text-object for quotes in xmap (reported by Darukutsu) `#D2094` 5f9a44ec
138 - edit(redo): fix broken common prefix/suffix determination (reported by Darukutsu) `#D2098` c920ea65
139 - keymap/vi: improve text-object in omap for brackets (reported by Darukutsu) `#D2100` d1a1d538
140 - decode(bind): fix command-line argument parsing `#D2107` 57a13c3c
141 - edit(gexec): fix a bug that `LINENO` is vanishing `#D2108` b5776596
142 - mandb: fix extraction of option description in format 5 (reported by bkerin) `#D2110` 90a992cc
143 - decode: fix handling of @ESC in quoted-insert `#D2119` 0bbc3639
144 - syntax: save stat after command name for consistent completion-context `#D2126` 50d6f1bb
145 - term: fix control sequences for hiding cursor (reported by n87) `#D2130` f9b9aea8
146 - term: fix `_ble_term_rmcivis` for `TERM=linux` `#D2197` 56765251
147 - highlight: fix inconsistent tab width in plain layer (reported by dgudim) `#D2132` f9072c40
148 - decode: consume incomplete keyseq in macros `#D2137` 27e6309e
149 - keymap/vi: fix conflicting binding to <kbd>C-RET</kbd> in `vi_imap` `#D2146` 0b18f3c2
150 - decode: force updating cache for <kbd>@ESC</kbd> `#D2148` 6154d71c
151 - progcomp(compopt): support printing the current options (reported by bkerin) `#D2154` 51f9f4f6
152 - progcomp(compopt): properly handle dynamically specified `plusdirs` `#D2156` 51f9f4f6
153 - edit: fix `BLE_COMMAND_ID` starting from `2` `#D2160` 8f4bf62a
154 - util(vbell): fix previous vbell not fully cleared `#D2181` 6c740a94
155 - decode(rlfunc): fix widget name `vi-command/edit-and-execute-{line => command}` (fixed by alexandregv) 6aa8ba67
156 - util(ble/util/idle.push): fix uninitialized `ble/util/idle.clock` (reported by Anyborr) `#D2189` 83ceb124
157 - prompt: clear list for the cylic dependency detection (reported by micimize, neilbags) `#D2200` 61968497 00cae745b
158 - util.hook: fix user DEBUG trap not executed at the top-level context `#D2202` 828fcfc1
159 - keymap/vi(relative-line.impl): fix uninitialized variable `nmove` `#D2203` 4268650d
160 - edit: render the final prompt before updating command history (motivated by pallaswept) `#D2207` 911a4051
161 - debug: support `bleopt debug_profiler_opts=tree` `#D2216` a453f373
162 - edit: fix leftover region after command execution `#D2247` 75c4a848
163 - keymap/vi: fix <kbd>C-w</kbd> not saving the word into kill ring `#D2208` aa7ca45d
164 - edit: fix standard streams in `EXIT` trap with `ble/widget/exit` `#D2217` 89f0dab8
165 - edit: fix regressions of vbell and `ble/builtin/exit` in Bash 3.2 `#D2265` f5955d5f
166 - util(`ble/fd#cloexec`): check `fdflags` compatibility to avoid crash `#D2227` c3b3aaf8
167 - util(`ble/function#evaldef`): suppress alias expansions (reported by 103sbavert) `#D2240` 51e762fe
168 - main: fix a bug that `_ble_bash` is missing (reported by tessus and Knusper) `#D2242` bb2dae6e a9b962d2 9eb1fee7
169 - mandb: fix incorrect use of `groff` in place of `nroff` `#D2245` e0ffc418
170 - edit: fix fd broken by ble-attach of new session in user space (reported by JohEngstrom) `#D2271` 49f97618 670c7ea0
171 - util (`ble-import`): do not specify arguments to `-C callback` `#D2277` 4f0e94a2
172 - main: fix issues with `ble/bin/awk` (reported by devidw) `#D2292` b0a7adcb
173 - util (`ble/path#remove-glob`): fix a bug that `*` matches and removes multiple paths `#D2310` fd518d24
174 - decode (`bind`): print the filename and line in error messages (motivated by excited-bore) `#D2311` 89c69077
175 - util: fix the race condition of `ble/util/idle.clock` and the `TMOUT` initialization (reported by Anyborr, georglauterbach) `#D2314` 154386de
176 - util (`ble/util/save-vars`): support saving sparse arrays to preserve undos and marks `#D2319` 486314c5
177 - main (`connect_tty`): do not reject `connect_tty=inherit` by the initial check of `ble.pp` `#D2335` d6d69dad
178 - decode: clear info panel when cmap cache is updated before attaching `#D2340` d7a16347
179 - edit (`display-shell-version`): fix a bug that `contrib/integration/bash-preexec` is not detected `#D2347` 8dfaa4e8
180 - util (`bleopt`): fix a bug that previous match result for `<pattern>=` affects `var:=` `#D2352` 8bea90d1
181 - util (`ble/string#quote-words`): correct the comparison operator (fixup 8bea90d1) (contributed by anoriqq)
182 - syntax: fix a bug that the completion does not start with `<<[TAB]` `#D2354` 94109ea7
183 - syntax: fix infinite loop with `case a in \^J` `#D2361` 173ec27f
184 - util (`ble/util/writearray`): fix a bug in use of gensub in gawk (reported by allenap, LeonardoMor, aaronjamt, ionesculiviucristian, Gabryx64) `#D2368`
185 - complete: fix a bug that `mandb` record is generated as completions (reported by allenap) `#D2369` xxxxxxxx
186 - stty: avoid adjusting the `stty` state if it has never been modified (reported by LEI) `#D2376` xxxxxxxx
187
188 ## Compatibility
189
190 - Terminal detection
191 - util: detect Zellij heuristically `#D2219` 86034398
192 - term: detect iTerm2 `#D2224` da6e71db
193 - util: update the iTerm2 detection `#D2331` dde63fa3
194 - util: update the VTE detection `#D2335` 3b4cdf2e
195 - main: check `nawk` version explicitly `#D2037` 0ff7bca1
196 - mandb: inject in bash-completion-2.12 interfaces `#D2041` dabc8553
197 - complete: determine comp prefix from `COMPS` when `ble/syntax-raw` is specified (reported by teutat3s) `#D2049` f16c0d80
198 - syntax: allow double-quotes in `$(())` in bash-4.4 (requested by mozirilla213) `#D2051` 611c1d93
199 - syntax: support version-dependent arithmetic backslash `#D2051` 611c1d93
200 - util: work around mawk 1.3.3-20090705 regex (reported by dongxi8, Frezrik) `#D2055` 4089c4e1
201 - complete: update a workaround for cobra-1.5.0 (reported by 3ximus) `#D2057` a24435d3
202 - make: work around ecryptfs bug (reported by juanejot) `#D2058` 969a763e dc0cdb30
203 - edit: update mc-4.8.29 integration (reported by mooreye) `#D2062` 2c4194a2 68c5c5c4
204 - make: work around `make-3.81` bug of pattern rules `#D2065` f7ec170b
205 - decode: work around `convert-meta on` in bash >= 5.2 with broken locale (reported by 3ximus) `#D2069` 226f9718
206 - canvas: adjust GraphemeClusterBreak of hankaku-kana voiced marks `#D2077` 31d168cc
207 - canvas: update tables and grapheme clusters for Unicode 15.1.0 `#D2078` 503bb38b 9d84b424 9d84b424
208 - complete: use conditional-sync for cobraV2 completions (reported by sebhoss) `#D2084` 595f905b
209 - term: add workarounds for `eterm` `#D2087` a643f0ea
210 - global: adjust bash options for utilities outside the ble context (motivated by jkemp814) `#D2092` 6b144de7
211 - decode,syntax: quote `$#` in arguments properly `#D2097` 40a625d3
212 - global: work around case-interleaving collation (reported by dongxi8) `#D2103` a3b94bb3
213 - nsearch: set `immediate-accept` for `empty=emulate-readline` (reported by blackteahamburger) `#D2104` 870ecef7
214 - decode, vi_digraph: trim CR of text resources in MSYS `#D2105` 6f4badf4
215 - progcomp: conditionally suffix space for git completion (reported by bkerin) `#D2111` 2c7cca2f
216 - main: fix initialization errors with `set -u` `#D2116` b503887a
217 - progcomp: work around slow `make` completion in large repository (reported by blackteahamburger) `#D2117` 5f3a0010
218 - util(TRAPEXIT): fix condition for `stty sane` in Cygwin `#D2118` a7f604e1
219 - progcomp: fix the detection of the zoxide completion (reported by 6801318d8d) `#D2120` 29cd8f10
220 - progcomp: pass original command path to completion functions (reported by REmerald) `#D2125` 0cf0383a
221 - main: work around nRF Connect initialization (requested by liyafe1997) `#D2129` 2df3b109
222 - main(unload): redirect streams to work around trap `EXIT` in bash-5.2 (reported by ragnarov) `#D2142` 38a8d571
223 - complete: call the `docker` command through `ble/util/conditional-sync` `#D2150` 6c3f824a
224 - util,complete: work around regex `/=.../` failing in Solaris nawk `#D2162` 46fdf44a
225 - main: fix issues in MSYS1 `#D2163` 5f0b88fb
226 - util: work around bash-3.1 bug that `10>&-` fails to close the fd `#D2164` b5938192
227 - decode: fix the problem that key always timed out in bash-3 `#D2173` 0b176e76
228 - term: adjust the result of `tput clear` for `ncurses >= 6.1` (reported by cmndrsp0ck) `#D2185` 18dd51ab
229 - main: work around WSL's permission issue on `/run/user/1000` (reported by antonioetv and geoffreyvanwyk) `#D2195` fb826ab6
230 - decode: exclude `/etc/inputrc` in SUSE as well as in openSUSE (reported by Anyborr) `#D2220` 63be48df
231 - mandb: support man page format of `rg` (requested by pallaswept) `#D2225` 063bf66b
232 - mandb: restore ASCII hyphens from Unicode hyphens before analysis (reported by pallaswept) `#D2230` f160b8f0
233 - main: work around the issue WSL clears `/tmp` after Bash starts (reported by LeonardoMor) `#D2235` fcbf1ed0
234 - decode(`ble/builtin/bind`): support single quotes in the macro/command strings `#D2236` 2f90120e
235 - mandb: process less formatting sequences in parsing `--help` `#D2244` 60d36ba5
236 - mandb: hook into bash-completion's `_comp_command_offset` `#D2255` cbcce625
237 - canvas: update tables for Unicode 16.0.0 `#D2283` 5b43ca3f 25a10a6f
238 - complete: work around `mawk <= 1.3.4-20230525` type-inference bug (reported by KaKi87) `#D2295` 546499b5
239 - main: work around macOS sed (reported by Mossop) `#D2298` a16aa594
240 - main: delay attaching in kitty, Ghostty, and VS Code Terminal `#D2215` 430a1746
241 - main: update workaround for Ghostty (reported by odili) `#D2322` 4338bbf7
242 - edit: adjust cursor position after `bind -x` in vi_nmap (requested by miltieIV2) `#D2317` 36ab934f
243 - progcomp: update workaround for the dnf completion (reported by msr8) `#D2321` 2a0c6ba6
244 - global: check `LC_COLLATE=C` for range expressions `#D2326` f507a1bc
245 - decode: fix unrecoginized <kbd>ESC O A</kbd> in `4.0 <= bash < 5.0` `#D2333` 6f4d0401
246 - decode: verify cache consistency by embedded hash (reported by teutat3s, bigbruno, giggio, erfan-star-1999) `#D2345` e63f6f67
247 - history: work around readonly `HISTSIZE` (reported by seefood) `#D2346` 2d55928a
248 - main: workaround coreutils `stty` in macOS (reported by EmilyGraceSeville7cf, sshresthaEG, syuraj, seefood, arc279) `#D2348` cdda9f9b
249 - main (`ble/bin#freeze-utility-path`): use `command` to call the command `#D2349` df6a4dad
250 - main: fix the list of missing POSIX utilities in the error message (reported by LecrisUT) `#D2372` xxxxxxxx
251 - util (`ble/array#fill-range`): work around bash-5.2 array bug for wrong syntax highlighting `#D2352` 8bea90d1
252 - complete: fix stray `}` after the completion prefix (fixup 8bea90d1) (reported by cmndrsp0ck) `#D2359` c6bcb824
253 - util (`ble/util/load-standard-builtins`): extend search paths `#D2357` 044c016a
254 - canvas: avoid using <kbd>DL</kbd> at the top to clear lines (requeted by u/JustABro_2321 aka AB-boi) `#D2358` f6a3a116
255 - edit: fix bash-3.2 problems of receiving <kbd>C-d</kbd> through `SIGUSR1` `#D2365` 38767afe
256 - main: update messages for broken locale and environment `#D2370` xxxxxxxx
257
258 ## Contrib
259
260 - histdb
261 - fix(histdb): show error message only when bgproc crashed `#D2036` 887d92dd
262 - util: add `ble/util/{time,timeval,mktime}` `#D2133` 34a886fe
263 - histdb: suppress outputs from `PRAGMA quick_check;` `#D2147` 6154d71c
264 - histdb: fix variable leak of `ret` `#D2152` 98a2ae15
265 - util: fix `ble/util/time` in `bash < 4.2` `#D2161` 623dba91
266 - histdb: support subcommands `#D2167` 4d7dd1ee
267 - histdb: support `top`, `stats`, `calendar`, and `week` `#D2167` 4d7dd1ee
268 - histdb: unify the color palette selection `#D2167` 4d7dd1ee
269 - histdb: fix the seasonal default palette names `#D2289` 4fee44e6
270 - histdb: fix the error with missing current working directory `#D2323` 98985f38
271 - contrib/fzf-git: update to be consistent with the upstream (motivated by arnoldmashava) `#D2054` c78e5c9f
272 - contrib/layer/pattern: add `{pattern}` layer `#D2074` 449d92ca
273 - contrib/fzf-git: fix unsupported command modes (reported by dgudim) `#D2083` ba2b8865
274 - contrib/bash-preexec: support the latest version of `bash-preexec` (reported by mcarans) `#D2128` 50af4d9c
275 - contrib/config/execmark: output error status through `ble/canvas/trace` `#D2136` 64cdcd01
276 - contrib/airline: remove dummy faces (reported by alexalekseyenko) `#D2204` 59787ee5
277 - contrib/airline: update themes `#D2204` 59787ee5
278 - contrib/fzf-git: fix unadjusted terminal states in calling `fzf` (reported by tessus) `#D2237` b154058a
279 - contrib/bash-preexec: support `__bp_set_ret_value` (requested by Comnenus) `#D2238` b154058a
280 - contrib/colorglass: fix fixed-point round `#D2239` b154058a
281 - contrib: add `config/github48{1,3}` for elapsed-mark examples (motivated by paulzzy, TheFantasticWarrior) `#D2249` 67548656 ed5d451b
282 - contrib: add `integration/fzf-menu` (motivated by pallaswept) `#D2251` ad6f58b7 `#D2259` 5b9d9ab3
283 - contrib/integration/fzf-completion: add `ble/widget/fzf-complete` (motivated by 3ximus) `#D2252` ad6f58b7
284 - contrib/colorglass: color: import themes from `Gogh-Co/Gogh` (motivated by d4rkb4sh8) `#D2274` d2eb75b5
285 - contrib/integration/fzf-completion: suppress unexpected quoting by compgen in dynamic completions (reported by mcepl) `#D2284` 32f290df
286 - contrib/integration/fzf-initialize: use `fzf --bash` when shell integration files are not found (motivated by louiss0) `#D2285` 32f290df
287 - integration/fzf-initialize: (reported by 3ximus) `#D2285` a36d13ce
288 - config: add `github499-append-to-last-modified` (motivated by vaab) `#D2286` 32f290df
289 - integration: add `skim` integration for completion (reported by cmm) `#D2287` a36d13ce
290 - integration/zoxide: fix the problem of unquoted filenames (reported by tessus) `#D2216` 430a1746
291 - integration/{bash,fzf,skim}-completion: adjust dynamically loaded completion functions (motivated by tessus) `#D2327` 788dfd15
292 - integration/fzf: suppress dynamic binding `#D2350` e9d5ca26
293
294 ## Documentation
295
296 - docs(CONTRIBUTING): add styleguide (motivated by bkerin) `#D2056` 44cf6756
297 - docs(README): fix dead links to blerc.template (fixed by weskeiser) e0f3ac28
298 - github: add FUNDING `#D2080` 3f133936
299 - blerc: describe keybinding to accept autosuggestion by TAB (motivated by TehFunkWagnalls) `#D2090` cd069860
300 - docs: apply Grammarly and fix typos `#D2099` 8b3f6f8c
301 - docs(README): add sabbrev example for named directories `#D2115` a9a21a0e
302 - docs(README): note `bleopt prompt_command_changes_layout=1` `#D2196` 208eaa9d
303 - docs(README): move disclaimers to a later section `#D2250` ad6f58b7
304 - README: use `[[ ! ${BLE_VERSION-} ]] || ble-attach` `#D2264` ed11901a
305 - github: update GitHub issue templates `#D2294` aa396f60
306 - memo: fix syntax error in the testing code for #D1779 (reported by andychu) `#D2329`
307 - github: fix URLs in the nightly description (reported by TheFozid) `#D2373` xxxxxxxx
308 - history: include `HISTFILE` in the invalid timestamp mesasge (motivated by Strykar) `#D2374`
309
310 ## Test
311
312 - test(bash): fix condition for bash bug of history expansion `#D2071` aacf1462
313 - test(main): fix delimiter of `MSYS` in adding `winsymlinks` `#D2071` aacf1462
314 - test(util,vi): adjust `ble/util/is-stdin-ready` while testing `#D2105` 23a05827 6f4badf4
315 - test(vi): suppress warnings for non-interactive sessions `#D2113` b8b7ba0c
316 - test(bash,util): fix tests in interactive session `#D2123` 06ad3a6c
317 - test(vi): fix broken states after test `#D2123` 06ad3a6c
318 - test(bash): fix test cases for history expansion `#D2131` 838b4652
319 - test(bash): add tests for bash array bugs `#D2149` 6154d71c
320 - github/workflows: update versions of GitHub Actions `#D2186` 0c42c8bd 433ac7c2
321 - test: skip tests on `ble/test/chdir` failure `#D2234` 467ec48b
322
323 ## Internal changes
324
325 - refactor: move files `{keymap/ => lib/keymap.}*` f4c973b8
326 - global: fix coding style `#D2072` bdcecbbf
327 - memo: add recent configs and create directories `#D2073` 99cb5e81
328 - highlight: generalize `region` layer `#D2074` 449d92ca
329 - keymap/vi: integrate vi tests into the test framework `#D2101` d16b8438
330 - global(leakvar): fix variable leak `#D2114` d3e1232d
331 - make(scan): apply builtin checks to `contrib` `#D2135` 2f16d985
332 - contrib/fzf-git: do not use `ble/util/print` in a script mode (reported by dgudim) `#D2166` 8f0dfe9b
333 - decode: change Isolated ESC to U+07FC `#D2138` 82bfa665
334 - edit: introduce `selection` keymap for more flexible shift selection `#D2139` 2cac11ad
335 - edit: fix a regression that delete-selection does not work (reported by cmndrsp0ck) `#D2151` 98a2ae15
336 - util: support `bleopt connect_tty` `#D2140` f940696f
337 - util: support `ble/fd#add-cloexec` and add `O_CLOEXEC` by default `#D2158` 785267e1
338 - util: fix error of bad file descriptors (reported by ragnarov) `#D2159` 785267e1
339 - util: work around macOS/FreeBSD failure on `exec 32>&2` (reported by tessus, jon-hotaisle) `#D2165` 8f0dfe9b
340 - main: record external file descriptors on `ble-attach` `#D2183` a508a827
341 - util: check leftovers of CLOEXEC fds more strictly `#D2215` 79fe2483
342 - main: fix unprocessed `-PGID` in `*.pid` for cleanup `#D2143` a5da23c0
343 - history: prevent `SIGPIPE` from reverting the TTY state in trap `EXIT` `#D2153` 4b8a0799
344 - history: fix initially shifted history index `#D2180` e425dc56
345 - edit: support `bleopt internal_exec_int_trace` (motivated by tessus) `#D2171` cebea478 3801a87e
346 - global: avoid using the builtin `:` `#D2192` f2fd2955
347 - global: pass `--` to `type` and `declare` before arbitrary arguments `#D2194` 5c0efcf6
348 - global: fix spelling mistakes `#D2201` 86815f61
349 - util (`ble/util/buffer.flush`): write to the TUI stderr `#D2218` b5c88947
350 - util (`ble/util/buffer.flush`): use <kbd>DECSET(2026)</kbd> in terminals with the support `#D2226` c3df08be
351 - main: refactor initialization sequence `#D2231` cc9d7f39
352 - util (`ble/util/is-stdin-ready`): check `$_ble_util_fd_tui_stdin` by default `#D2254` 29c00fd8
353 - util (`ble/util/is-stdin-ready`): work around polling issue in Windows Terminal `#D2362` 622cb247
354 - util (`ble/util/is-stdin-ready`): fix the condition to use stdin (reported by Jai-JAP, darukutsu) `#D2375` xxxxxxxx
355 - decode (`ble-decode-key/bind`): reference the argument to check the widget name (contributed by musou1500) `#D2279` 21b1bb3d
356 - global: normalize quoting of function names of the form `prefix:$name` `#D2296` 3d7c98bb
357 - global: use `[:blank:]` instead of `[:space:]` `#D2299` e2fd8f0f
358 - global: rename `ret` not used as `REPLY` `#D2300` 86cbf78e
359 - global: avoid raw word splitting `#D2309` b55c4003
360 - global: use `ble/util/assign` in more places `#D2312` b0e39732
361 - main: show details of the loading time (motivated by tessus, Darukutsu) `#D2313` 3d8f6264
362 - canvas: optimize binary search in tables `#D2325` d56c7d2f d4c812b7
363 - util: optimize `ble/fd#list` using `compgen -G` `#D2328` 6f34012d
364 - util (`ble/fd#list`): fix a bug that `BASHPID` undefined in `bash < 4.3` is used (fixup 6f34012d) `#D2352` 8bea90d1
365 - util (`ble/fd#list`): fix `ble/fd#list` generating an internal fd and breaking `ble/fd#add-cloexec` (reported by xlei77) `#D2356` 02ca0006
366 - bind: clean up old codes to bind to <kbd>ESC</kbd> `#D2334` 514d177e c9cd95c4
367 - decode: move key definitions into `lib/init-cmap.sh` `#D2341` fbdda841
368 - complete: rename key `{auto_complete => ac}_enter` `#D2342` a30125c4
369 - color: change color representation for faithful 24-bit black (reported by seefood) `#D2351` 9ea84456
370 - global: reduce the uses of `:`, `true`, and `false` `#D2353` 61a46734
371 - global: use `ble/opts#extract-last-optarg` `#D2363` 1cfd6c0a
372 - global: use `source -- path` to source an arbitrary path `#D2366` 3d2e230a
373 - main: describe `--lib` in the output of `ble.sh --help` `#D2367` 9699ff6a
374
375 <!---------------------------------------------------------------------------->
376 # ble-0.4.0-devel3
377
378 2020-12-02...2023-04-03 (`#D1427`...`#D2030`) 276baf2...1a5c451c
379
380 ## New features
381
382 - decode (`ble-decode-kbd`): support various specifications of key sequences `#D1439` 0f01cab
383 - edit: support new options `bleopt edit_line_type={logical,graphical}` (motivated by 3ximus) `#D1442` 40ae242
384 - complete: support new options `bleopt complete_limit{,_auto}` (contributed by timjrd) `#D1445` b13f114 5504bbc
385 - complete: update the default value of `bleopt complete_limit{,auto}` `#D1500` aae553c
386 - complete: inject user interruption and complete limits into `bash-completion` through `read` (motivated by timjrd) `#D1504` 856cec2 `#D1507` 4fc51ae
387 - edit (kill/copy): combine multiple kills and copies (suggested by 3ximus) `#D1443` 66564e1
388 - edit (`{kill,copy}-region-or`): fix unconditionally combined kills/copies (reported by 3ximus) `#D1447` 1631751
389 - canvas: update emoji database and support `bleopt emoji_version` (motivated by endorfina) `#D1454` d1f8c27
390 - emoji: unify emoji tables of different versions `#D1671` af82662
391 - canvas, edit: support `bleopt info_display` (suggested by 0neGuyDev) `#D1458` 69228fa
392 - canvas (panel): always call `panel::render` to update height `#D1472` 51d2c05
393 - util (visible-bell): work around coordinate mismatches in subshells `#D1495` 01cfb10
394 - canvas: work around kitty's quirk not recognizing <kbd>DECSTBM</kbd> (<kbd>CSI ; r</kbd>) `#D1503` eca2976
395 - prompt: support `bleopt prompt_status_{line,align}` and `face prompt_status_line` `#D1462` cca1cbc
396 - prompt: fix missing height allocation for status line `#D1487` b424fa5
397 - prompt: support `bleopt prompt_status_align=justify` `#D1494` c30a0db
398 - syntax: properly support case patterns `#D1474` `#D1475` `#D1476` 64b55b7
399 - keymap/vi: add `ble/keymap:vi/script/get-mode` for user-defined mode strings `#D1488` f25a6e8 462918d
400 - prompt: support multiline `prompt_rps1` `#D1502` 4fa139a
401 - canvas: fix wrong coordinate calculation on linefolding (reported by telometto) `#D1602` 9badb5f
402 - prompt: fix coordinates after `prompt_rps1` `#D1972` e128801
403 - prompt: clear remaining SGR after `prompt_rps1` (reported by linwaytin) `#D2003` ea99d944
404 - syntax: support tilde expansions in parameter expansions `#D1513` 0506df2
405 - decode: support `ble-bind -m KEYMAP --cursor DECSCUSR` (motivated by jmederosalvarado) `#D1514` `#D1515` `#D1516` 79d671d
406 - decode: reflect changes after `ble-bind --cursor` `#D1873` 39efcf9
407 - edit: support `nsearch` options (motivated by Alyetama, rashil2000, carv-silva) `#D1517` 9125795
408 - edit: support `nsearch` opts `empty=emulate-readline` (motivated by jainpratik163) `#D1661` d68ba61
409 - edit: support bash-5.2 binding of `prior/next` to `history-search-{for,back}ward` `#D1661` d26a6e1
410 - syntax: support the deprecated redirection `>& file` `#D1539` b9b0de4
411 - complete: complete file descriptors and heredoc words after redirections `#D1539` b9b0de4
412 - main: support `blehook ATTACH DETACH`, `BLE_ONLOAD`, `BLE_ATTACHED` `#D1543` 750ca38
413 - main: support `ble` `#D1544` 750ca38
414 - main (`ble-update`): support package updates and `sudo` updates (motivated by huresche, oc1024) `#D1548` 0bc2660
415 - main (`ble-update`): fix help message (contributed by NoahGorny) 50288bf
416 - syntax: support undocumented `${a~}` and `${a~~}` `#D1561` 4df29a6
417 - lib: support `lib/vim-airline` (motivated by huresche) `#D1565` da1d0ff
418 - util (`ble/gdict`): refactor `#D1569` 7732eed
419 - vim-airline: support `bleopt vim_airline_theme` `#D1589` 73b037f
420 - prompt: track dependencies and detect changes `#D1590` `#D1591` cf8d949
421 - prompt: preserve `LINES` and `COLUMNS` for custom sequences `#D1592` 040016d
422 - color: fix the face initialiation order for uses in prompts (motivated by jmederosalvarado) `#D1593` 321371f
423 - prompt (`contrib/prompt-git`): support dirty checking `#D1601` b2713d9
424 - prompt (`contrib/prompt-git`): do not use `ble/util/idle` in Bash 3 `#D1606` 959cf27
425 - util (`bleopt`): add new option `-I` to reinitialize user settings on reload `#D1607` 959cf27
426 - vi (vi_cmap): fix wrong prompt calculations by the outdated initial values `#D1653` 2710b23
427 - vim-airline: measure separator widths and fix layout of status line `#D1999` 1ce0d1ad 478c9a10
428 - util, color: refactor configuration interfaces (`bleopt`, `blehook`, `ble-face`) `#D1568` c94d292
429 - color: support new face setting function `ble-face`
430 - util (`bleopt`): support option `-r` and `-u` and wildcards in option names
431 - util (`blehook`): hide internal hooks by default and support option `-a`
432 - util, color: fix argument analysis of `bleopt`, `blehook`, and `ble-face` (fixup c94d292) `#D1571` bb53271
433 - util (`blehook`): show explicitly specified internal hooks `#D1594` f4312df
434 - util (`bleopt`): do no select obsoleted options by wildcards `#D1595` f4312df
435 - util (`bleopt`): fix error messages for unknown options `#D1610` 66df3e2
436 - util (`bleopt`, `bind`): fix error message and exit status, respectively `#D1640` b663cee
437 - util (`blehook`): support wildcards `#D1861` 480b7b3
438 - progcomp: support quoted commands and better `progcomp_alias` `#D1581` `#D1583` dbe87c3
439 - progcomp: fix a bug that command names may stray into completer function names `#D1611` 1f2d45f
440 - syntax: highlight quotes of the `\?` form `#D1584` 5076a03
441 - syntax: recognize escape \" in double-quoted strings `#D1641` 4b71449
442 - prompt: support a new backslash sequence `\g{...}` `#D1609` be31391
443 - prompt: accept more general `[TYPE:]SPEC` in `\g{...}` like `ble-face` `#D1963` 81b3b0e
444 - prompt: fix non-working 24-bit color in `\g{...}` `#D1977` 881ec25
445 - complete: add a new option `bleopt complete_limit_auto_menu` `#D1618` 1829d80
446 - canvas: support grapheme clusters (motivated by huresche) `#D1619` c0d997b
447 - canvas (`ble/util/c2w`): use `EastAsianWidth` and `GeneralCategory` to mimic `wcwidth` `#D1645` 9a132b7
448 - canvas (c2w:auto): work around combining chars applied to the previous line `#D1649` 1cbbecb
449 - canvas (c2w:auto): avoid duplicate requests `#D1649` 1cbbecb a3047f56
450 - canvas (c2w:auto): send <kbd>DSR(6)</kbd> in the internal state `#D1664` a3047f5
451 - canvas (c2w): support `bleopt char_width_mode=musl` `#D1668` 05b258f `#D1672` af82662
452 - canvas (c2w:auto): detect `emacs` and `musl` `#D1668` 05b258f
453 - rlfunc: support vi word operations in `emacs` keymap (requested by SolarAquarion) `#D1624` 21d636a
454 - edit: support `TMOUT` for the session timeout `#D1631` 0e16dbd
455 - edit: support bash-5.2 `READLINE_ARGUMENT` `#D1638` d347fb3
456 - complete: support `complete [-DI]` in old versions of Bash through `_DefaultCmD_` and `_InitialWorD_` `#D1639` 925b2cd
457 - rlfunc: support nsearch widgets in `vi_nmap` keymap (requested by cornfeedhobo) `#D1651` 9a7c8b1
458 - prompt: support `bleopt prompt_ruler` (motivated by Barbarossa93) `#D1666` 05cf638
459 - prompt: fix hanging by a zero-width `prompt_ruler` `#D1673` 9033f29
460 - edit: support `bleopt canvas_winch_action` (requested by Johann-Goncalves-Pereira, guptapriyanshu7) `#D1679` 2243e91
461 - blerc: fix the name of the option `bleopt canvas_winch_action` (reported by Knusper) b1be640
462 - edit: go back to the previous lines with `redraw-here` more aggressively `#D1966` a125187
463 - menu (menu-style:desc): improve descriptions (motivated by Shahabaz-Bagwan) `#D1685` 4de1b45
464 - menu (menu-style:desc): support multicolumns (motivated by Shahabaz-Bagwan) `#D1686` 231dc39
465 - menu (menu-style:desc): fix not working `bleopt menu_desc_multicolumn_width=` `#D1727` 2140d1e
466 - term: let <kbd>DECSCUSR</kbd> pass through terminal multiplexers (motivated by cmplstofB) `#D1697` a3349e4
467 - util: refactor `_ble_term_TERM` `#D1746` 63fba6b
468 - complete: requote for more compact representations on full completions `#D1700` a1859b6
469 - complete (requote): requote from optarg/rhs starting point `#D1786` 93c2786
470 - complete: improve support for `declare` and `[[ ... ]]` `#D1701` da38404
471 - syntax: fix completion and highlighting of `declare` with assignment arguments `#D1704` `#D1705` e12bae4
472 - cmdspec: refactor `{mandb => cmdspec}_opts` `#D1706` `#D1707` 0786e92
473 - complete (menu-style:align): refactor `complete_menu_align => menu_align_{min,max}` (motivated by banoris) `#D1717` 22a2449
474 - prompt: support `bleopt prompt_command_changes_layout` `#D1750` e199bee
475 - exec: measure execution times `#D1756` 2b28bec
476 - edit: work around a bash-4.4..5.1 bug of `exit` outputting time to stderr of exit context `#D1765` 3de751e e61dbaa
477 - edit (`exec_elapsed_mark`): show hours and days `#D1793` 699dabb
478 - util: preserve original traps and restore them on unload `#D1775` `#D1776` `#D1777` 398e404
479 - util (trap): fix a bug of restoring original traps `#D1850` 8d918b6
480 - progcomp: support `compopt -o ble/no-default` to suppress default completions `#D1789` 7b70a0e
481 - sabbrev: support options `-r` and `--reset` to remove entries `#D1790` 29b8be3
482 - util (blehook): support `hook!=handler` and `hook+-=handler` `#D1791` 0b8c097
483 - prompt: escape control characters in `\w` and `\W` `#D1798` 8940434 a9551e5
484 - prompt: fix wrongly escaped UTF-8 chars in `\w` and `\W` `#D1806` d340233
485 - prompt: fix a bug that `\u` is expanded to the shell name `#D1975` fe339c3
486 - emacs: support `bleopt keymap_emacs_mode_string_multiline` (motivated by ArianaAsl) `#D1818` 8e9d273
487 - util: synchronize rlvars with `bleopt complete_{menu_color{,_match},skip_matched} term_bracketed_paste_mode` (motivated by ArianaAsl) `#D1819` 6d20f51
488 - util: suppress false warnings of `bind` inside non-interactive shells (reported by wukuan405) `#D1823` 1e19a67
489 - history: support `bleopt history_erasedups_limit` (motivated by SuperSandro2000) `#D1822` e4afb5a 3110967
490 - prompt: support `bleopt prompt_{emacs,vi}_mode_indicator` (motivated by ferdinandyb) `#D1843` 2b905f8
491 - util (`ble-import`): support option `-q` `#D1859` 1ca87a9
492 - history: support extension `HISTCONTROL=strip` (motivated by aiotter) `#D1874` 021e033
493 - benchmark (ble-measure): support an option `-V` `#D1881` 571ecec
494 - color: allow setting color filter by `_ble_color_color2sgr_filter` `#D1902` 88e74cc
495 - auto-complete: add `bleopt complete_auto_complete_opts` (motivated by DUOLabs333) `#D1901` `#D1911` 1478a04 6a21ebb
496 - menu-complete: add `bleopt complete_menu_complete_opts` (requested by DUOLabs333) `#D1911` 6a21ebb
497 - edit (`magic-space`): support `bleopt edit_magic_expand=...:alias` (requested by telometto) `#D1912` 63da2ac
498 - auto-complete: cancel auto-complete for `magic-space` `#D1913` 01b4f67
499 - complete: support ambiguous completion for command paths `#D1922` 8a716ad
500 - complete: preserve original path segments as long as possible `#D1923` `#D1924` e3cdb9d
501 - main: support `BLE_SESSION_ID` and `BLE_COMMAND_ID` `#D1925` 44d9e10 `#D1947` 46ac426 `#D1954` 651c70c
502 - main: support an option `--inputrc={diff,all,user,none}` `#D1926` 92f2006
503 - util (`ble/builtin/trap`): support Bash 5.2 `trap -P` `#D1937` 826a275
504 - syntax: highlight `\?` in here documents `#D1959` e619e73
505 - syntax: recognize history expansion in here documents, `"...!"` (bash <= 4.2), and `$!` (bash <= 4.1) `#D1959` e619e73
506 - syntax: support context after `((...))` and `[[ ... ]]` in bash-5.2 `#D1962` 67cb967
507 - edit: support the readline variable `search-ignore-case` of bash-5.3 `#D1976` e3ad110
508 - menu-complete: add `insert_unique` option to the `complete` widget `#D1995` 36efbb7
509 - syntax: check alias expansions of `coproc` variable names `#D1996` 92ce433
510 - syntax: support new parameter transformation `"${arr@k}"` `#D1998` 1dd7e385
511 - edit: support a user command `ble append-line` (requested by mozirilla213) `#D2001` 2a524f34
512 - decode: accept isolated <kbd>ESC \<char\></kbd> (requested by mozirilla213) `#D2004` d7210494
513 - sabbrev: add widget `magic-slash` to approximate Zsh named directories (motivated by mozirilla213) `#D2008` e6b9581c
514 - sabbrev: support inline and linewise sabbre with `ble-sabbrev -il` `#D2012` 56208534
515 - complete: add `bleopt complete_source_sabbrev_{opts,ignore}` (motivated by mozirilla213) `#D2013` f95eb0cc `#D2016` 45c76746
516 - util.bgproc: separate `ble/util/bgproc` from `histdb` (motivated by bkerin) `#D2017` 7803305f
517 - util.bgproc: fix use of `ble/util/idle` in bash-3 `#D2026` 79a6bd41
518 - util.bgproc: increase frequency of bgproc termination check (motivated by bkerin) `#D2027` 8d623c19
519 - util.bgproc: fix an `fd#alloc` failure in bash-4.2 `#D2029` 7c4ff7bc
520 - menu-complete: support selection by index (requested by bkerin) `#D2023` b91b8bc8
521
522 ## Changes
523
524 - syntax: exclude <code>\\ + LF</code> at the word beginning from words (motivated by cmplstofB) `#D1431` 67e62d6
525 - complete: do not quote `:` and `=` in non-filename completions generated by progcomp (reported by 3ximus) `#D1434` d82535e
526 - edit: preserve the state of `READLINE_{LINE,POINT,MARK}` `#D1437` 8379d4a
527 - edit: change default behavior of <kbd>C-w</kbd> and <kbd>M-w</kbd> to operate on backward words `#D1448` 47a3301
528 - prompt: rename `bleopt prompt_{status_line => term_status}` `#D1462` cca1cbc
529 - edit (`ble/builtin/read`): cancel by <kbd>C-d</kbd> on an empty line `#D1473` ecb8888
530 - syntax: change syntax context after `time ;` and `! ;` for Bash 4.4 `#D1477` 4628370
531 - decode (rlfunc): update mapping `vi-replace` in `imap` and `vi-editing-mode` in `nmap` (reported by onelittlehope) `#D1484` f2ca811
532 - prompt: invalidate prompt and textarea on prompt setting changes `#D1492` 1f55913
533 - README: update informations on stable versions `#D1509` c8e658e
534 - README: update the description of how to uninstall `#D1510` c8e658e
535 - util (`bleopt`): validate initial user settings `#D1511` 82c5ece
536 - util (`bleopt`): fix a bug that old values are double-expanded on init (fixup 82c5ece) `#D1521` f795c07
537 - util (`bleopt`): do not validate obsoleted initial settings `#D1527` 032f6b2
538 - main: preserve user-space overridden builtins `#D1519` 0860be0
539 - util (`ble/util/type`): fix a bug that aliases are not properly highlighted (reported by 3ximus) `#D1526` 45b30a7
540 - main: preserve user's `expand_aliases` and allow aliases in internal space (fixup 0860be0) `#D1574` afc4112
541 - main: main: fix expand_aliases unset on ble-reload (fixup afc4112) `#D1577` 3417388
542 - main: accept non-regular files as `blerc` and add option `--norc` `#D1530` 7244e2f
543 - prompt: let `stderr` pass through to tty in evaluating `PS0` (reported by tycho-kirchner) `#D1541` 24a88ce
544 - prompt: adjust behavior of `LINENO` and prompt sequence `\#` (reported by tycho-kirchner) `#D1542` 8b0257e
545 - prompt: update `PS0` between multiple commands (motivated by tycho-kirchner) `#D1560` 8f29203
546 - edit (`widget:display-shell-version`): include `ble.sh` version `#D1545` 750ca38
547 - edit (`display-shell-version`): detect configurations and print details `#D1781` 5015cb56
548 - edit (`display-shell-version`): show information of the OS distribution and properly handle saved locales `#D1854` 066ec63 bdb7dd6
549 - edit (`display-shell-version`): show `gawk`, `make`, and `git` versions of the build time `#D1892` e618133
550 - edit (`display-shell-version`): support running as a user command (reported by DhruvaG2000) `#D1893` e618133
551 - edit (`display-shell-version`): show warnings for fzf-integration `#D1907` 3bc3bea
552 - edit (`display-shell-version`): show the `zoxide` version `#D1907` 3bc3bea
553 - complete (`ble-sabbrev`): support colored output `#D1546` 750ca38
554 - decode (`ble-bind`): support colored output `#D1547` 750ca38
555 - decode (`ble-bind`): output bindings of the specified keymaps with `ble-bind -m KEYMAP` (fixup 750ca38) `#D1559` 6e0245a
556 - keymap/vi: update mode names on change of `bleopt keymap_vi_mode_name_*` (motivated by huresche) `#D1565` 11ac106
557 - main: show notifications against debug versions of Bash `#D1612` 8f974aa
558 - term: terminal identification
559 - term (`_ble_term_TERM`): update `vte` identification `#D1620` 00e74d8
560 - term (`_ble_term_TERM`): detect wezterm-20220408 `#D1909` 486564a
561 - term (`_ble_term_TERM`): detect konsole `#D1988` 600e845 ed53858
562 - edit: suppress only `stderr` with `internal_suppress_bash_output` (motivated by rashil2000) `#D1646` a30887f
563 - prompt: do not evaluate `PROMPT_COMMAND` for subprompts `#D1654` 08e903e
564 - Makefile: work around the case the repository is cloned without `--recursive` `#D1655` 22ace5f
565 - repo: add subdirectories `make` and `docs` `#D1657` 75bd04c
566 - util: time out <kbd>CPR</kbd> requests `#D1669` 1481d48
567 - util (CPR): fix the problem of always timing out (fixup 1481d48) `#D1792` 9b331c4
568 - main: suppress non-interactive warnings from manually sourced startup files (reported by andreclerigo) `#D1676` 0525528 88e2df5
569 - mandb: integrate `mandb` with `bash-completion` (motivated by Shahabaz-Bagwan, bbyfacekiller and EmilySeville7cfg) `#D1688` c1cd666
570 - syntax: do not start argument completions immediately after previous word (reported by EmilySeville7cfg) `#D1690` 371a5a4
571 - syntax: revert 371a5a4 and generate empty completion source on syntax error `#D1609` e09fcab
572 - syntax: strictly check variable names of `for`-statements `#D1692` d056547
573 - widget `self-insert`: untranslate control chars and insert the last character `#D1696` 5ff3021
574 - complete (`source:command`): exclude inactive aliases `#D1715` d6242a7
575 - complete (`source:command`): not quote aliases and keywords `#D1715` d6242a7
576 - highlight (`wtype=CTX_CMDI`): check alias names before shell expansions `#D1715` d6242a7
577 - util (`ble/is-alias`): fix a bug of unredirected error messages for bash-3.2 (fixup d6242a7) `#D1730` 31372cb
578 - edit (`history_share`): update history on `discard-line` (reported by SuperSandro2000) `#D1742` 8dbefe0
579 - canvas: do not insert explicit newlines on line folding if possible (reported by banoris) `#D1745` 02b9da6 dc3827b
580 - edit: fix layout with `prompt_rps1` caused by missing `opts=relative` for `ble/textmap#update` `#D1769` f6af802
581 - edit (`ble-bind -x`): preserve multiline prompts on execution of `bind -x` commands (requested by SuperSandro2000) `#D1755` 7d05a28
582 - util (`ble/util/buffer`): hide cursor in rendering `#D1758` e332dc5
583 - complete (`action:file`): always suffix `/` to complete symlinked directory names (reported by SuperSandro2000) `#D1759` 397ac1f
584 - edit (command-help): show source files for functions `#D1779` 7683ab9
585 - edit (`ble/builtin/exit`): defer exit in trap handlers (motivated by SuperSandro2000) `#D1782` f62fc04 6fdabf3
586 - util (`blehook`): fix a bug that the the hook arguments are lost (reported by SuperSandro2000) `#D1804` 479795d
587 - edit: fix a bug of `ble/builtin/exit` inside subshells in the `EXIT` trap `#D1973` 0451521
588 - complete (`source:command/get-desc`): show function location and body `#D1788` 496e798
589 - edit (`ble-detach`): prepend a space to `stty sane` for `HISTIGNORE=' *'` `#D1796` 26b532e
590 - decode (`bind`): do not treat non-beginning `#` as comments `#D1820` 65c4138
591 - history: disable the history file when `HISTFILE` is empty `#D1836` 9549e83
592 - complete: generate options by empty-word copmletion after filenames (reported by geekscrapy) `#D1846` 6954b13
593 - complete: do not show option descriptions for the empty-word completion (requested by geekscrapy) `#D1846` 1c7f7a1
594 - syntax (`extract-command`): extract unexpected command names as commands `#D1848` 5b63459
595 - main (`ble-reload`): preserve the original initialization options `#D1852` d8c92cc
596 - main (`ble-reload`): fix a bug that the default rcfile is not loaded `#D1914` 85b5828
597 - blehook: print reusable code to restore the user hooks `#D1857` b763677
598 - blehook: separate internal and user hooks `#D1856` b763677
599 - blehook: prefer the uniq `!=` to the addition `+=` `#D1871` fe7abd4
600 - blehook: print hooks with `--color=auto` by default `#D1875` 3953afe
601 - util (`ble/builtin/trap`): refactor
602 - trap,blehook: rename `ERR{ => EXEC}` and separate from the `ERR` trap `#D1858` 94d1371
603 - trap: remove the support for the shell function `TRAPERR` `#D1858` 94d1371
604 - trap: preserve `BASH_COMMAND` in trap handlers `#D1858` 94d1371
605 - util (`ble/builtin/trap`): run EXIT trap in subshells `#D1862` 5b351e8
606 - util (`ble/builtin/trap`): fix the RETURN trap `#D1863` 793dfad
607 - trap,blehook: move to a new file `util.hook.sh` `#D1864` 55a182b
608 - trap (`trap -p`): fix unprinted existing user traps `#D1864` 55a182b
609 - trap (`ble/builtin/trap/finalize`): fix a failure of restoring the original trap `#D1864` 55a182b
610 - trap (`trap -p`): print also custom traps `#D1864` 55a182b
611 - trap: preserve positional parameters for user trap handlers `#D1865` 9e2963c
612 - trap: suppress `INT` processing with user traps `#D1866` 5c28387
613 - trap: unify handling of `DEBUG` and the other traps `#D1867` a22c25b
614 - trap: work around possible interferences by recursive traps `#D1867` a22c25b
615 - trap: ignore `RETURN` for `ble/builtin/trap/.handler` `#D1867` a22c25b
616 - trap: fix a bug that `DEBUG` for internal commands clears `$?` `#D1867` a22c25b
617 - trap: use `ble/util/assign/.mktmp` to read the `DEBUG` trap `#D1910` 1de9a1e
618 - progcomp: reproduce arguments of completion functions passed by Bash `#D1872` 4d2dd35
619 - prompt: preserve transient prompt with `same-dir` after `clear-screen` `#D1876` 69013d9
620 - color: let `bleopt term_index_colors` override the default if specified `#D1878` 7d238c0
621 - canvas: update Unicode version 15.0.0 `#D1880` 49e55f4
622 - decode (`vi_imap-rlfunc.txt`): update the widget for `backward-kill-word` as `kill-backward-{u => c}word` `#D1896` e19b796
623 - color: rearrange color table by `ble palette` (suggested by stackoverflow/caoanan) `#D1961` bb8541d
624 - util (`ble/util/idle`): process events before idle sleep `#D1980` 559d64b
625 - keymap/vi (`decompose-meta`): translate <kbd>S-a</kbd> to <kbd>A</kbd> `#D1988` 600e845
626 - sabbrev: apply sabbrev to right-hand sides of variable assignments `#D2006` 41faa494
627 - complete (`source:argument`): fallback to rhs completion also for `name+=rhs` `#D2006` 41faa494
628 - auto-complete: limit the line length for auto-complete `#D2009` 5bfbd6f2
629 - complete (`source:argument`): generate sabbrev completions after normal completions (motivated by mozirilla213) `#D2011` a6f168d0
630 - complete (`source:option`): carve out `ble/complete/source:option/generate-for-command` (requested by mozirilla213) `#D2014` 54ace59c
631
632 ## Fixes
633
634 - term: fix a bug that VTE based terminals are not recognized `#D1427` 7e16d9d
635 - complete: fix a problem that candidates are not updated after menu-filter (reported by 3ximus) `#D1428` 98fbc1c
636 - complete/mandb-related fixes
637 - mandb: support mandb in FreeBSD `#D1432` 6c54f79
638 - mandb: fix BS contamination used by nroff to represent bold (reported by rlnore) `#D1429` b5c875a
639 - mandb: fix an encoding prpblem of utf8 manuals `#D1446` 7a4a480
640 - mandb: improve extraction and cache for each locale `#D1480` 3588158
641 - mandb: fix an infinite loop by a leak variable (reported by rlanore, riblo) `#D1550` 0efcb65
642 - mandb: work around old groff in macOS (reported by killermoehre) `#D1551` d4f816b
643 - mandb: use `manpath` and `man -w`, and read `/etc/man_db.conf` and `~/.manpath` `#D1637` 2365e09
644 - mandb: support the formats of the man pages of `awk` and `sed` (reported by bbyfacekiller) `#D1687` 6932018
645 - mandb: generate completions of options also for the empty word `#D1689` b90ac78
646 - mandb: support the man-page formats of `wget`, `fish`, and `ping` (reported by bbyfacekiller) `#D1687` a79280e
647 - mandb: carry optarg for e.g. `-a, --accept=LIST` `#D1687` 23d5657
648 - mandb: parse `--help` for specified commands `#D1693` e1ad2f1
649 - mandb: fix small issues of man-page analysis `#D1708` caa77bc
650 - mandb: insert a comma in brace expansions instead of a space `#D1719` 0ac7f03
651 - mandb: support man-page format of `rsync` `#D1733` 7900144
652 - mandb: fix a bug that the description is inserted for `--no-OPTION` `#D1761` 88614b8
653 - mandb: fix a bug that the man page is not correctly searched (fixup 2365e09) `#D1794` 65ffe70
654 - mandb: support the man-page formats of `man ls` in coreutils/Japanese and in macOS `#D1847` fa32829
655 - mandb: include short name in the longname description `#D1879` 60b6989
656 - edit: work around the wrong job information of Bash in trap handlers (reported by 3ximus) `#D1435` `#D1436` bc4735e
657 - edit (command-help): work around the Bash bug that tempenv vanishes with `builtin eval` `#D1438` 8379d4a
658 - global: suppress missing locale errors (reported by 3ximus) `#D1440` 4d3c595
659 - edit (sword): fix definition of `sword` (shell words) `#D1441` f923388
660 - edit (`kill-forward-logical-line`): fix a bug not deleting newline at the end of the line `#D1443` 09cf7f1
661 - util (`ble/util/msleep`): fix hang in Cygwin by swithing from `/dev/udp/0.0.0.0/80` to `/dev/zero` `#D1452` d4d718a
662 - util (`ble/util/msleep`): work around the bash-4.3 bug of `read -t` (reported by 3ximus) `#D1468` `#D1469` 4ca9b2e
663 - syntax: fix broken AST with `[[` keyword `#D1454` 69658ef
664 - benchmark (`ble-measure`): work around a locale-dependent decimal point of `EPOCHREALTIME` (reported by 3ximus) `#D1460` 1aa471b
665 - global: work around bash-4.2 bug of `declare -gA` (reported by 0xC0ncord) `#D1470` 8856a04
666 - global: fix declaration of associative arrays for `ble-reload` (reported by 0xC0ncord) `#D1471` 3cae6e4
667 - global: use a better workaround of bash-4.2 `declare -gA` by separating assignment `#D1567` 2408a20
668 - bind: work around broken `cmd_xmap` after switching the editing mode `#D1478` 8d354c1
669 - decode (`encoding:C`): fix initialization for isolated ESC `#D1839` c3bba5b
670 - edit: clear graphic rendition on newlines and external commands `#D1479` 18bb2d5
671 - decode (rlfunc): work around incomplete bytes in keyseq (reported by onelittlehope) `#D1483` 3559658 beb0383 37363be
672 - main: fix a bug that unset `IFS` is not correctly restored `#D1489` 808f6f7
673 - edit: fix error messages on accessing undo records in emacs mode (reported by rux616) `#D1497` 61a57c0 e9be69e
674 - canvas: fix a glitch that SGR at the end of command line is applied to new lines `#D1498` 4bdfdbf
675 - syntax: fix a bug that `eval() { :; }`, `declare() { :; }` are not treated as function definition `#D1529` b429095
676 - decode: fix a hang on attach failure by cache corruption `#D1531` 24ea379
677 - edit, etc: add workarounds for `localvar_inherit` `#D1532` 7b63c60
678 - edit: fix a bug that `command-help` doesn't work `#D1635` 0f6a083
679 - progcomp: fix non-working `complete -C prog` (reported by Archehandoro) `#D1535` 026432d
680 - bind: fix a problem that `bind '"seq":"key"'` causes a loop macro `bind -s key key` (reported by thanosz) `#D1536` ea05fc5
681 - bind: fix errors on readline macros (reported by RakibFiha) `#D1537` c257299
682 - main: work around sourcing `ble.sh` inside subshells `#D1554` bbc2a90
683 - main: fix exit status for `bash ble.sh --test` (fixup bbc2a90) `#D1558` 641238a
684 - main: fix reloading after ble-update (fixup bbc2a90) (fixed by oc1024) `#D1558` 9372670
685 - main: work around `. ble.sh --{test,update,clear-cache}` in intereactive sessions `#D1555` bbc2a90
686 - Makefile: create `run` directory instead of `tmp` `#D1557` 9bdb37d
687 - main: fix the workaround for `set -e` `#D1564` ab2f70b
688 - main: fix the workaround for `set -u` `#D1575` 76073a9
689 - main: fix the workaround for `set -eu` and refactor `#D1743` 6a946f0
690 - decode: fix the workaround for `set -e` with `--prompt=attach` `#D1832` 5111323
691 - util: work around bash-3.0 bug `"${scal[@]/xxx}"` `#D1570` 24f79da
692 - sabbrev (`ble-sabbrev`): fix delayed output before the initialization `#D1573` 5d85238
693 - history: fix the workaround for bash-3.0 bug of reducing histories `#D1576` 15c9133
694 - syntax: fix a bug that argument completion is attempted in nested commands (reported by huresche) `#D1579` 301d40f
695 - edit (brackated-paste): fix incomplete `CR => LF` conversion (reported by alborotogarcia) `#D1587` 8d6da16
696 - main (adjust-bash-options): adjust `LC_COLLATE=C` `#D1588` e87ac21
697 - highlight (`layer:region`): fix blocked lower-layer changes without selection changes `#D1596` 5ede3c6
698 - complete (`auto-menu`): fix sleep loops by clock/sclock difference `#D1597` 53dd018
699 - history: fix a bug that history data is cleared on `history -r` `#D1605` 72c274e
700 - util (`ble/string#quote-command`): remove redundant trailing spaces for single word command `#D1613` 94556b4
701 - util: work around the Bash 3 bug of array assignments with `^A` and `^?` in Bash 3.2 `#D1614` b9f7611
702 - benchmark (`ble-measure`): fix a bug that the result is always 0 in Bash 3 and 4 (fixup bbc2a904) `#D1615` a034c91
703 - complete: fix a bug that the shopt settings are not restored correctly (reported by Lun4m) `#D1623` 899c114
704 - decode, canvas, etc.: explicitly treat CSI arguments as decimal numbers (reported by GorrillaRibs) `#D1625` c6473b7 2ea48d7
705 - history: fix the vanishing history entry used for `ble-attach` `#D1629` eb34061
706 - global: work around readonly `TMOUT` (reported by farmerbobathan) `#D1630` 44e6ec1
707 - complete: fix a task scheduling bug of referencing two different clocks (reported by rashil2000) `#D1636` fea5f5b
708 - canvas: update prompt trace on `char_width_mode` change (reported by Barbarossa93) `#D1642` 68ee111
709 - decode (`cmap/initialize`): fix unquoted special chars in the cmap cache `#D1647` 7434d2d
710 - decode: fix a bug that the characters input while initialization are delayed `#D1670` 430f449
711 - util (`ble/util/readfile`): fix a bug of always exiting with 1 in `bash <= 3.2` (reported by laoshaw) `#D1678` 61705bf
712 - trace: fix wrong positioning of the ellipses on overflow `#D1684` b90ac78
713 - complete: do not generate keywords for quoted command names `#D1691` 60d244f
714 - menu (menu-style:align): fix the failure of delaying `ble/canvas/trace` on items (motivated by banoris) `#D1710` acc9661
715 - complete: fix empty completions with `FIGNORE` (reported by seanfarley) `#D1711` 144ea5d
716 - main: fix the message of owner errors of cache directories (reported by zim0369) `#D1712` b547a41
717 - util (`ble/string#escape-for-bash-specialchars`): fix escaping of TAB `#D1713` 7db3d2b
718 - complete: fix failglob messages while progcomp for commands containing globchars `#D1716` e26a3a8
719 - complete: fix a bug that the default progcomp does not work properly `#D1722` 01643fa
720 - highlight: fix a bug that arrays without the element `0` is not highlighted `#D1721` b0a0b6f
721 - util (visible-bell): erase visible-bell before running external commands `#D1723` 0da0c1c
722 - util(`ble/util/eval-pathname-expansion`): fix restoring shopt options in bash-4.0 `#D1825` 736f4da
723 - util (`ble/function`): work around `shopt -u extglob` `#D1725` 952c388
724 - syntax: fix uninitialized syntax-highlighting in bash-3.2 `#D1731` e3f5bf7
725 - make: fix a bug that config update messages are removed on install `#D1736` 72d968f
726 - util: fix bugs in conversions from `'` to `\''` `#D1739` 6d15782
727 - canvas: fix unupdated prompt on async wcwidth resolution `#D1740` e14fa5d
728 - progcomp: retry completions on `$? == 124` also for non-default completions (reported by SuperSandro2000) `#D1759` 82b9c01
729 - app: work around data corruption by WINCH on intermediate state `#D1762` 5065fda
730 - util (`ble/util/import`): work around filenames with bash special characters `#D1763` b27f758
731 - edit: fix the restore failure of `PS1` and `PROMPT_COMMAND` on `ble-detach` `#D1784` b9fdaab
732 - complete: do not attempt an independent rhs completion for arguments (reported by rsteube) `#D1787` f8bbe2c
733 - history: fix the unsaved history in the detached state `#D1795` 344168e
734 - edit: fix an unexpected leave from the command layout on `read` `#D1800` 4dbf16f
735 - edit: fix the command layout remaining after job information (reported by mozirilla213) `#D1991` dcfb067
736 - history: work around possible dirty prefix `*` in the history output `#D1808` 64a740d
737 - decode (`ble-bind`): fix the printed definition of `-c`/`-x` bindings `#D1821` 94de078
738 - command-help (`.read-man`): add missing `ble/util/assign/.rmtmp` `#D1840` 937a164
739 - complete: fix wrong `COMP_POINT` with `progcomp_alias` `#D1841` 369f7c0
740 - main (`ble-update`): fix error message with system-wide installation of `ble.sh` (fixed by tars0x9752) 1d2a9c1 a450775
741 - main. util: fix problems of readlink etc. found by test in macOS (reported by aiotter) `#D1849` fa955c1 `#D1855` a22e145
742 - progcomp: fix a bug that `COMP_WORDBREAKS` is ignored `#D1872` 4d2dd35
743 - global: quote `return $?` `#D1884` 801d14a
744 - canvas (`ble/canvas/trace`): fix text justification for empty lines (reported by rashil2000) `#D1894` cdf74c2
745 - main: fix adjustments of bash options (reported by rashil2000) `#D1895` 138c476
746 - complete: suppress error messages for non-bash_completion `_parse_help` (reported by nik312123) `#D1900` 267de7f
747 - prompt: fix the marker position for the readline variable `show-mode-in-prompt` (reported by Strykar) `#D1903` 09bb4d3
748 - highlight: fix a bug that `bleopt filename_ls_colors` is not working (reported by qoreQyaS) `#D1919` b568ade
749 - bind: fix <kbd>M-C-@</kbd>, <kbd>C-x C-@</kbd>, and <kbd>M-C-x</kbd> (`bash-4.2 -o emacs`) `#D1920` a410b03
750 - complete (action:file): support `ble/syntax-raw` in the filename extraction (reported by qoreQyaS) `#D1921` 32277da
751 - decode: fix a bug that the tab completion do not work with bash-4.4 and lower `#D1928` 7da9bce
752 - complete: fix non-working ambiguous path completion with `..` and `.` in the path `#D1930` 632e90a
753 - main (`ble-reload`): fix failure by non-existent rcfile `#D1931` b7ae2fa
754 - syntax (`ble/syntax/highlight/vartype`): check variable in global scope `#D1932` b7026de
755 - menu (linewise): fix layout calculation with variable width of line prefix (reported by bkerin) `#D1979` cc852dc
756 - edit (`ble/textarea#render`): fix interleaving outputs to `_ble_util_buffer` and `DRAW_BUFF` `#D1987` 6d61388
757 - keymap/vi (`expand-range-for-linewise-operator`): fix the end point being not extended `#D1994` bce2033
758 - keymap/vi (`operator:filter`): do not append newline at the end of line `#D1994` bce2033
759 - highlight: fix shifted error marks after delayed `core-syntax` `#D2000` f4145f16
760 - syntax: fix unrecognized variable assignment of the form `echo arr[i]+=rhs` `#D2007` 41faa494
761 - menu (linewise): fix clipping of long line (reported by bkerin) `#D2025` 4c6a4775
762
763 ## Documentation
764
765 - blerc: add all the missing options `#D1667` 0228d76
766 - blerc: add missing faces `argument_option` and `cmdinfo_cd_cdpath` (reported by Prikalel) `#D1675` 26aaf87
767 - README: describe how to invoke multiple widgets with a keybinding (motivated by michaelmob) `#D1699` 6123551
768 - README: add links to `bash-it` and `oh-my-bash` `#D1724` 4a2575f
769 - README: mention the Guix package (motivated by kiasoc5) `#D1888` 0f7c04b
770 - blerc: add frequently used keybindings (motivated by KiaraGrouwstra, micimize) `#D1896` `#D1897` e19b796
771 - wiki/Q&A: add item for defining a widget calling multiple widgets (motivated by micimize) `#D1898` e19b796
772 - blerc: rename from `blerc` to `blerc.template` `#D1899` e19b796
773 - README: add a link to the explanation on the "more reliable setup" of bashrc (motivated by telometto) `#D1905` 09bb4d3
774 - README: describe `contrib/fzf` integration (reported by SuperSandro2000, tbagrel1) `#D1907` 3bc3bea b568ade
775 - README: add links to Manual pages for *kspec* and `modifyOtherKeys` `#D1917` fb7bd0b1 b568ade
776 - README: explain the build process `#D1964` `#D1965` 14ca1e5
777
778 ## Optimization
779
780 - syntax (`layer:syntax/word`): perform pathname expansions in background subshells (motivated by 3ximus) `#D1449` 13e7bdd
781 - syntax (`simple-word/is-simple-noglob`): suppress error messages on expansions `#D1461` a56873f
782 - syntax (`simple-word/eval`): fix unperformed tilde expansions in the background (reported by 3ximus) `#D1463` 6ebec48
783 - syntax (`simple-word/eval`): propagate timeouts in sync highlighting (reported by 3ximus) `#D1465` c2555e2
784 - edit: change the priority of `render-defer` and `menu-filter` `#D1501` aae553c
785 - complete: perform pathname expansions in subshells (motivated by 3ximus) `#D1450` d511896
786 - complete: support `bleopt complete_timeout_compvar` to time out pathname expansions for `COMP_WORDS` / `COMP_LINE` `#D1457` cc2881a
787 - complete (`ble/complete/source:file`): remove slow old codes (reported by timjrd) `#D1512` e5be0c1
788 - syntax (`ble/syntax:bash/simple-word/eval`): optimize large array passing (motivated by timjrd) `#D1522` c89aa23
789 - syntax (`ble/syntax:bash/simple-word/eval`): use `mapfile -d ''` for Bash 5.2 `#D1604` 72c274e
790 - main: prefer `nawk` over `mawk` and `gawk` `#D1523` `#D1524` c89aa23
791 - main (`ble/bin/.freeze-utility-path`): fix unupdated temporary implementations `#D1528` c70a3b4
792 - util (`ble/util/assign`): work around subshell conflicts `#D1578` 6e4bb12
793 - history: use `mapfile -d ''` to load history in Bash 5.2 `#D1603` 72c274e
794 - prompt: use `${PS1@P}` when the prompt contains only safe prompt sequences `#D1617` 8b5da08
795 - prompt: fix not properly set `$?` in `${PS1@P}` evaluation (reported by nihilismus) `#D1644` 521aff9
796 - prompt: fix a bug that the special treatment of `\$` in Cygwin/MSYS is disabled `#D1741` 4782a33
797 - decode: cache `inputrc` translations `#D1652` 994e2a5
798 - complete: use `awk` for batch `quote-insert` (motivated by banoris) `#D1714` a0b2ad2 92d9734
799 - complete (quote-insert.batch): fix regex escaping in bracket expr of awk (reported by telometto) `#D1729` 8039b77
800 - prompt: reduce redundant evaluation of `PROMPT_COMMAND` on the startup `#D1778` 042376b
801 - main: run `ble/base/unload` directly at the end of `EXIT` handler `#D1797` 115baec
802 - util: optimize `ble/util/writearray` `#D1816` 96e9bf8
803 - history: optimize processing of `erasedups` (motivated by SuperSandro2000) `#D1817` 944d48e
804 - debug: add `ble/debug/profiler` (motivated by SuperSandro2000) `#D1824` f629698 11aa4ab 7bb10a7
805 - util (`ble/string#split`): optimize `#D1826` 7bb10a7
806 - global: avoid passing arbitrary strings through `awk -v var=value` `#D1827` 82232de
807 - edit: properly set `LINENO` for `PS1`, `PROMPT_COMMAND`, and `DEBUG` `#D1830` 4d24f84
808 - complete: generate command names in background with slow WSL2 `PATH`s (contributed by musou1500) `#D2280` 0914a119
809
810 ## Compatibility
811
812 - term: work around quirks of Solaris xpg4 awk `#D1481` 6ca0b8c
813 - term: support key sequences and control sequences of Solaris console `#D1481` 6ca0b8c
814 - term: work around Cygwin-console bug of bottom `IL`/`DL` `#D1482` 5dce0b8
815 - term: work around leaked <kbd>DA2R</kbd> in screen from outside terminal `#D1485` e130619
816 - complete: work around `fzf` completion settings loaded automatically `#D1508` 4fc51ae
817 - complete: work around `bash-completion` bugs (reported by oc1024) `#D1533` 9d4ad56
818 - main: work around MSYS2 .inputrc (reported by n1kk) `#D1534` 9e786ae
819 - util (`modifyOtherKeys`): work around a quirk of kitty (reported by NoahGorny) `#D1549` f599525
820 - util (`modifyOtherKeys`): update the workaround for a new quiark of kitty `#D1627` 3e4ecf5
821 - util (`modifyOtherKeys`): use the kitty protocol for kitty 0.23+ which removes the support of `modifyOtherKeys` (reported by kovidgoyal) `#D1681` ec91574
822 - util (`modifyOtherKeys`): set up `modifyOtherKeys` only after `DA2` (reported by dongxi8) `#D1885` 149eee9
823 - global: work around empty `vi_imap` cache by `tmux-resurrect` `#D1562` 560160b
824 - decode: identify `kitty` and treat `\e[27u` as isolated ESC (reported by lyiriyah) `#D1585` c2a84a2
825 - complete: suppress known error messages of `bash-completion` (reported by oc1024, Lun4m) `#D1622` d117973
826 - decode: work around kitty keypad keys in modifyOtherKeys (reported by Nudin) `#D1626` 27c80f9
827 - main: work around `set -B` and `set -k` `#D1628` a860769
828 - term: disable `modifyOtherKeys` and do not send `DA2` for `st` (requested by Shahabaz-Bagwan) `#D1632` 92c7b26
829 - cmap: add `st`-specific escape sequences for cursor keys `#D1633` acfb879
830 - cmap: distinguish <kbd>find</kbd>/<kbd>select</kbd> from <kbd>home</kbd>/<kbd>end</kbd> for openSUSE `inputrc.keys` (reported by cornfeedhobo) `#D1648` c4d28f4
831 - cmap: freeze the internal codes of <kbd>find</kbd>/<kbd>select</kbd> and kitty special keys `#D1674` fdfe62a
832 - main: work around self-modifying `PROMPT_COMMAND` by `bash-preexec` (reported by cornfeedhobo) `#D1650` 39ebf53
833 - main: fix an infinite loop on `ble-reload` with externally saved `PROMPT_COMMAND` (reported by tars0x9752) `#D1851` 53af663
834 - decode: work around openSUSE broken `/etc/inputrc` `#D1662` e5b0c86
835 - decode: work around the overwritten builtin `set` (reported by eadmaster) `#D1680` a6b4e2c
836 - complete: work around the variable leaks by `virsh` completion from `libvirt` (reported by telometto) `#D1682` f985b9a
837 - stty: do not remove keydefs for <kbd>C-u</kbd>, <kbd>C-v</kbd>, <kbd>C-w</kbd>, and <kbd>C-?</kbd> (reported by laoshaw) `#D1683` 82f74f0
838 - builtin: print usages of emulated builtins on option errors `#D1694` 6f74021
839 - decode (`ble/builtin/bind`): improve compatibility of the deprecated form `bind key:rlfunc` (motivated by cmplstofB) `#D1698` b6fc4f0
840 - decode (`ble/builtin/bind`): fix a bug that only lowercase is accepted for deprecated form `bind key:rlfunc` (reported by returntrip) `#D1726` a67458e e363f1b
841 - complete: work around a false warning messages of gawk-4.0.2 `#D1709` 9771693
842 - main: work around `XDG_RUNTIME_DIR` of a different user by `su` (reported by zim0369) `#D1712` 8d37048
843 - main (`ble/util/readlink`): work around non-standard or missing `readlink` (motivated by peterzky) `#D1720` a41279e
844 - util (`ble/function#pop`): allow popping unset function `#D1834` c0abc95
845 - menu (`menu-style:desc`): work around xenl quirks for relative cursor movements (reported by telometto) `#D1728` 3e136a6
846 - global: work around the arithmetic syntax error of `10#` in Bash-5.1 `#D1734` 7545ea3
847 - global: adjust implementations for Bash 5.2 `patsub_replacement` `#D1738` 4590997
848 - global: work around `compat42` quoting of `"${v/pat/"$rep"}"` `#D1751` a75bb25
849 - prompt: fix a bug of `ble/prompt/print` redundantly quoting `$` `#D1752` a75bb25
850 - global: identify bash-4.2 bug that internal quoting of `${v/%$empty/"$rep"}` remains `#D1753` a75bb25
851 - global: work around `shopt -s compat42` `#D1754` a75bb25
852 - global (`ble/builtin/*`): work around `set -eu` in NixOS initialization (reported by SuperSandro2000) `#D1743` 001c595
853 - util, edit, contrib: add support for `bash-preexec` (motivated by SuperSandro2000) `#D1744` e85f52c
854 - util (`ble/builtin/trap`): fix resetting `$?` and `$_` (reported by SuperSandro2000) `#D1757` dfc6221
855 - util (`ble/builtin/trap`): fix a failure of setting the trap-handler exit status (reported by SuperSandro2000) `#D1771` c513ed4
856 - edit (`TRAPDEBUG`): partially restore `$_` after `DEBUG` trap (reported by aiotter) `#D1853` 0b95d5d
857 - main: check `IN_NIX_SHELL` to inactivate ble.sh in nix-shell (suggested by SuperSandro2000) `#D1747` b4bd955
858 - main: force prompt-attach inside the nix-shell `rc` `#D1766` ceb2e7c
859 - canvas: test the terminal for the sequence of clearing `DECSTBM` `#D1748` 4b1601d
860 - main: check `/dev/tty` on startup (reported by andychu) `#D1749` 711c69f
861 - main: fix the check of tty on stdin/stdout `#D1833` 80f09c9
862 - util: add identification of Windows Terminal `wt` `#D1758` e332dc5
863 - complete: evaluate words for `noquote` (motivated by SuperSandro2000) `#D1767` 0a42299
864 - edit (TRAPDEBUG): preserve original `DEBUG` trap and enabled it in `PROMPT_COMMAND` (motivated by ammarooo) `#D1772` `#D1773` ec2a67a
865 - main, trap: fix initialization order of `{save,restore}-BASH_REMATCH` (reported by SuperSandro2000) `#D1780` 689534d
866 - global: work around bash-3.0 bug that single quotes remains for `"${v-$''}"` `#D1774` 9b96578
867 - util: work around old `vte` not supporting `DECSCUSR` yet setting `TERM=xterm` (reported by dongxi8) `#D1785` 70277d0
868 - progcomp: work around the cobra V2 description hack (reported by SuperSandro2000) `#D1803` 71d0736
869 - complete: work around blocking `_scp_remote_files` and `_dnf` (reported by iantra) `#D1807` a4a779e 46f5c13
870 - history: work around broken timestamps in `HISTFILE` (reported by johnyaku) `#D1831` 5ef28eb
871 - progcomp: disable `command_not_found_handle` (reported by telometto, wisnoskij) `#D1834` 64d471a d5fe1d1 973ae8c
872 - util (`modifyOtherKeys`): work around delayed terminal identification `#D1842` 14f3c81
873 - util (`modifyOtherKeys`): fix a bug that kitty protocol is never activated `#D1842` 14f3c81
874 - util (`modifyOtherKeys`): pass-through kitty protocol sequences (motivated by ferdinandyb) `#D1845` f66e0c1
875 - main: show warning for empty locale (movivated by Ultra980) `#D1927` 92f2006
876 - main: never load `/etc/inputrc` in openSUSE (motivated by Ultra980) `#D1926` 92f2006 0ceb0cb
877 - canvas: refine detection of `bleopt char_width_mode=musl` `#D1929` b0c16dd
878 - term (`terminology`): work around terminal glitches `#D1946` 9a1b4f9
879 - main (`ble/bin/awk`): add workaround for macOS `awk-32` `#D1974` e2ec89c
880 - util.hook: workaround bash-5.2 bug of nested read by `WINCH` `#D1981` a5b10e8
881 - main (`ble/base/adjust-builtin-wrappers`): fix persistent tempenv `IFS=` in bash-5.0 (reported by pt12lol) `#D2030` 5baf6f63
882 - edit: always adjust the terminal states with `bind -x` (reported by linwaytin) `#D1983` 5d14cf1
883 - edit: restore `PS1` while processing `bind -x` (reported by adoyle-h) `#D2024` 2eadcd5b
884 - syntax: suppress brace expansions in designated array initialization in Bash 5.3 `#D1989` 1e7b884
885 - progcomp: work around slow `nix` completion `#D1997` 2c1aacf
886 - complete: suppress error messages from `_adb` (reported by mozirilla213) `#D2005` f2aa32b0
887 - util: test the UTF-8 support of the current `LC_CTYPE` `#D2281` 537c6504 aa1b6f35
888
889 ## Test
890
891 - github/workflows: add CI checks in macOS and msys2 (requested by aiotter) `##D1881` c5ddacc
892 - github/workflows (nightly): add check for macOS (contributed by aiotter) `#D1881` 4cb0baa
893 - github/workflows (nightly, test): interchange setup `#D1881` 4cb0baa
894 - github/workflows: add `test.yml` `#D1881` 824dc53
895 - fix for macOS tests
896 - test (ble/util/c2s): fix locale settings in tests `#D1881` 26ed622
897 - test (ble/util/msleep): loosen the condition `#D1881` 26ed622
898 - test (ble/util/msleep): skip test in CI `#D1881` 26ed622
899 - fix for msys2 tests
900 - test: ensure a non-empty locale `#D1881` c5d1b82
901 - test (ble/util/readlink): work around msys symlinks `#D1881` c5d1b82
902 - test (ble/util/declare-print-definitions): skip array assignments involing CR in msys `#D1881` c5d1b82
903 - test (ble/util/is-stdin-ready): skip test in the CI msys `#D1881` c5d1b82
904 - main (bind): suppress non-interactive warning in msys `#D1881` c5d1b82
905 - canvas (GraphemeClusterBreak): handle surrogate pairs for UCS-2 `wchar_t` `#D1881` 18bf121
906 - util (ble/encoding:UTF-8/b2c): fix interpretation of leading byte `#D1881` 2e1a7c1
907 - util (ble/util/s2c): work around intermediate mbstate of bash <= 5.2 `#D1881` 2e1a7c1
908 - util (ble/util/s2bytes): clear locale cache `#D1881` 2e1a7c1
909 - complete: fix syntax error for bash-3.0 `#D1881` 0b3e611
910 - github/workflows: work around grep-3.0 which crashes in windows-latest `#D1915` fb7bd0b
911 - test (ble/util/writearray): use `ble/file#hash` instead of `sha256sum` `#D1882` b76e21e
912 - test (ble/util/readlink): work around external aliases `#D1890` 0c6291f
913
914 ## Internal changes and fixes
915
916 - main: include hostname in local runtime directory `#D1444` 6494836
917 - global: update the style of document comments ff4c4e7
918 - util: add function `ble/string#quote-words` `#D1451` f03b87b
919 - syntax (`ble/syntax:bash/simple-word/eval`): cache `#D1453` 6d8311e
920 - syntax (`simple-word/eval`): support `opts=single` for a better cache performance (motivated by 3ximus) `#D1464` 10caaa4
921 - global: refactor `setup => set up / set-up` `#D1456` c37a9dd
922 - global: clean up helps of user functions `#D1459` 33c283e
923 - benchmark (`ble-measure`): support `-T TIME` and `-B TIME` option `#D1460` 1aa471b
924 - util, color (`bleopt`, `blehook`, `ble-color-setface`): support `--color` and fix `sgr0` contamination in non-color output `#D1466` 69248ff
925 - global: fix status check for read timeout `#D1467` e886883
926 - decode: move `{keymap/*. => lib/core-decode.*-}rlfunc.txt` and clean up files `#D1486` f7323b4
927 - Makefile: fix up f7323b4: restore rule for `keymap/*.txt` `#D1496` 054e5c1
928 - util, etc: ensure each function to work with arbitrary `IFS` `#D1490` `#D1491` 5f9adfe
929 - tui, canvas (`ble/canvas/trace`): support `opts=clip` `#D1493` 61ce90c
930 - tui, edit: add a new render mode for full-screen applications 817889d
931 - test (`test-canvas`): fix dependency on `ext/contra` `#D1525` c89aa23
932 - util: inherit special file descriptors `#D1552` 98835b5
933 - util: fix a bug that old tty is used in new sessions `#D1586` 0e55b8e
934 - global: use `_ble_term_IFS` `#D1557` d23ad3c
935 - global: work around `localvar_inherit` for varname-list init `#D1566` 5c2edfc
936 - util: fix `ble/util/dense-array#fill-range` a46fdaf
937 - util: fix leak variables `buff`, `trap`, `{x,y}{1,2}` `#D1572` 5967d6c
938 - util: fix leak variables `#D1643` fcf634b
939 - edit (`command-help`): use `ble/util/assign/.mktmp` to determine the temporary filename `#D1663` 1af0800
940 - make: update lint check `#D1709` 7e26dcd
941 - test: save the test log to a file `#D1735` d8e6ea7
942 - benchmark: improve determination of the base time `#D1737` ad866c1
943 - make: add fallback Makefile for BSD make `#D1805` e5d8d00c
944 - main: support `bleopt debug_xtrace` (requested by SuperSandro2000) `#D1810` 022d38b
945 - test: clean up check failures by `make check` and `make scan` `#D1812` bb3e0a3
946 - util (`fd#alloc`): limit the search range of free fds `#D1813` 43be0e4 4c90072
947 - github/workflows: define an action for the nightly builds (contributed by uyha) `#D1814` a3082a0
948 - global: quote numbers for unexpected `IFS` `#D1835` 0179afc
949 - history: refactor hooks `history_{{delete,clear,insert} => change}` `#D1860` c393c93
950 - history: rename the hook `history_{on => }leave` `#D1860` c393c93
951 - make: check necessary `.git` `#D1887` 0f7c04b
952 - benchmark (zsh): fix for `KSH_ARRAYS` `#D1886` a144ffa 8cb9b84
953 - benchmark: support for ksh as `benchmark.ksh` `#D1886` 5dae4da
954 - github/workflows (build): rename directory in `ble-nightly.tar.xz` to `ble-nightly` (reported by Harduex) `#D1891` f20854f 4ea2e23 43c6d4b
955 - edit: update prompts on g2sgr change `#D1906` 40625ac
956 - util, decode, vi: fix leak variables `#D1933` 8d5cab8
957 - util: support `bleopt debug_idle` `#D1945` fa10184
958 - global: work around bash-4.4 no-argument return in trap `#D1970` eb4ffce
959 - util: replace builtin `readonly` with a shell function (requested by mozirilla213) `#D1985` 8683c84 e4758db
960 - util (`ble/builtin/readonly`): show file and line in warnings `#D2015` 467fa448 2c9b56d7
961 - global: avoid directly using `/dev/tty` `#D1986` a835b83
962 - util: add `ble/util/message` `#D2001` 2a524f34
963 - global: normalize bracket expressions to `_a-zA-Z` / `_a-zA-Z0-9` `#D2006` 41faa494
964 - global: fix leak variables `#D2018` 6f5604de
965 - edit: handle nested WINCH properly `#D2020` a6b2c078
966 - make: include the source filenames in the installed files (suggested by bkerin) `#D2027` 610fab39
967
968 ## Contrib
969
970 - prompt-git: detect staged changes `#D1718` 2b48e31
971 - prompt-git: fix a bug that information is not updated on reload `#D1732` 361e9c5
972 - config/execmark: show exit status in a separate line `#D1828` 4d24f84
973 - config/execmark: add names of exit statuses `#D2019` a6b2c078
974 - prompt-git: ignore untracked files in submodules `#D1829` 4d24f84
975 - integration/fzf
976 - fzf-completion: fix integration (reported by ferdinandyb) `#D1837` 12c022b
977 - fzf-completion: remove `noquote` (reported by MK-Alias) `#D1889` 0c6291f
978 - fzf-initialize: check directory existence before adding it to `PATH` (reported by Strykar) `#D1904` 09bb4d3
979 - fzf-key-bindings: fix a problem that `modifyOtherKeys` is not reflected (reported by SuperSandro2000) `#D1908` 486564a
980 - fzf-completion: quote only with `filenames` when `ble/syntax-raw` is specified (reported by christianknauer) `#D1978` 8965b61
981 - integration/zoxide
982 - complete, contrib: add completion integration with `zoxide` (reported by ferdinandyb) `#D1838` a96bafe
983 - zoxide: update `contrib/integration/zoxide` for zoxide v0.8.1 `#D1907` 3bc3bea
984 - zoxide: adjust `zoxide icanon` (reported by linwaytin) `#D1993` dc7de6b
985 - README: update description on `_ble_contrib_fzf_base` (reported by Strykar) `#D1904` 09bb4d3
986 - colorglass: add color filter `#D1902` 88e74cc
987 - colorglass: add `bleopt colorglass_{saturation,brightness}` (motivated by auwsom) `#D1906` 40625ac
988 - add `histdb` `#D1925` 44d9e10
989 - histdb: support auto-complete source `histdb-word` `#D1938` 00cae74
990 - histdb: automatically upgrade histdb version `#D1940` 4fac1e3
991 - histdb: support auto-complete source `histdb-history` `#D1941` 4fac1e3
992 - histdb: handle multiple exec lines for `histdb_ignore` `#D1942` 36e1c89
993 - histdb: kill orphan `sqlite3` processes `#D1943` 36e1c89
994 - histdb: back up the database `#D1944` 36e1c89
995 - histdb: fix miscellaneous SQL query errors `#D1947` 46ac426
996 - histdb: output error messages to tty `#D1952` 651c70c
997 - histdb: fix remaining debug function name "assign{2 => }" in bash <= 3.2 `#D1953` 651c70c
998 - histdb: fix a problem that the background process fails to start in bash-3.0 `#D1956` 651c70c
999 - histdb: fix a bug that history search fails with a single quote in the commandline `#D1957` 651c70c
1000 - histdb: fix `histdb-word` completions in the middle of the commandline `#D1968` adaec05
1001 - histdb: support `bleopt histdb_remarks` `#D1968` adaec05
1002 - histdb: support timeout of background processes `#D1971` e0566bd
1003 - histdb: enable database timeout for transactions `#D1982` a5b10e8
1004 - histdb: fix `.timeout` not set for background `sqlite3` `#D1982` 20b42fa
1005 - histdb: suppress color codes in the default `histdb_remarks` `#D1968` 20b42fa
1006 - histdb: disable timeout of background processes in Bash 3.2 `#D1992` 20b42fa
1007 - histdb: rewrite to use `ble/util/bgproc` `#D2017` 7803305f
1008 - integration: move `fzf` and `bash-preexec` integrations to subdir `#D1939` 86d9467
1009
1010 <!---------------------------------------------------------------------------->
1011 # ble-0.4.0-devel2
1012
1013 2020-01-12 -- 2020-12-02 (`#D1215`...`#D1426`) c74abc5...276baf2
1014
1015 ## New features
1016
1017 - complete: support `bleopt complete_auto_wordbreaks` (suggestion by dylankb) `#D1219` c294e31
1018 - main: check `~/.config/blesh/init.sh` `#D1224` a82f961
1019 - progcolor: support programmable highlighting `#D1218` 0770234 `#D1244` 9cb3583 `#D1245` 8e8a296 `#D1247` 154f638 `#D1269` fa0036c
1020 - decode/kbd: support <kbd>U+XXXX</kbd>, <kbd>@ESC</kbd> and <kbd>@NUL</kbd> for keynames `#D1251` 441117c ef23ad1
1021 - syntax: support `coproc` `#D1252` 7ff68d2
1022 - vi/nmap: support readline widgets for <kbd>M-left</kbd>, <kbd>M-right</kbd>, <kbd>C-delete</kbd>, <kbd>#</kbd> and <kbd>&</kbd> `#D1258` 846e0be
1023 - complete: add `compopt -o quote/default` for `fzf` (motivated by dylankb) `#D1275` 58e1be4
1024 - util (`ble-import`): support an option `-d` (`--delay`) `#D1285` 9673e4e
1025 - syntax: support parameter expansion of the form `${var/#pat}`, `${var/%pat}` `#D1286` e2f4809
1026 - edit: support `bleopt editor line_limit_{type,length} history_limit_length` `#D1295` 2f9a000
1027 - edit: support widgets `{vi,emacs}-editing-mode` `#D1301` 0c6c76e
1028 - syntax: allow unquoted `[!` and `[^` in `simple-word` (reported by cmplstofB) `#D1303` 1efe833
1029 - util (`ble/util/print-global-definitions`): support arrays and unset variables (test-util) 6e85f1c
1030 - util (`ble/util/cat`): support NUL and multiple files (test-util) d19a9af
1031 - edit: support Bash 5.1 `READLINE_MARK` and `PROMPT_COMMANDS` `#D1328` e97a858 `#D1338` 657bea5
1032 - edit, main: support array PROMPT_COMMAND in bash-5.1 `#D1380` b852a4f
1033 - syntax: support confusing parameter expansions like `${#@}`, etc. `#D1330` b7b42eb
1034 - contrib: add contrib for user settings `#D1335` f290115
1035 - syntax: support `${var@UuLK}` in Bash 5.1 `#D1336` 04da4dd
1036 - main: add an option `--test` `#D1340` 1410c72
1037 - util (`ble/builtin/trap`): support `return` in `INT`/`EXIT`/`WINCH` `#D1347` `#D1348` 3865488
1038 - history: support timestamp (reported by rux616) `#D1351` 4bcbd71 `#D1356` 350bb15 `#D1364` 1d8adf9
1039 - edit: support Bash 4.4 `PS0` `#D1357` 23a1ac5
1040 - vi: support `bleopt keymap_vi_mode_{update_prompt,show,name_*}` (suggested by Dave-Elec) `#D1365` 76be6f1
1041 - prompt: support prompt sequence `\q{...}` `#D1365` 76be6f1
1042 - edit: support `bind 'set show-mode-in-prompt'` `#D1365` 76be6f1
1043 - prompt: fix a bug that mode string is not shown in `auto_complete` and other sub-modes (reported by tigger04) `#D1371` f6fc7ff
1044 - prompt: redraw prompts on the prompt content change (reported by tigger04) `#D1371` 1954a1e
1045 - prompt: support `bleopt prompt_{{ps1,rps1}{_final,_transient}}` (suggested by Dave-Elec) `#D1366` 06381c9
1046 - prompt: fix a bug that prompt are always re-insntiated for every rendering `#D1374` 0770cda
1047 - prompt: fix a bug that rprompt is not cleared when `bleopt prompt_rps1` is reset `#D1377` 1904b1d
1048 - prompt: fix a bug that prompts updated by `PROMPT_COMMAND` are not reflected immediately (reported by 3ximus) `#D1426` bbda197
1049 - edit: support Bash 5.1 widgets `#D1368` e747ee3
1050 - color: support `TERM=*-direct` `#D1369` 0d38897 `#D1370` f7dc477
1051 - complete: support `bleopt complete_auto_menu` `#D1373` 77bfabd
1052 - complete: fix a problem of frequent bells with auto-menu activated `#D1381` 3b1d8ac
1053 - complete: support `bleopt complete_menu_maxlines` `#D1375` 8e81cd7
1054 - prompt: support `_ble_prompt_update` `#D1376` 0fa8739
1055 - prompt: support `bleopt prompt_{xterm_title,screen_title,status_line}` `#D1378` 5c3f6fe
1056 - prompt: check `TERM` for prompt window titles when `_ble_term_TERM` is unavailable `#D1388` 3c88869
1057 - syntax: support options `bleopt highlight_{syntax,filename,vartype}` to turn off highlighting (requested by pjmp) `#D1379` 0116f8b
1058 - complete: support `shopt progcomp_alias` `#D1397` d68afa5
1059 - complete: generate completions of options based on man pages `#D1405` 8183455
1060 - complete (mandb): fix a bug that `bleopt complete_menu_style` is globally changed `#D1412` b91fd10
1061 - highlight: support colon separated lists of paths `#D1409` 2f40422
1062 - highlight: fix a bug that non-simple words are always highlighted as `syntax_error` (reported by cmplstofB) `#D1411` 46e2ac6
1063 - highlight: fix a bug that words are sometimes unhighlighted `#D1418` 4395484
1064 - highlight: fix a bug that non-existent directories are not highlighted in the command name context `#D1419` 4395484
1065 - highlight: support options `#D1410` 2f40422
1066 - highlight: support highlighting of `declare` command options `#D1420` f0df481
1067 - highlight: fix unhighlighted tilde expansions `~+` (reported by cmplstofB) `#D1424` a32962e
1068
1069 ## Changes
1070
1071 - highlight: highlight symlink directories as symlinks `#D1249` 25e8a72
1072 - auto-complete: bind `insert-on-end` to `C-e` `#D1250` 90b45eb
1073 - edit (`widget/shell-expand-line`): not quote expanded results by default `#D1255` a9b7810
1074 - decode: refactor
1075 - decode: delay bind until keymap initialization `#D1258` 0beac33
1076 - decode: read user settings from `bind -Xsp` `#D1259` eef14d0
1077 - decode: fix a bug of `ble-bind` with uninitialized cmap `#D1260` 5d98210
1078 - decode: fix error messages of BSD `sed` rejecting unencoded bytes from `bind -p` (reported by dylankb) `#D1277` 0cc9160
1079 - edit: provide proper `$BASH_COMMAND` and `$_` for PS1, PROMPT_COMMAND, PRECMD, etc. `#D1276` 7db48dc
1080 - edit (quoted-insert): insert literal key sequence `#D1291` 420c933
1081 - decode: support `decode_abort_char` for `modifyOtherKeys` `#D1293` ad98416
1082 - edit (edit-and-execute): disable highlighting of old command line content `#D1295` 2f9a000
1083 - util (`bleopt`): fail when a specified bleopt variable does not exist (test-util) 5966f22
1084 - builtin: let redefined builtins return 2 for `--help` `#D1323` 731896c
1085 - edit: preserve `PS1` when `internal_suppress_bash_output` is set `#D1344` 6ede0c7
1086 - complete: complete param expan in additional contexts `#D1358` 3683305
1087 - main: reload on ble-update when ble.sh is already updated `#D1359` a441d4d
1088 - main (`ble-update`): clone github repository if the original repository is not found `#D1363` 6e3b3b5
1089 - util (bleopt): change output format d4b12cd
1090 - syntax: allow `time -- command` for Bash 5.1 `#D1367` 00d0e93
1091 - menu: preserve columns with `{forward,backward}-line` `#D1396` 3d5a341
1092 - syntax: rename `ble_debug` to `bleopt syntax_debug` `#D1398` 3cda58b
1093 - syntax: change a style of buffer contents in `bleopt syntax_debug` `#D1399` 3cda58b
1094 - complete: change to generate filenames starting from `.` by default (motivated by cmplstofB) `#D1425` 987436d
1095
1096 ## Fix
1097
1098 - util (ble/builtin/trap): fix argument analysis for the form `trap INT` (reported by dylankb) `#D1221` db8b0c2
1099 - main: fix an error message on ristricted shells `#D1220` b726225
1100 - edit: fix a bug that the shell hangs with `source ble.sh --noattach && ble-attach` (reported by dylankb) `#D1223` 59c1ce4 3031007
1101 - edit: fix a bug that the textarea state is not properly saved (reported by cmplstofB) `#D1227` 06ae2b1
1102 - syntax: support hexadecimal literals for arithmetic expression (reported by cmplstofB) `#D1228` 90e4f35
1103 - history: fix a bug that history append does not work with `set -C` (reported by cmplstofB) `#D1229` 604bb8b
1104 - decode (`ble/builtin/bind`): fix widget mapping for `default_keymap=safe` `#D1234` 750a9f5
1105 - main (ble-update): fix a bug that the check of `make` does not work in Bash 3.2 `#D1236` 08ced81
1106 - syntax: fix a infinite loop for variable assignments and parameter expansions `#D1239` 327661f
1107 - complete: clear menu on history move `#D1248` 06cc7de
1108 - syntax: fix a bug that arguments of `eval` are not highlighted `#D1254` 5046d14
1109 - decode: fix error message `command=${[key]-}` for mouse input `#D1263` 09bb274
1110 - [ble-0.3] reload: fix a bug that the state is broken by `ble-reload` `#D1266` f2f30d1
1111 - decode (`ble/builtin/bind`): remove comment from bind argument `#D1267` 880bb2c
1112 - decode: use `BRE` instead of `ERE` for `POSIX sed` (reported by dylankb) `#D1283` 2184739
1113 - decode: fix strange behaviors after `fzf` (convert <kbd>DEL</kbd> to <kbd>C-?</kbd>) `#D1281` 744c8e8
1114 - edit: work around Bash rebinding on `TERM` change `#D1287` ac7ab55 7a99bf3
1115 - term: work around terminfo/termcap entry collisions in `tput` (reported by killermoehre) `#D1289` f8c54ef
1116 - complete: clear menu on discard-line (reported by animecyc) `#D1290` fb794b3 `#D1315` 99880ef
1117 - vi (vi-command/nth-column): fix a bug in arithmetic expansion (reported by andychu) `#D1292` da6cc47
1118 - complete: fix a bug that insert-word does not for with ambiguous candidates `#D1295` 2f9a000
1119 - complete: fix a bug that menu-filter is only partially turned off by `complete_menu_filter` `#D1298` b3654e2
1120 - decode: fix error messages for unsupported readline functions `#D1301` 91bdb64
1121 - global: work around `shopt -s assoc_expand_once` `#D1305` 31908e1
1122 - global: work around `TMOUT` for `builtin read` `#D1306` 1c22a9d
1123 - syntax: fix failglob errors of heredocs of the form `<<$(echo A)` `#D1308` 3212fd2
1124 - decode (`ble-bind`): fix an error message `#D1311` c868b6d
1125 - util (`bleopt`): fix a bug that a new setting is not defined with `name:=` (test-util) `#D1312` c757b92
1126 - util (`ble/util/{save,restore}-vars`): fix a bug that `name` and `prefix` cannot be saved/restored (test-util) 5f2480c
1127 - util: fix `ble/is-{inttype,readonly,transformed}` (test-util) 485e1ac
1128 - util (`ble/path#remove{,-glob}`): fix corner cases (test-util) ccbc9f8
1129 - history: fix a problem that the history is doubled by `history -a` in `bashrc` `#D1314` 34821fe
1130 - util (`ble/variable#get-attr`): fix an error message with special variable names such as `?` and `*` `#D1321` 557b774
1131 - util (has-glob-pattern): fix abort in subshells (test-util) `#D1326` dc292a2
1132 - edit: fix a bug that `set +H` is cancelled on command execution `#D1332` 02bdf4e
1133 - syntax (`ble/syntax/parse/shift`): fix a bug of shift skip in nested words `#D1333` 65fbba0
1134 - global: work around Bash-4.4 `return` in trap handlers `#D1334` aa09d15
1135 - util (`ble-stackdump`): fix a shift of line numbers `#D1337` a14b72f d785b64
1136 - edit (`ble-bind -x`): check range of `READLINE_{POINT,MARK}` `#D1339` efe1e81
1137 - main: fix a bug that `~/.config/blesh/init.sh` is not detected (GitHub #53 by rux616) 61f9e10
1138 - util (`ble/string#to{upper,lower}`): work around `LC_COLLATE=en_US.utf8` (test-util) `#D1341` 1f6b44e `#D1355` 4da6103 5f0d49f
1139 - util (encoding, keyseq): fix miscelleneous encoding bugs (test-util) 435bd16
1140 - `ble/util/c2keyseq`: work around bash ambiguous keyseq `\M-\C-\\`
1141 - `ble/util/c2keyseq`: fix a bug that `C1` characters are not properly encoded
1142 - `ble/util/keyseq2chars`: fix a bug that `\xHH` is not properly processed
1143 - `ble/encoding:UTF-8/b2c`: work around Bash-4.2 arithmetic crash
1144 - `ble/encoding:UTF-8/b2c`: fix a bug that `G0` characters lose its seventh bit
1145 - `ble/encoding:UTF-8/c2b`: fix a bug that the first byte gets redundant bits
1146 - edit: work around `WINCH` not updating `COLUMNS`/`LINES` after `ble-reload` `#D1345` a190455
1147 - complete: initialize `bleopt complete_menu_style` options before `complete_load` hook (reported by rux616) `#D1352` 8a9a386
1148 - main: fix problems caused by multiple `source ble.sh` in bashrc `#D1354` 5476933
1149 - syntax: allow single-character variable name in named redirections `{a}<>` `#D1360` 4760409
1150 - complete: quote `#` and `~` at the beginning of word `#D1362` f62fe54
1151 - decode (`bind`): work around `shopt -s nocasematch` (reported by tigger04) `#D1372` 855cacf
1152 - syntax (tree-enumerate): fix unmodified `wtype` of reconstructed words at the end `#D1385` 98576c7
1153 - complete: fix a bug that progcomp retry by 124 caused the default completion again `#D1386` 98576c7
1154 - complete: fix bugs that quotation disappears on ambiguous completion `#D1387` 98576c7
1155 - complete: fix a bug of duplicated completions of filenames with spaces `#D1390` 98576c7
1156 - complete: fix superlinear performace of ambiguous matching globpat `#D1389` 71afaba
1157 - prompt: fix extra spaces on line folding before double width character `#D1400` d84bcd8
1158 - prompt: fix a bug that lonig rps1 is not correctly turned off `#D1401` d84bcd8
1159 - syntax (glob bracket expression): fix a bug of unsupported POSIX brackets `#D1402` 6fd9e22
1160 - syntax (`ble/syntax:bash/simple-word/evaluate-path-spec`): fix a bug of unrecognized `[!...]` and `[^...]` `#D1403` 0b842f5
1161 - complete (`cd`): fix duplicate candidates by `CDPATH` (reported by Lennart00 at `oh-my-bash`) `#D1415` 5777d7f
1162 - complete (`source:file`): fix a bug that tilde expansion candidates are always filtered out `#D1416` 5777d7f
1163 - complete: fix a problem of redundant unmatched ambiguous part with tilde expansions in the common prefix `#D1417` 5777d7f
1164 - highlight: fix remaininig highlighting of vanishing words `#D1421` `#D1422` 1066653
1165 - complete: fix a problem that the user setting `dotglob` is changed `#D1425` 987436d
1166
1167 ## Compatibility
1168
1169 - main: work around cygwin uninitialized environment `#D1225` `#D1226` b9278bc
1170 - global: work around Bash 3.2 bug of array initialization with <kbd>SOH</kbd>/<kbd>DEL</kbd> `#D1238` defdbd4 `#D1241` 1720ec0
1171 - term: support `TERM=minix` `#D1262` ae0b80f
1172 - msys2: support2 MSYS (motivated by SUCHMOKUO) `#D1264` 47e2863
1173 - edit: support `\$` in `PS1` for MSYS2 `#D1265` f6f8956
1174 - msys2: work around MSYS2 Bash bug of missing <kbd>CR</kbd> `#D1270` 71f3498
1175 - cygwin, msys2: support widget `paste-from-clipboard` `#D1271` cd26c65
1176 - msys1: support MSYS1 `#D1272` 630d659
1177 - msys1: work around missing named pipes in MSYS1 `#D1273` 6f6c2e5
1178 - term: support contra `SPD` `#D1288` 1e65f2c
1179 - decode: work around Bash-4.1 bug that locale not applied with `LC_CTYPE=C eval command` (test-util) b2c7d1c
1180 - util (`ble/variable#get-attr`): fix a bug that attributes are not obtained in Bash <= 4.3 (test-util) b2c7d1c
1181 - decode: work around Bash-3.1 bug of `declare -f` rejecting special characters in function names (test-util) b2c7d1c
1182 - edit (`ble/widget/bracketed-paste`): fix error messages on `paste_end` in older version of Bash (test-util) b2c7d1c
1183 - decode: work around Bash-4.1 arithmetic bug of array subscripts evaluated in discarded branches `#D1320` 557b774
1184 - complete: follow Bash-5.1 change of arithmetic literal `10#` `#D1322` 557b774
1185 - decode: fix a bug of broken cmap cache found in ble-0.3 `#D1327` 16b56bf
1186 - util (strftime): fix a bug not working with `-v var` option in Bash <= 4.1 (test-util) f1a2818
1187 - complete: work around slow `compgen -c` in Cygwin `#D1329` 5327f5d
1188 - edit: work around problems with `mc` (reported by onelittlehope) `#D1392` e97aa07
1189 - highlight: fix a problem that the attribute of the last character is applied till EOL `#D1393` 2ddb1ba `#D1395` ef09932
1190
1191 ## Internal changes and fixes
1192
1193 - util: merge `ble/util/{save,restore}-{arrs => vars}` `#D1217` 6acb9a3
1194 - internal: merge subdir `test` into `memo` `#D1230` f0c38b6
1195 - ble-measure: improve calibration `DD1231` d3a7a52
1196 - vi_test: fix a bug that test fails to restore the original state `#D1232` 4b882fb
1197 - decode (ble/builtin/bind): skip checking stdin in parsing the keyseq `#D1235` 5f949e8
1198 - syntax: delay load of `ble/syntax/parse` for syntax highlighting `#D1237` bb31b11
1199 - memo: split `memo.txt` -> `note.txt`, `done.txt` and `ChangeLog.md` `#D1243` 31bc9aa 8b0fe34 419155e
1200 - global: check isolated identifiers and leak variables `#D1246` 19cc99d 2e74b6d
1201 - util: add `ble/function#{advice,push,pop}` to patch functions (motivated by dylankb) `#D1275` fbe531a
1202 - util (`ble/util/stackdump`): output to `stdout` instead of `stderr` `#D1279` 9d3c50d
1203 - complete (`ble-sabbrev`): delay initialization `#D1282` dfc4f66
1204 - test: update `lib/test-{core => util}.sh` (reported by andychu) `#D1294` e835b0d
1205 - edit: improve performance of bracketed-paste `#D1296` 0a45596 `#D1300` 3f33dab `#D1302` 5ee06c8 10ad274
1206 - decode: improve performance of `ble-decode-char` `#D1297` 0d9d867
1207 - ext: update `mwg_pp.awk` (for branch osh) 978ea32
1208 - test: add `lib/core-test.sh` `#D1309` 68f8077
1209 - global: do not use `local -i` `#D1310` f9f0f9b
1210 - global: normalize calls of builtins `#D1313` b3b06f7
1211 - test: refactor test `#D1316` `#D1317` 6c2f863
1212 - util (`ble/util/openat`): change to open unused fds `#D1318` 6c2f863
1213 - util: rename `ble/{util/openat => fd#alloc}` `#D1319` 6c2f863
1214 - util (`ble/function#advice remove`): restore original command 149a640
1215 - edit: rename `ble-edit/prompt/*` -> `ble/prompt/*` `#D1365` 76be6f1
1216 - main: use `PROMPT_COMMAND` in bash-5.1 for prompt attach `#D1380` b852a4f
1217 - main: unset `BLE_VERSION`, `_ble_bash`, etc. on `ble-unload` `#D1382` 6b615b6
1218 - util: revisit `ble/variable#is-global` implementation `#D1383` 6b5468f
1219 - cmap: recognize <kbd>SS3 O</kbd> as <kbd>blur</kbd> `#D1384` 445a5ad
1220 - edit (`ble/widget/{accept-line,newline}`): automatically switch widgets by the keymap `#D1391` 5bed6e6
1221 - complete: perform filter in `ble/complete/cand/yield` `#D1404` 7c6b67b 83fa830
1222 - complete: fix a bug that `ble/cmdinfo/complete:cd` candidates are unfiltered (reported by cmplstofB) `#D1413` 5c17a31
1223 - complete: fix unfiltered tilde expansions `#D1414` 5777d7f
1224 - complete: fix candidate filter failure in dynamic sabbrev expansion (reported by darrSonik) `#D1423` dabc515
1225 - syntax, edit: use `type -a -t -- cmd` to get command types hidden by keywords `#D1406` ef2d912
1226 - edit, complete: replace some external commands with Bash builtin `#D1407` 5386e93
1227
1228 <!---------------------------------------------------------------------------->
1229 # ble-0.4.0-devel1
1230
1231 2019-03-21 -- 2020-01-12 (#D1015...#D1215) df4feaa...c74abc5
1232
1233 ## New features
1234
1235 - emacs: support widgets `forward-byte` and `backward-byte` `#D1017` b2951ef
1236 - emacs: support arguments of word wise operations `#D1020` 719092c
1237 - emacs: support widgets `{capitalize,downcase,upcase}-xword` `#D1019` 719092c
1238 - emacs: support widgets `alias-expand-line` and `history-and-alias-expand-line` `#D1024` fdaf579
1239 - emacs: support keyboard macros `#D1028` 284668a
1240 - decode: workaround recursive charlog/keylog `#D1030` ea421a3
1241 - complete: define `menu` keymap `#D1033` abfd060
1242 - emacs: support widgets `kill{,-graphical,-logical}-line` `#D1037` 3bb3d33
1243 - emacs: support a widget `re-read-init-file` `#D1038` ebe2928
1244 - emacs: support widgets `readline-dump-{functions,macros,variables}` `#D1039` 49256a9
1245 - emacs: support widgets `character-search-{for,back}ward` and `delete-forward-char-or-list` `#D1040` 2b20c88
1246 - emacs: support widgets `insert-comment` and `do-lowercase-version` `#D1041` 7aae37b
1247 - main: support options `--version` and `--help` `#D1042` b5ab789
1248 - main: read `.inputrc` as `ble.sh` settings `#D1042` b5ab789
1249 - decode: fix a bug of error messages on reading `.inputrc` `#D1062` e163b9a
1250 - complete: support widget `menu-complete insert_braces` `#D1043` 3d29c8d
1251 - complete (insert_braces): reimplement range contraction `#D1044` dc586da
1252 - complete (insert_braces): remove empty quotations `#D1045` `#D1046` dc586da
1253 - complete (insert_braces): fix support of replacement of existing part `#D1047` dc586da
1254 - complete: support `complete context=dynamic-history` `#D1048` 4f7b284
1255 - emacs: support a widget `edit-and-execute-command` `#D1050` ca5fe08
1256 - emacs: support widgets `insert-{last,nth}-argument` `#D1051` 24458be
1257 - complete: support `menu-complete backward` `#D1052` 2b0c7e8
1258 - emacs: `history-nsearch-{for,back}ward-again` `#D1053` 60dde2c
1259 - emacs: support widgets `tab-insert`, `tilde-expand` and `shell-expand-line` `#D1054` 156b76e
1260 - emacs: support a widget `transpose-{c,u,s,f,e}words` `#D1055` d72c2d4
1261 - emacs: support `bleopt decode_error_cseq_{abell,vbell,discard}` `#D1056` ab1b8b0
1262 - decode: fix a bug that cmap cache update is not triggered for `#D1073` f1e7674
1263 - emacs: support a widget `universal-arg` `#D1057` 8b1dd07
1264 - emacs: support kill ring and a widget `yank-pop` `#D1059` 8c9b6e8
1265 - highlight: support job names by `auto_resume` `#D1065` ce46024
1266 - decode: add support for `S8C1T` key sequences `#D1083` 9b7939b
1267 - history: support `bleopt history_share` `#D1100` `#D1099` 305b89f `#D1193` 4838a46
1268 - history: support full multiline history `#D1120` 8cf17f7
1269 - history: do not synchronize multiline resolution on "history -p" `#D1121` 9e56b7b
1270 - history.mlfix: suppress errors on Bash 3 `#D1122` 4fe7a0c
1271 - history: suppress error messages trying to kill background worker on reattach `#D1125` f045fec
1272 - highlight: support dirname colors with pathname expansion, failglob and command names `#D1134` edaf495
1273 - util: introduce `blehook` `#D1139` d1a78fb
1274 - blehook: support `blehook PRECMD PREEXEC POSTEXEC CHPWD ADDHISTORY` `#D1142` bedc2ba
1275 - blehook: add `blehook/eval-after-load` `#D1145` c1f7aa9
1276 - blehook: fix a bug that the definition of specified hooks are not printed `#D1146` a4a7cbc
1277 - highlight: highlight word with the form of URL `#D1150` f48f2d7
1278 - syntax: support syntax/globpat in param expansions `#D1157` `#D1158` 051222e `#D1160` 57b42ba
1279 - syntax: fix attr of nested extglob in param expansions `#D1159` 2d019f0
1280 - decode: support `ble-bind -T kspecs timeout` for timeout and `lib/vim-arpeggio.sh` (request by divramod) `#D1174` 272344e
1281 - complete: use `WORD*` pathname expansion for candidates on failglob with `WORD` `#D1177` c1b0532
1282 - edit: support `bleopt accept_line_threshold` `#D1178` a3385f6 82a1e0b
1283 - complete: support `bleopt complete_allow_reduction` `#D1181` 03040b7
1284 - edit: support `bleopt exec_errexit_mark` `#D1182` 6adc2df
1285 - color: support true colors `#D1184` bd631ce 5dd6b03
1286 - color (`ble-color-setface`): support reference to another face (reported by cmplstofB) `#D1188` 1885b54 `#D1206` 7e31ad3
1287 - edit: support `shopt -u promptvars` `#D1189` 269ba09
1288 - highlight: highlight variable names and numbers according to its state `#D1210` `#D1211` 93dab7b
1289 - highlight: support `${var@op}` (for bash 4.4) `#D1212` a85bdb8
1290
1291 ## Changes
1292
1293 - edit: erase in page on `SIGWINCH` `#D1016` 7625ebe
1294 - edit: the widgets `{kill,copy,delete}-region-or` now receives widgets as arguments `#D1021` bbbd155
1295 - edit: disable aliases for builtins and keywords `#D1023` 61da093
1296 - edit: disable `rps1` in secondary textareas `#D1027` b86709a
1297 - edit: support `$?` in `PROMPT_COMMAND` and `PS1` evaluation `#D1074` 43f2967
1298 - main: change default attach strategy to `--attach=prompt` `#D1076` 197f752
1299 - main: change exit status of `ble-update` when it is already up to date `#D1081` d94f691
1300 - progcomp: improve treatment of `COMP_WORDBREAKS` `#D1094` f6740b5 `#D1098` 6c6bae5
1301 - history: replace builtin `history` `#D1101` 655d73e
1302 - history: synchronize undo/mark/dirty data with history changes `#D1102` `#D1103` `#D1104` 5367360
1303 - history: improve performance of `history -r` `#D1105` `#D1106` f204bc7
1304 - history: fix a problem that history file is doubled with `history -cr` in `PROMPT_COMMAND` `#D1110` e64edb7
1305 - history: suppress errors on new history file `#D1111` e64edb7 `#D1113` 91f07b6
1306 - history: fix a problem that `_ble_edit_history` is not synchronized with `history -r` `#D1112` e64edb7
1307 - history: do not process `_ble_edit_history` in detached state `#D1115` bf3b014
1308 - history: move history item on delete of current item with `history -d` `#D1114` bf3b014
1309 - history: fix a problem that history before load of ble.sh is lost `#D1126` 37cd154
1310 - history: fix problems of history output after `ble-reload` `#D1129` 9c8d858
1311 - history: improve performance of `erasedups` `#D1107` 518e2ee
1312 - history: correctly handle `HISTSIZE` overflow `#D1108` 7be255c
1313 - sabbrev: support sabbrev expansion in wider contexts (reported by cmplstofB) `#D1117` ca6e03d
1314 - main: change loading point of `.inputrc` `#D1127` af758e5
1315 - highlight: do not split command names with `:` and `=` `#D1133` 8a1bd8f
1316 - decode: support DA1 responses sent by some terminals (reported by miba072) `#D1135` 362ab05
1317 - highlight: make brace expansions active for RHS of variable-assignment-form arguments `#D1138` 93cc8da
1318 - main: adjust readline variables for `ble.sh` `#D1148` 36312f7
1319 - edit: update prompt after execution of command through `ble-bind` `#D1151` 27208ea
1320 - blehook: replace builtin `trap` `#D1152` d6c555e 7d4fd03
1321 - blehook: suppress extra `DEBUG` trap calls `#D1155` 25c3e19
1322 - syntax: allow `},fi,done,esac,then,...` after subshell `()` `#D1165` fdb49f3
1323 - edit: support options `--help` for `read` and `exit` `#D1173` faccc6b
1324 - color (`ble-color-{set,def}face`): list faces without arguments `#D1180` 50327c3
1325 - complete: search completion settings through alias expansion `#D1187` c472809
1326 - history (`ble/builtin/history`): support an option `--help` `#D1192` d4c26c5
1327
1328 ## Fixes
1329
1330 - decode: workaround Poderosa that returns `DSR` instead of `CPR` in reply to `DSR(6)` `#D1018` 8e22c17
1331 - isearch: fix a bug to match with the old content of the current line `#D1025` 605dcd0
1332 - vi: fix a bug that quoted-insert is not properly recorded with `qx...q` `#D1026` 06698a4
1333 - decode: fix a bug that chars from nested widgets are not processed immediately `#D1028` c79d89b
1334 - menu: fix a bug that fails to retrieve menu item description `#D1031` c936db8
1335 - menu: fix a bug that menu item color is disabled `#D1032` c936db8
1336 - vbell: fix a bug that persistent vbell is not erased before next vbell `#D1034` a3af6c0
1337 - menu-complete: fix a bug that candidates from menu only contained visible ones `#D1036` 275779f
1338 - menu-complete: fix a bug that original texts were lost on cancel `#D1049` 3bbfef6
1339 - edit: fix a bug that rendering is caused twice `#D1053` c7599a2
1340 - color (layer:region): fix a bug that highlighting is cleared without dirty ranges `#D1053` 23796bc
1341 - edit (nsearch): fix a bug that the search range is narrowed after fail `#D1053` 3b2237e
1342 - edit (nsearch): fix a bug of messages on search fail `#D1053` 3b2237e
1343 - util: fix a bug that SGR of visible-bell remains 799f6d3
1344 - decode: fix a bug of infinite loops on `ble-reload` `#D1077` 0f01bcf `#D1079` fee22b1
1345 - decode: workaround a bash-5.0 bug of `bind -p` `#D1078` b52da28
1346 - complete: workaround slow command candidates generation in Cygwin `#D1080` 376bfe7
1347 - syntax: fix false error highlighting of commands after `}`, `fi`, `done` or `esac` `#D1082` 4ce2753
1348 - decode: fix a bug that modifyOtherKeys did not work at all 1666ec2
1349 - edit: fix a problem that status line vanishes on window resize `#D1085` 467b7a4
1350 - edit: recalculate prompts after resize `#D1088` b29f248
1351 - edit: fix the position of cursor after resize `#D1089` b29f248
1352 - decode: fix a bug that `ble-update` breaks keymap cache `#D1086` ab8dad2
1353 - edit (`ble/builtin/read`): suppress noisy job messages and delay caused by vbell `#D1087` 309b9e4
1354 - edit (`ble/builtin/read`): workaround failglob crash on vbell inside `read` `#D1090` 2e6f44c
1355 - edit: workaround a bash bug that history entries are removed by `history -p` `#D1091` 146f9e7
1356 - edit (self-insert): workaround Bash-3.0 bug that ^? cannot be handled properly `#D1093` e09c7b5
1357 - highlight: fix a bug that quoted tilde expansions are processed for filename highlighting `#D1095` 3f1f472
1358 - menu-complete: fix a bug that word is expanded on cancel `#D1097` 001b914
1359 - highlight: fix a problem that empty arguments are highlighted as errors `#D1116` 64ae8ce
1360 - sabbrev: fix a bug that menu-filter is not canceled on some sabbrev expansion `#D1118` 30cc31c
1361 - main: fix a bug that `source ble.sh --noattach` in `ble.sh` sessions hangs `#D1130` d35682a caa46c2 `#D1199`
1362 - syntax: workaround bashbug 3.1/3.2 that `eval` ending with <kbd>\ + LF</kbd> causes error messages `#D1132` a4b7e00
1363 - term: workaround `cygwin` console glitches `#D1143` b79c35f `#D1144` ef19d17
1364 - main: fix a bug that error messages for unsupported shells are not printed `#D1149` 34bd6f8
1365 - main: workaround `set -ex` `#D1153` 06ebf9f
1366 - main: workaround shell variable `FUNCNEST` `#D1154` fa2aa47
1367 - highlight: fix error messages on the command line `a=[` `#D1156` b159ea2
1368 - util: fix a bug of "ble/builtin/trap" not recognizing "-" `#D1161` 11fddba
1369 - init-bind: workaround a bash-5.0 bug that `bind '"\C-\\": ...'` does not work `#D1162` 80edf44
1370 - init-bind: do not use workaround of `C-x` in vi mode `#D1163` e6a3d33
1371 - vi_test: fix test for the macro playing `#D1164` 636517c
1372 - exec: fix a problem that the shell hangs with failglob in pipe `#D1166` ac8ba6e
1373 - complete: fix a problem of delay with path `//` in Cygwin `#D1168` 2cf8cc7
1374 - prompt: fix the expansion of `\w` and `\W` in `PS1` for working directories with double slashes `#D1169` d1288dd
1375 - exec: workaround termination of command execution on syntax error in array subscripts `#D1170` 4f442d0
1376 - history: fix a bug that garbage `__ble_edt__` is added in front of history entries 61f4bd1
1377 - decode: remove debug messages for `ble-bind -s` 64a17c3
1378 - syntax: fix highlighting of `${!var@}` `#D1176` 161ed80
1379 - term: fix `Ss` (`DECSCUSR`) 0c773da
1380 - term: workaround linux console <kbd>CSI \></kbd>, <kbd>CSI M</kbd>, <kbd>CSI L</kbd> `#D1213` `#D1214` 0ec6f0c
1381 - edit: fix exit status of Bash by key binding <kbd>C-d</kbd> `#D1215` a9756e9
1382
1383 ## Support macOS, FreeBSD, Arch Linux, Solaris, Haiku, Minix
1384
1385 - util: fix the error message "usage: sleep seconds" on macOS bash 3.2 `#D1194` (reported by dylankb) 6ff4d2b
1386 - decode: recover the terminal states after failing the default keymap initialization `#D1195` (reported by dylankb) 846f284
1387 - main (`ble-update`): use shallow clone `#D1196` 2a20d9c
1388 - main (`$_ble_base_cache`): use different directories for different ble versions `#D1197` 55951d1
1389 - edit (`ble/builtin/read`): fix argument analysis with user-provided `IFS` in Bash 3.2 (reported by dylankb) `#D1198` 7411f06
1390 - global: fix subshell detection in Bash 3.2 `#D1200` ca8df8a
1391 - syntax: workaround Bash-4.1 arithmetic bug `#D1201` f248c52
1392 - Makefile: fix "install" for BSD sed `#D1202` 32c2e1a
1393 - term: support "tput" based on termcap `#D1203` `#D1204` 161af07
1394 - global: adjust for FreeBSD and Arch Linux `#D1205` 6ac5b8c
1395 - global: workaround Solaris awk `#D1207` 74d438d
1396 - util: support Haiku `#D1208` e3de373
1397 - ble/util/msleep: do not use `read -t time` for Haiku
1398 - ble/term/stty: check available character settings
1399 - init-cmap: check termcap settings for <kbd>home</kbd>
1400 - util: support Minix `#D1209` 49e6457
1401 - ble/util/msleep: do not use `read -t time -u FD` in Minix
1402 - ble-edit/prompt: does not abbreviate IPv4 address for `\h`
1403 - Makefile: create directory `dist` for `make dist`
1404
1405 ## Internal changes
1406
1407 - complete: isolate menu related codes `#D1029` 43bb074
1408 - global: use `builtin echo` explicitly `#D1035` a6232c2
1409 - decode: re-implement rlfunc2widget without fork `#D1063` d2e7dbe
1410 - blerc: add descriptions `#D1064` d61b6af
1411 - decode: decode mouse events `#D1084` 51fae67
1412 - history: move history related codes to `src/history.sh` `#D1119` 1bfc8eb e5b1980
1413 - history: move codes related to history prefixes and history searches to `history.sh` `#D1136` 1cda6ff 20024d2
1414 - history: use common "_ble_history_onleave" for different histories `#D1137` ec19d51
1415 - keymap/vi: deal with textarea local data properly `#D1123` 2ea7cfd
1416 - edit: remove `ble-edit/exec:exec` `#D1131` 0cb9c6d
1417 - global: distinguish exit status 147 and 148 `#D1141` d1a78fb
1418 - global: follow bash syntactic changes on arithmetic command 16e0f0e
1419 - decode: check `bind -X` first to store the original bindings `#D1179` 4057ff0
1420 - complete: resolve collision of flag chars with `shopt -s nocaseglob` `#D1186` 550fb14
1421 - color: change return variable of `ble/color/{,i}face2{g,sgr}` to `ret` `#D1188` 1885b54
1422 - global: workaround `shopt -s xpg_echo` `#D1191` e46f9a3
1423
1424 <!---------------------------------------------------------------------------->
1425 # 2019-03-21
1426
1427 2019-02-09..2019-03-21 (#D0915...#D1015) 949e9a8...df4feaa
1428
1429 ## New features
1430
1431 - auto-complete: support <kbd>end</kbd> at the end of line a374635
1432 - decode: replace builtin `bind` for `ble.sh` settings `#D0915` 90ca3be `#D0918` e0cdd15
1433 - decode: update mapping of rl-functions and widgets for vi_imap and vi_nmap `#D1012` 7fec4b6
1434 - decode: support `bind [-psPSX] [-quf arg]` `#D1013` 9265f8a
1435 - edit: support <kbd>C-x C-g</kbd>, <kbd>C-M-g</kbd> for `bell` and `cancel` `#D0919` 2e83120
1436 - syntax: support `set +B` `#D0931` 12f80dd
1437 - syntax: support aliased keywords `#D0936` 7054e28
1438 - complete: support `ble-sabbrev -m key=function` `#D0942` bcdf843
1439 - complete: support description of candidates `#D0945` `#D0946` 0fa73bf `#D0977` 96fe498
1440 - canvas: use ... instead of … when unicode is not available `#D0979` 51e600a
1441 - canvas (`ble/canvas/trace`): support `opts=truncate:confine` `#D0981` 79916d2
1442 - complete: support insertion of ambiguous common part `#D0947` 3644a8e
1443 - complete: support three levels of ambiguous matching `#D0948` 3644a8e
1444 - complete: support menu item highlight of ambiguous matching `#D0949` 3644a8e
1445 - complete: support menu pages `#D0958` ff43e01 a488e01 `#D0990` 32aeef0
1446 - menu-complete: show page numbers with `visible-bell` `#D0980` 6297e65
1447 - menu-complete: fix a bug that height of `menu` is too large (<= bash-4.1) `#D0983` 129a1f0
1448 - edit: support `bleopt rps1=` for the right prompt `#D0959` 90a8915 `#D0964` fa2a874 `#D0970` 87c8348
1449 - rps1: fix coordinate calculations for rps1 `#D0982` 129a1f0
1450 - canvas (`ble/canvas/trace`): fix a bug that `measure-bbox` does not work (<= bash-3.1) `#D0988` 7f880de
1451 - canvas (`ble/canvas/trace`): fix a bug that `x1` and `y1` is not properly updated `#D0988` 7f880de
1452 - edit: support `bleopt rps1_transient` `#D0993` 44edd38
1453 - edit: fix a bug that `rps1` is cleared on execution of the command `#D1003` 5780154
1454 - edit: erase trailing spaces after newlines when `rps1_transient` is enabled `#D1004` 5780154
1455 - edit: support multiline `rps1` (Note: still restricted to fit in lines of `PS1`) `#D1005` 5780154
1456 - complete: support "bleopt complete_menu_style=desc-raw" `#D0965` 1fd7a3e
1457 - complete: support <kbd>prior</kbd>, <kbd>next</kbd>, <kbd>home</kbd>, <kbd>end</kbd> in `menu_complete` keymap `#D0966` b729d23
1458 - edit: support `bleopt prompt_eol_mark=$'\e[94m[ble: EOF]\e[m'` `#D0968` 6c8b52a
1459 - complete: highlight active ranges of `menu-filter` `#D0969` 500f702 `#D0971` aae8b26
1460 - menu-filter: cancel `menu-filter` when the word ends `#D0974` 6ce2ad2
1461 - menu-filter: improve highlight `#D0975` b89f39f
1462 - isearch: show progress bar using unicode chars `#D0978` 51e600a
1463 - main: support `ble-reload` ef51490
1464 - complete: support `source:sabbrev` `#D0994` 5c9e579
1465 - complete: clear menu on <kbd>C-g</kbd> `#D0995` e0f93a2
1466 - vi_imap: support `bleopt keymap_vi_imap_undo=more` `#D0996` 50f8ad2
1467 - util: support `bleopt vbell_align` and `ble-color-setface vbell{,_flash,_erase}` for vbell `#D0997` 325883e
1468 - vbell: fix a bug that garbages remain on short messages just after longer messages `#D1010` 3e9ff85
1469 - decode: support "bleopt decode_abort_char=28" `#D0998` b110cb9
1470 - complete: support `visible-stats` and `mark-directories` `#D1006` b389b3b
1471 - complete: support `mark-symlinked-directories`, `match-hidden-files` and `menu-complete-display-prefix` `#D1007` fd66194
1472 - canvas: support `bleopt char_width_mode=auto` `#D1011` 3978df3
1473
1474 ## Changes
1475
1476 - prompt: support correct handling of escapes `#D0923` 22f9b56
1477 - util (`ble/util/sleep`): adjust delay `#D0934` `#D0935` 5fd5cd6 ad1208b 188cd98
1478 - complete: use candidates in menu if present `#D0939` 52eaf01
1479 - complete: fix a bug that menu-complete is disabled after `menu-filter` `#D0951` 08cba07
1480 - complete: fix a bug that wrong action is performed after `menu-filter` `#D0952` 08cba07
1481 - complete: fix a bug that extra <kbd>TAB</kbd> is needed to enter `menu-complete` `#D0956` aa6bd73
1482 - complete: fix a bug that candidates are not regenerated on function name completions `#D0961` bbea72e
1483 - complete: fix a problem that the menu style is reset on `menu-complete` `#D0972` 47c28ff
1484 - menu-filter: explicitly call `ble/complete/menu-filter` (<= bash-3.2) `#D0986` 1b14b11
1485 - syntax: allow variable assignment in arguments of `eval` `#D0941` 2f2f0eb
1486 - highlight: do not highlight overwrite modes when mark is active `#D0950` 4efe1a9
1487 - highlight: disable `layer:menu_filter` (<= bash-3.2) `#D0987` 1b14b11
1488 - complete: disable `auto-complete` inside the active range of `menu-filter` `#D0957`
1489 - util (visible-bell): truncate long messages to fit into a line `#D0973` e55ff86
1490 - edit: render prompt immediately on newline `#D0991` cdb8acb `#D1003` 5780154
1491 - syntax: detect syntax errors of `CTX_CMDX1` immediately followed by terminating keywords `#D1001` 7ea02b7
1492 - complete: improve support of `bind 'completion-ignore-case on'` `#D1002` 25ebc55
1493 - complete: preserve original path specifications on ambiguous completion `#D1014` a39d1ac
1494 - complete: append `,` instead of ` ` after completion in brace expansions `#D1015` df4feaa
1495
1496 ## Fixes
1497
1498 - main: workaround `set -evx` `#D0930` 698517d
1499 - edit (widget `delete-horizontal-space`): fix a bug that spaces before the cursor is not removed `#D0932` 9290adb
1500 - bleopt: fix a bug that false error messages are output on reload when `failglob` is set `#D0933` 64cdcba c62db26
1501 - decode: fix a bug that <kbd>\\</kbd> cannot be input after reattach `#D0937` a46ada0
1502 - reload: fix a bug that `PS1` is lost on reload with `--attach=prompt` `#D0938` 1107ca8
1503 - main (`--attach=prompt`): workaround rewrite of `PROMPT_COMMAND` `#D0940` 863fd7b
1504 - vi_nmap (`/`, `?`, `n`, `N`): fix search progress `#D0944` f20f840
1505 - complete: fix a problem of slow ambiguous filename matching in nested directories `#D0960` 7b3ee55
1506 - util: improve performance of `ble/{util/{mapfile,assign-array},string#split-lines}` (<= bash-3.2) `#D0985` ae176b2 `#D0989` 36b9a8f f199215
1507 - sabbrev: fix a bug that sabbrev is disabled (<= bash-3.2) `#D0985` 840af29
1508 - util (ble/util/msleep): suppress warnings from `usleep` `#D0984` 8e4180c
1509 - util: fix a problem that <kbd>C-d</kbd> cannot be input in nested Bash 3.1 `#D0992` 88a1b0f
1510 - edit: fix a bug of a redundant newline on `read -e` `#D0999` 700bc91
1511
1512 ## Internal changes
1513
1514 - [refactor] info: rename info type `raw` -> `esc` `#D0954` ac86f10
1515 - [refactor] do not use brace expansions for `VARNAMES` `#D0955` 711e7df
1516 - [refactor] `ble-{highlight,complete,syntax}` -> `ble/*` 7aaa660 ae6be66 8ea903c
1517 - [refactor] `ble-edit/info/.construct-text` -> `ble/canvas/trace-text` `#D0973` e55ff86
1518 - rename `ble/complete/action:*/getg` -> `ble/complete/action:*/init-menu-item` `#D1006` b389b3b
1519
1520 <!---------------------------------------------------------------------------->
1521 # 2019-02-09
1522
1523 2018-10-05 -- 2019-02-09 (#D0858..#D0914) 6ed51e7..949e9a8
1524
1525 ## New features
1526
1527 - color (`ble-color-setface`): support various spec such as SGR params `#D0860` 82fe96d `#D0861` 257c16d `#D0864` 2eaf2a9
1528 - syntax: `bleopt filename_ls_colors` に対応 `#D0862` c7ff302 `#D0863` 3c5bacf ec31aab
1529 - vi_omap: support <kbd>v</kbd>, <kbd>V</kbd>, <kbd>C-v</kbd> `#D0865` 54942e0 `#D0866` a9a1638 `#D0867` d3d8ea3 `#D0868` eb848dc
1530 - main: improve support of `[[ -o posix ]]` `#D0871` 07ae3cc `#D0872` 513c543
1531 - main: do not load ble.sh when bash is started by `bash -i -c command` `#D0873` fc23a6d
1532 - main: support `ble-update` `#D0874` fc45be6 `#D0875` 0b50974 `#D0891` d010300 `#D0910` 4743c00 2dc3a3f
1533 - vi_nmap: support <kbd>C-d</kbd>, <kbd>C-u</kbd>, <kbd>C-e</kbd>, <kbd>C-y</kbd>, <kbd>C-f</kbd>, <kbd>next</kbd>, <kbd>C-b</kbd>, <kbd>prior</kbd> `#D0886`
1534 - isearch: use previous needle for empty string search `#D0889` 362fce3
1535 - vi_imap: add a function `ble-decode/keymap:vi_imap/define-meta-bindings` `#D0892` a21d22f
1536 - progcomp: support `complete -I` for Bash 5.0 `#D0895` `#D0896`
1537 - progcomp: support candidates which replace the original text before the cursor `#D0897` 41b8cbb
1538 - progcomp: support `compopt -o nosort|noquote|plusdirs` `#D0898` cc48539
1539 - edit: support <kbd>M-*</kbd> `#D0899` 3fd7d6e
1540 - edit: support <kbd>M-g</kbd>, <kbd>C-x *</kbd>, <kbd>C-x g</kbd> `#D0902` 41797c6
1541 - progcomp: support `COMP_WORDBREAKS` `#D0903` 7cfe425
1542 - complete: support completion of tilde expansion `#D0907` b4fc40c `#D0908` 9fafdb3
1543 - main: support `BLE_VERSION` and `BLE_VERSINFO` (suggested by cmplstofB) `#D0909`
1544 - global: support `--help` for public functions `ble-*` (suggested by cmplstofB) `#D0911` 77d459d f4d03f6 1d191c7 1209ac6 `#D0913` 92d9038
1545
1546 ## Changes
1547
1548 - edit: change cursor position after <kbd>u</kbd> `#D0877` 9d5c945
1549 - edit: handle panel layouts `#D0878`--`D0882` 6a26894 `#D0888` c8e0d28
1550 - vi_nmap: support <kbd>z z</kbd>, <kbd>z t</kbd>, <kbd>z b</kbd>, <kbd>z .</kbd>, <kbd>z RET</kbd>, <kbd>z C-m</kbd>, <kbd>z +</kbd>, <kbd>z -</kbd> `#D0886`
1551 - emacs: change M-m M-S-m from `beginning-of-line` to `non-space-beginning-of-line` f77f1aa
1552 - bleopt: rename internal settings to `internal_{ignore_trap,suppress_bash_output,exec_type,stackdump_enabled}` fd042d8
1553 - vi_nmap: change the behavior of <kbd>C-home</kbd>, <kbd>C-end</kbd> to match with those of vim 8682f98
1554 - util (`ble/util/unlocal`): add workaround for Bash-5.0 `localvar_unset` `#D0904` 8677a71
1555 - sabbrev: quote key in printing definitions by `ble-sabbrev` `#D0912` 2994d80
1556
1557 ### Fixes
1558
1559 - info: fix a bug that coordinates calculation breaks with Japanese text `#D0858` 67c77dc
1560 - syntax (`extract-command`): fix a bug that extraction of nested commands always fails `#D0859` c3270f6
1561 - complete: fix a bug that the settings `complete -c` does not work `#D0870` 1ca5386 82bb154
1562 - main: fix a bug that the determination of `_ble_base` fails when loaded as `source ble.sh` without specifying the directory of `ble.sh` 201deae
1563 - util: `ble/util/assign` が正しい戻り値を返さないバグの修正 bd14982
1564 - util: `ble/util/assign-array` の入れ子の呼び出しで内容が混ざり合う問題の修正 bd14982
1565 - progcomp: fix a bug that bash-completion does not work properly due to wrong `COMP_POINT` `#D0897` 41b8cbb
1566 - global: fix leak variables `#D0900` 244f965 `#D0906` b8dcbfe 9892d63
1567 - progcomp: fix a problem that completion functions can consume stdin `#D0903` 7cfe425
1568
1569 ## Internal changes
1570
1571 - global: properly quote rhs of `[[ lhs == rhs ]]` f1c56ab
1572 - syntax: rename variables `BLE_{ATTR,CTX,SYNTAX}_*` -> `_ble_{attr,ctx,syntax}_*` 1fbcd8b (ref #D0909)
1573
1574 <!---------------------------------------------------------------------------->
1575 # 2018-10-05
1576
1577 2018-09-24 -- 2018-10-05 (#D0825..#D0857 6ed51e7)
1578
1579 ## 新機能
1580 - highlight: 変数代入の右辺及び配列要素の着色に対応 `#D0839` 854c3b4
1581 - nsearch: (非インクリメンタル)履歴検索に対応 <kbd>C-x {C-,}{p,n}</kbd> `history-{,substring-,n}search-{for,back}ward` `#D0843` e3b7d8b 0d31cd9 253b52e
1582 - isearch: 検索前に選択状態でがあれば検索後に復元する `#D0845` 93f3a0f
1583 - decode: 貼り付け時など大量の入力があった時に処理の進行状況を表示 `#D0848` c2d6100
1584 - decode: 貼り付け時などの高速化の為に一括の文字列挿入に対応 (`batch-insert`) `#D0849` 48eeb03
1585 - decode: `bleopt decode_isolated_esc=auto` でキーマップに応じて単独 <kbd>ESC</kbd> の取扱を切り替え `#D0852` 9b20b45 edd481c
1586 - complete: `bleopt complete_{auto_complete,menu_filter}=` で自動補完・候補絞り込みの無効化に対応 `#D0852` 4425d12
1587 - vi: テキストオブジェクト単語の再実装 (reported by cmplstofB) `#D0855` 9f2a973 ad308ae 3a5c456 6ebcb35
1588 - vi: オペレータ `d` の特殊ルールに対応 `#D0855` fa0d3d3
1589
1590 ## バグ・問題修正
1591 - decode: `ble-bind -d` に於いて `-c` 及び `-x` の引数の引用符が二重になっている問題の修正 `#D0850`
1592 - auto-complete: 構文エラーが自動補完により解決される時 <kbd>RET</kbd> でコマンド実行が抑止されない問題の修正 `#D0827` daf360e
1593 - highlight: `shopt -s failglob` で配列の指示初期化子がエラー着色される問題の修正 (reported by cmplstofB) `#D0838` d6fe413
1594 - complete: プログラム補完に対して曖昧補完が効かない時の対策 `#D0841` 713e95d
1595 - isearch: ユーザ入力による割り込みで検索位置の記録に失敗していたバグの修正 `#D0843`
1596 - isearch: キャンセル時に位置とマークが正確に復元されない問題の修正 `#D0847`
1597 - isearch, dabbrev: 検索処理中にユーザが何か入力するまで現在行が更新されない問題の修正 `#D0847`
1598 - decode: 未ロードのキーマップに対して `ble-bind -m -P` `ble-bind -m kmap -f kspecs -` が使えない問題の修正 66e202a
1599 - auto-complete: <kbd>C-j</kbd> が単なる "確定" になっていたのを "確定して実行" に修正 `#D0852` 01476a7
1600 - edit: <kbd>M-S-f</kbd>, <kbd>M-S-b</kbd> を束縛するべきところ <kbd>M-C-f</kbd>, <kbd>M-C-b</kbd> を束縛している箇所を修正 `#D0852` c68e7d7
1601 - color: Bash 3.0 で算術式内の `<()` がプロセス置換と解釈される問題の対策 `#D0853` 520184d
1602 - syntax: コメント上の単語が何故か除去されないバグの修正 (reported by cmplstofB) `#D0854` 641583f
1603 - vi: Bash 3.1 及び 3.2 で <kbd>C-d</kbd> 受信の為のリダイレクトに失敗する問題の修正 `#D0857` d4b39b3
1604
1605 ## 動作変更
1606 - sabbrev, vi_imap: `sabbrev-expand` を <kbd>C-x '</kbd> ではなく <kbd>C-]</kbd> から束縛 `#D0825` e5969b7
1607 - core: `bleopt` に設定名を指定子て設定内容を表示させる時、設定名の存在を確認する `#D0850` 725d09c
1608 - isearch: <kbd>C-d</kbd> で現在の選択範囲を削除する様に変更 `#D0826` c3bb69e `#D0852` db28f74
1609 - isearch: <kbd>C-m</kbd> (<kbd>RET</kbd>) で確定した時は選択範囲を解除する様に変更 `#D0826` c3bb69e
1610 - decode: `ble-bind` のオプションを再構成 `#D0850` f7f1ec8 64ad962
1611 - decode: 組み込みコマンド `bind` を上書きして `ble.sh` の動作が阻害されない様に引数をチェックして実行 `#D0850`
1612 - complete: autoload `ble-sabbrev` (`core-complete.sh`), `ble-syntax:bash/is-complete` (`core-syntax.sh`) `#D0842` df0b769
1613 - isearch: 編集関数 `isearch/accept-line` が <kbd>RET</kbd> 以外から束縛されていても <kbd>RET</kbd> を実行する様に変更 `#D0843`
1614 - vi, [in]search: mark 名を整理 (`char`/`line`/`block`/`search` に接頭辞 `vi_` 付加し、新しい mark 名を `search` とする) `#D0843`
1615 - edit: 関数名変更 `ble/widget/accept-single-line-or/accepts` → `ble-edit/is-single-complete-line` `#D0844`
1616 - isearch: 空文字列で検索した時の振る舞いを再考 `#D0847` d05705e
1617 - decode: 入力のキー復号の各種調整 `#D0850` dc013ad
1618 - dabbrev: <kbd>C-m</kbd>, <kbd>RET</kbd> で展開終了、<kbd>C-j</kbd>, <kbd>C-RET</kbd> でコマンド実行 `#D0852` 01476a7
1619
1620 ## 内部的変更
1621 - isearch, dabbrev: `ble/util/fiberchain` による再実装 `#D0843`, `#D0846` 2c695cf bdf8072 95268c1
1622 - edit, vi: 選択範囲の種類を表す mark 名を整理 a1a6272
1623 - edit: 関数名変更 `ble/widget/accept-single-line-or/accepts` → `ble-edit/is-single-complete-line` `#D0844` 63ec9fe
1624 - refactor: ファイルの整理 5e07e7f 1a03da2 673bd1d 55c4224 9ce944c 9a47c57 25487a7 5679ffc b7291a7
1625 - refactor: 関数名・変数名の整理 `#D0851` d1b780c 9129c47 4d1181a
1626
1627 <!---------------------------------------------------------------------------->
1628 # 2018-09-23
1629
1630 2018-09-03 -- 2018-09-23 (#D0766..#D0824 8584e82)
1631
1632 ### 補完: 新機能
1633 - complete: 自動補完において履歴からの検索に対応 `#D0766`, `#D0769` `#D0784` (fix)
1634 - complete: 自動補完時の <kbd>M-f</kbd> <kbd>C-f</kbd> 等に対応 `#D0767`
1635 - complete: `"$hello"` などの引用符中のパラメータ展開がある場合でも補完に対応 `#D0768`
1636 - complete: 配列要素代入の右辺での補完に対応 `#D0773`
1637 - complete: ブレース展開の途中での補完に対応 `#D0774`
1638 - auto-complete: `ble/widget/auto_complete/accept-and-execute` 対応 `#D0811`
1639 - complete: 補完関係の設定をする為の load hook の追加 `#D0812`
1640 - complete: 種類を指定した補完に対応 `#D0820` `#D0819` (fix)
1641 - complete: 静的略語展開に対応 (`ble-sabbrev key=value` で設定) `#D0820`
1642 - complete: 動的略語展開に対応 `#D0820`
1643
1644 ## 補完: バグ・問題点修正
1645 - complete: 一意確定した直後の補完ですぐにメニュー補完に入るバグの修正 `#D0771`
1646 - complete: `function fun [` 直後の補完で `[\[` が挿入される問題の修正 `#D0772`
1647 - complete: 曖昧補完で補完を実行しようとすると入力済みの部分が削除されるバグの修正 `#D0775`
1648 - complete: 自動補完が起動しなくなっているバグの修正 `#D0776`
1649 - complete: プログラム補完関数が `failglob` で失敗するとシェルが終了する問題の対策 (reported by cmplstofB) `#D0781`
1650 - complete: `failglob` の時コマンド補完候補に `*` が含まれてしまう問題の修正 (reported by cmplstofB) `#D0783`
1651 - complete: 候補一覧にて入力済み範囲の強調が絞り込みにより無効化されるバグの修正 `#D0790`
1652 - complete: 自動補完を抜けた後のマーク位置が誤っているバグの修正 `#D0798`
1653 - complete: `for a in @` や `do @` の位置の補完でエラーメッセージが表示されるバグの修正 `#D0810`
1654
1655 ## 補完: 動作変更
1656 - complete: 入力済み部分の評価方法の内部変更 `#D0777`
1657 - complete: 自動補完の着色の変更 `#D0780` `#D0792`
1658 - complete: プログラム補完で提供するコマンドライン (`COMP_*`) にて、補完開始点に単語の切れ目を入れる様に変更 `#D0793`
1659 - auto-complete: <kbd>C-RET</kbd> で補完を確定してコマンド実行 `#D0822`
1660
1661 ## 他: 新機能
1662 - edit: `IGNOREEOF` に対応 `#D0787`
1663 - edit: コマンド `exit` にて、ジョブが残っている場合はユーザに尋ねて終了 `#D0789`, `#D0805` (bugfix)
1664 - term: 256色対応のない端末での減色の実装 `#D0824`
1665
1666 ## 他: バグ・問題点修正
1667 - isearch: 非同期検索ができなくなっていたバグの修正
1668 - color: `ble-color-setface` の遅延初期化順序のバグを修正 (reported by cmplstofB) `#D0779`
1669 - decode: CentOS 7 で `LC_ALL=C.UTF-8` に対してエラーメッセージが出る問題の対策 `#D0785`
1670 - edit: ジョブがある時の終了 <kbd>C-d</kbd> について `bleopt allow_exit_with_jobs` 対応 (request by cmplstofB) `#D0786`
1671 - edit: Bash 3.* で <kbd>C-d</kbd> によるプログラム実行 (`ble-edit/exec:gexec`) が遅延するバグの修正
1672 - syntax: Bash 3.2--4.1 の算術式バグによる関数定義の構文解析に失敗する問題の対策 `#D0788`
1673 - highlight: `region` レイヤーの着色範囲が改行を跨ぐ場合に既定の着色になるバグの修正 `#D0791`
1674 - isearch: 空の検索文字列による一致に <kbd>C-h</kbd> で戻った時に全体が選択されるバグの修正 `#D0794`
1675 - decode: `failglob` の時 `ble-bind -d` に失敗する問題の修正 `#D0795`
1676 - edit: `command-help` のコマンド名抽出に失敗するバグの修正 (reported by cmplstofB) `#D0799`
1677 - syntax: 履歴展開の置換指示子の解析が正確でない問題の修正 (report by cmplstofB) `#D0800`
1678 - edit: Bash 3.0 で履歴展開 `:&` が使えない問題の修正 `#D0801`
1679 - idle: 負の `sleep` を試みてエラーメッセージが出る問題の修正 `#D0802`
1680 - bind: `ble-detach` 時に、Bash 3.0 の <kbd>"</kbd> のバインディングを破壊するバグの修正 `#D0803`
1681 - edit: `ble-detach` 直後にコマンドラインに設定される `stty sane` が表示されない問題の対策 `#D0804`
1682 - core: Bash-3.0 で補完候補がない場合にエラーメッセージが表示されるバグの修正 `#D0807`
1683 - edit: コマンド実行中にウィンドウサイズが変更された時にプロンプトが表示されてしまう問題の解消 `#D0809`
1684 - edit: widget 内で `read -e` を使用した時・`read -e` がタイムアウトした時に表示が乱れる問題の解消 `#D0809`
1685 - edit: `read -e` でタイムアウトが効かないバグの修正 `#D0809`
1686 - term: 16色の端末で色が化けるバグの修正 `#D0823`
1687
1688 ## 他: 動作変更
1689 - edit: `read -e` がキャンセル・タイムアウトによって終了した時に入力文字列を灰色で再表示 `#D0809`
1690 - decode: キーマップの既定の初期化を最初の `ble-bind` 時に確認する様に変更 `#D0813`
1691 - core: `ble/util/clock` 導入 `#D0814`
1692 - edit: `ble-edit/read -e -t timeout` において、タイムアウトをより高精度で処理 (`ble/util/clock`) `#D0814`
1693 - color: `face` が定義されていない時のエラーメッセージの表示方法を変更 `#D0815`
1694 - edit: コマンド実行時に現在のカーソル位置より下に表示されている端末の内容を上書きする様に変更 `#D0816`
1695 - edit: `accept-line` において、ちらつき防止の為、実際のコマンド実行が伴わない時は info の再描画を行わない `#D0816`
1696 - edit: `ble/widget/history-expand-line` は <kbd>C-RET</kbd> ではなく <kbd>M-^</kbd> から束縛される様に変更 `#D0820`
1697 - edit: `ble/widget/magic-space` で履歴展開が行われなかった時、現在位置で静的略語展開を試みる様に変更 `#D0820`
1698 - isearch: <kbd>RET</kbd> でコマンド実行ではなく検索を終了するだけに変更。<kbd>C-RET</kbd> でコマンド実行 `#D0822`
1699
1700 ## 他
1701 - Makefile: 依存ファイルを `.PHONY` target として出力 `#D0778`
1702 - core: `ble/util/assign` をリエントラントに修正 `#D0782`
1703 - 議論 complete: `#D0770` edit: `#D0796` vi: `#D0796`
1704 - `blerc` の更新
1705
1706 ## 以下は widget 名変更の一覧
1707 - `menu_complete/accept` → `menu_complete/exit`
1708 - `auto_complete/accept` → `auto_complete/insert`
1709 - `auto_complete/accept-on-end` → `auto_complete/insert-on-end`
1710 - `auto_complete/accept-word` → `auto_complete/insert-word`
1711 - `auto_complete/accept-and-execute` → `auto_complete/accept-line`
1712 - `isearch/accept` → `isearch/accept-line`
1713
1714 <!---------------------------------------------------------------------------->
1715 # 2018-09-02
1716
1717 2018-07-29 - 2018-09-02 (#D0684..#D0765 0c28ed9)
1718
1719 ## 補完: 新機能
1720 - complete: 曖昧補完 `#D0707` `#D0708` `#D0710` `#D0713` `#D0743` (fix)
1721 - complete: Readline 設定 `completion-ignore-case` に対応 `#D0709` `#D0710`
1722 - complete: `ble/cmdinfo/complete:$command_name` 対応 `#D0711`
1723 - complete: `path:...` などと入力した時の続きの補完に対応 `#D0715`
1724 - complete: 引用符内のエスケープなどを適切に処理する `#D0717`
1725 - complete: 自動補完に対応 `#D0724`, `#D0728`, `#D0734` & `#D0735` (vim-mode), `#D0766` (history)
1726 - complete: カーソルの右側に補完結果の一部が含まれる時にスキップする機能 (`bind set skip-completed-text`) `#D0736`
1727 - complete: 引用符の中で補完した時に引用符を閉じる機能 `#D0738`
1728 - complete: 算術式内部での変数名の補完に対応 `#D0742`
1729 - complete: 候補一覧表示の整列と着色 `#D0746` `#D0747` `#D0762` `#D0765`
1730 - complete: menu-completion (メニュー補完) 対応 `#D0749` `#D0757` `#D0764`
1731 - complete: menu-filter (候補絞り込み) 対応 `#D0751`
1732 - complete: vi_cmap に於ける補完 `#D0761`
1733
1734 ## 補完: バグ修正・対策
1735 - complete: Cygwin でのコマンド名補完に於いて `.exe` の途中まで入力した時に正しく補完できない問題の修正 `#D0703`
1736 - complete: `complete` によって登録されたプログラム補完に対して変数 `COMP_*` が正しく設定されない問題の修正 `#D0711`
1737 - complete: `"` や `'` を含むファイル名の補完が正しくできない問題の修正 `#D0712` `#D0714`
1738 - complete: 補完中に特殊キーを入力しても中断しない問題の解消 `#D0729`
1739 - complete: クォートを認識しないプログラム補完関数に対する対策 `#D0739`
1740 - complete: 引数の途中からのプログラム補完の不整合の修正 `#D0742` `#D0744`
1741 - complete: パラメータ展開 `${var}` 直後からの補完が正しく実行できる様に修正 `#D0742`
1742
1743 ## 補完: 動作変更
1744 - complete: 補完候補生成直前の `shopt -s force_fignore` を参照して候補を制限する様に変更 `#D0704`
1745 - complete: `FIGNORE` はエスケープされた挿入文字列に対してではなくて、候補文字列に対して判定する様に変更 `#D0704`
1746 - complete: 関数名補完を `/` で区切られた単位で行う `#D0706` `#D0724` (曖昧一致の時は抑制)
1747 - complete: パラメータ展開で厳密一致で一意確定の時は他の補完文脈を使うように変更 `#D0740`
1748 - complete: パラメータ展開の補完後に挿入する文字を文脈に依存して変更 `#D0741`
1749 - complete: パラメータ展開の直後に補完で挿入する際のエスケープを文脈に依存して変更
1750 - complete: プログラム補完による生成候補でディレクトリ名を省略 `#D0755`
1751
1752 ## 他: 新機能
1753 - edit (`RET`): 文法的に不完全のときに改行を挿入 `#D0684`
1754 - core (`ble/util/idle`): 簡易タスクスケジューラの実装 `#D0721`
1755 - core: add a function `ble/function#try` `#D0725`
1756 - idle: `ble/util/idle` でバックグラウンドジョブ待ち機能を実装 `#D0731` `#D0745` (history bugfix)
1757 - base: `--attach=prompt` 対応 `#D0737`
1758 - base: 初回初期化時の順序の変更と過程の info による表示
1759 - decode: modifyOtherKeys 対応の改善 `#D0752` `#D0756` `#D0758` `#D0759`
1760 - core (`ble/util/assing`): 第3引数以降にコマンドに対する引数を指定できるように変更 `#D763`
1761
1762 ## 他: バグ修正・対策
1763 - highlight: 単語着色が乱れるバグの修正 `#D0686`
1764 - syntax: bash-3.2 以下で `_ble_syntax_attr: bad array subscript` のエラーが出るバグの修正 `#D0687`
1765 - prompt: PS1 で \v が空文字列になるバグの修正 `#D0688`
1766 - highlight: 上書きモードにおいてコマンドをキャンセルしても `disabled` レイヤーの着色が無視されるバグの修正 `#D0689`
1767 - core (ble/term/visible-bell): 横幅の計算を誤っているバグの修正 `#D0690`
1768 - decode: "set -o vi/emacs" で編集モードを切り替えた直後に "stty" が変になる問題の修正 `D0691`
1769 - core: LANG=C とすると動かなくなる問題の対処 `#D0698` `#D0699` `#D0700`
1770 - history: Cygwin で履歴の初期化に時間がかかる問題の対策 `#D0701`
1771 - history: bashrc 読み込み直後に謎の待ち時間が発生する問題の対策 `#D0702`
1772 - emacs: 貼り付け (bracketed paste) で文字列が二重に挿入されるバグの修正 `#D0720`
1773 - main: POSIXLY_CORRECT が設定されている時の対策 `#D0722` `#D0726` `#D0727`
1774 - edit: POSIXLY_CORRECT を用いた組み込みコマンド上書き対策 `#D0722`
1775 - decode: 連想配列に依る実装のバグを修正し bash-4.0, 4.1 においても連想配列を使用 '#D0730'
1776 - decode: `ble-bind -c` でシェルの特殊文字を含むコマンドが正しく実行できないバグの修正
1777 - edit: 履歴項目の数が倍増するバグの修正 `#D0732`
1778 - vi: キーボードマクロで特殊キーが再生されないバグの修正 `#D0733`
1779 - isearch: 現在位置の表示時の 0 除算のバグの修正
1780 - vi: `!!` をキャンセルしても操作範囲を示す着色が消えないバグの修正 `#D0760`
1781
1782 ## 他
1783 - refactor: `#D0725` `#D0750` `#D0753` `#D0754`
1784 - bash-bug: Bash に対するバグ報告 `#D0692` `D0695` `D0697`
1785
1786 <!---------------------------------------------------------------------------->
1787 # 2018-03-15
1788
1789 2018-03-15 (#D0644..#D0683 7d365d5)
1790
1791 ## 新機能
1792 - undo: vi-mode `u` `<C-r>` `U` (`#D0644` `#D0648`); emacs `#D0649`; `#D0662`
1793 - vi-mode (nmap/xmap): `f1` で `command-help` 呼び出し
1794 - vi-mode (nmap): `C-a` `C-x` 対応 (nmap `#D0650`, xmap `#D0661`)
1795 - vi-mode (operator): 各種オペレータ対応 `#D0655` (`gq`, `gw` `#D0652`; `!` `#D0653`; `g@` `#D0654`)
1796 - vi-mode (operator): 追加入力のあるオペレータで作用対象を着色 `#D0656`
1797 - vi-mode (registers): registers `"[0-9%:-]` `#D0666` `#D0668`, `:reg` `#D0665`
1798 - vi-mode (smap): 選択モード `#D0672`
1799 - emacs: 主要なコマンドで引数に対応 `#D0646`
1800 - emacs: 複数行モードの時にモード名を表示。引数も表示。 `#D0683`
1801 - edit: `safe` keymap
1802 - edit: 絵文字の文字幅 `bleopt emoji_width=2` `#D0645`
1803 - core: 誤った `PATH` に対する対策 `#D0651`
1804
1805 ## 動作修正
1806 - vi-mode (nmap/xmap/omap `<paste>`): 引数を無視するように変更
1807 - vi-mode (map `/` `?` `n` `N`): 検索の一致の仕方を vim と同様のものに変更 `#D0658`
1808 - vi-mode (omap): `g~?` で検索して一致した範囲まで大文字・小文字を切り替えるように変更 `#D0659`
1809 - vi-mode (map): 最終行付近で `+` `_` `g_` などを呼び出したときの振る舞いを vim と同様のものに変更 `#D0663`
1810 - vi-mode (xmap): テキストオブジェクト `[ia]['"]` の xmap での正しい振る舞い `#D0670`
1811 - vi-mode (nmap): `Y` で行頭に動かないように変更 `#D0673`
1812 - vi-mode (xmap): 矩形範囲抽出の効率化 `#D0677`
1813 - core: `ble.sh` ロード時間の改善 `#D0675`, `#D0682`, (遅延読込 `#D0678` `#D0679` `#D0680`, 裏で履歴読込 `#D0681`)
1814
1815 ## バグ修正
1816 - vi-mode (omap): `cw` や `y?` が動かなくなっていたバグの修正
1817 - vi-mode: マクロで記録される内容に空白が挿入されるバグの修正 `#D0667` (テスト追加 `#D0669`)
1818 - vi-mode: 行指向の貼り付けが動かなくなっていたバグの修正 `#D0674`
1819 - complete: コマンド名によって第一引数の補完が正しく実行されないことがあるバグの修正 `#D0664`
1820 - syntax: ヒアストリングで $ret を指定するとエラーメッセージが現れたバグの修正 `#D0660`
1821 - syntax: bash-3.0 でコマンドの着色が常にエラーになっていたバグの修正 `#D0676`
1822 - decode: ble-decode-unkbd があらゆる文字について ESC を返す様になっていたバグの修正 `#D0657`
1823 - Makefile: 削除したファイル isearch.sh が要求されるバグの修正
1824 - Makefile: 最新の gawk で動かないバグの修正
1825
1826 <!---------------------------------------------------------------------------->
1827 # 2017-12-03
1828
1829 ## 新機能
1830 - edit, vi-mode: bracketed paste mode に対応 `#D0639`
1831
1832 ## 動作修正
1833 - core: 端末の状態設定・復元とカーソル形状の内部管理 `#D0638`
1834 - 外部コマンドを呼び出すときに既定のカーソル形状にする
1835 - 外部コマンドから戻ったときにカーソル形状を復元する
1836 - syntax (extract-command): より下の構文階層にいてもコマンドを見つけられるように修正 `#D0635`
1837 これによりリダイレクトの単語などの上でも `command-help` (nmap `K`, emacs `f1`) が動くように。
1838 - syntax (チルダ展開): 変数代入の形式を持つ通常単語内部でのチルダ展開に対応 `#D0636`
1839 - syntax: [...] 内部でチルダ展開が起こったとき [...] は意味を失う `#D0637`
1840 - vi-mode (cmap `<C-w>`): imap `<C-w>` と同様に vim の動きに変更
1841
1842 ## バグ修正
1843 - complete: 補完候補がない時に空文字列で確定するバグの修正 `#D0631`
1844 - complete, highlight: `failglob` 周りのバグの修正 (3) `#D0633` `#D0634`
1845 - vi-mode: `ret` グローバル変数が汚染されていたバグの修正 `#D0632`
1846 - highlight: 読み取り専用の変数名を入力するとエラーメッセージが出るバグの修正
1847 - decode: `__defchar__` から呼び出された widget が 125 を返したとき
1848 `__default__` から呼び出された widget にキー列が渡されないバグの修正
1849 - core: set -u にすると全く動かないバグの修正 `#D0642`
1850 - edit: ble.sh ロード中に `read -e` が動かないバグの修正 `#D0643`
1851
1852 <!---------------------------------------------------------------------------->
1853 # 2017-11-26
1854
1855 ## バグ修正
1856 - general: failglob で問題が生じるバグの修正 `#D0630`
1857 - keymap/vi (nmap q): bash-3.0 で動かなかったバグの修正
1858 - keymap/vi (cmap): C-d で終了してしまうバグを修正 `#D0629`
1859 - edit (ble/widget/command-help): エイリアスの上でヘルプを実行しようとすると無限ループになるバグを修正
1860 - edit (ble/util/type): "-" で始まる名前のコマンドの種類の判定に失敗し着色されなかったバグの修正
1861 - complete: 変数代入の右辺やリダイレクト先で補完できないことがあるバグの修正 `#D0627`
1862 - complete: 補完する単語にパラメータ展開が含まれるとき ble.sh のローカル変数の値を参照している問題の修正 `#D0628`
1863
1864 ## 動作変更
1865 - bind/decode: 孤立 ESC の読み取り方法を変更。<C-q><C-[> で単体 <C-[> が入力されるように修正
1866 - bind/decode: input_encoding=C の時の孤立 ESC および C-@ の読み取りに対応
1867 - complete: 重複して列挙される候補を統合する `#D0606`
1868 - complete: 厳密一致するディレクトリ名が何故かコマンド候補に現れる問題の修正 `#D0608`
1869 - edit (command-help): 幾つかの組み込みコマンド・予約語について man bash の正しい位置に移動するように修正 `#D0609`
1870 - edit (command-help): クォートなどを除去してからコマンドのヘルプを探索するように変更 `#D0610`
1871 - core: 条件コマンドの比較で右辺をクォートし忘れていた箇所を修正 `#D0618`
1872 - highlight: `shopt -s failglob` の時、失敗する単語にエラー着色をする `#D0630`
1873
1874 ## 構文解析変更
1875 - syntax: `> a.txt; echo` は構文エラーではないことに対応 `#D0591`
1876 - syntax: 変数代入・リダイレクトの後では予約語は意味を失いコマンドとして扱われることに対応 `#D0592`
1877 - syntax: `time` や `time -p` は構文的に正しいことに対応 `#D0593`
1878 - syntax: `echo $(echo > )` などの `>` の引数がない構文エラーにより `$()` が閉じず別の構文エラーを引き起こしていたのを抑制 `#D0601`
1879 - syntax: `function hello (())` は bash-4.2 未満では構文エラーとして扱うように変更 `#D0603`
1880 - syntax: `time -p -- command` を独立した文脈で解析するように変更 `#D0604`
1881 - complete: これにより `time` の引数のコマンド補完ができなかった問題は解消した `#D0605`
1882 - syntax: extglob 内部のプロセス置換 `@(<(echo))` に対応 `#D0611`
1883 - syntax: `[...]` によるパターンの解析に対応 `#D0612`
1884 - syntax: 変数代入の右辺にある不活性になった extglob の入れ子 `@(@())` も不活性にする `#D0613`
1885 - syntax: `shopt -u extglob` の時でも `*` や `?` を着色する `#D0616`
1886 - syntax: ブレース展開の着色に対応 `#D0622`
1887 - syntax: チルダ展開の着色に対応 `#D0626`
1888 - syntax: `for var in args...` の `args` におけるリダイレクトの禁止 `#D0623`
1889 - highlight: ヒアストリングの場合はパス名展開・ブレース展開を行わない `#D0624`
1890 - highlight: リダイレクト先ファイル名が複数語に展開されたらエラー着色 `#D0625`
1891
1892 ## 構文解析修正
1893 - syntax: `$({ echo; })` や `$(while false; do :; done)` において `}`, `done` 等の後にコマンドがないと構文エラーになっていたバグの修正 `#D0593`
1894 - syntax: `-` で始まる名前のコマンド・関数名が正しく着色されないバグの修正 `#D0595`
1895 - syntax: `if :; then :; fi $(echo)` などの構文エラー着色が実行されないバグの修正 `#D0597`
1896 - syntax: 先読みによる不整合が起こるバグの修正・先読みの枠組みの整備 `#D0601`
1897 - プロセス置換周りで部分更新により不整合が生じるバグを修正
1898 - `function hello (())` としておいて `) (` を挿入して `function hello () (())` にすると不整合が生じるバグを修正 `#D0602`
1899 - syntax: 途中で `shopt -u extglob` にしても `_ble_syntax_bashc` が更新されないバグの修正 `#D0615`
1900
1901 <!---------------------------------------------------------------------------->
1902 # 2017-11-09
1903
1904 ## 新機能
1905 - vi-mode (nmap): `*` `#` `qx...q` `@x`
1906 - vi-mode (cmap): 履歴
1907 - core: bleopt 変数 `pager` (既定値 `''`) に対応。`ble.sh` の使うページャとして `${bleopt_pager:-${PAGER:-適当に探索}}` を使用する。
1908 - vi-mode (nmap `K`): `ble/cmdinfo/help:$cmd`, `ble/cmdinfo/help` に対応。
1909
1910 ## バグ修正
1911 - vi-mode (cmap `<C-[>`): コマンドラインモードをキャンセルするキーマップが `bell` で上書きされていたバグの修正
1912 - decode: `shopt -s failglob`, `shopt -s nullglob` で `unset` が正しく動かないバグの修正
1913 - vi-mode (nmap `K`): `MANOPT=-a` で操作できなくなるバグの修正
1914
1915 ## 動作変更
1916 - edit (`ble/widget/command-help`), vi-mode (nmap `K`): カーソル位置のコマンドの `man` を表示するように変更
1917 - base: キャッシュディレクトリ・一時ディレクトリの決定で、それぞれ `XDG_CACHE_HOME`, `XDG_RUNTIME_DIR` を参照するように変更
1918 - Makefile: インストール先ディレクトリで、`XDG_DATA_DIR` を参照するように変更
1919 - isearch: 実際に必要になるまでコマンド履歴のロードを遅延するように変更
1920 - vi-mode (nmap `K`): 組み込みコマンド・キーワードは `man bash` を表示する。
1921 - vi-mode (nmap `K`): シェル関数は関数定義を表示する。
1922
1923 <!---------------------------------------------------------------------------->
1924 # 2017-11-05
1925
1926 ## 新機能
1927 - vi-mode (exclusive motion): `:help exclusive-linewise` 特別規則 (exclusive -> inclusive, exclusive -> linewise) に対応
1928 - vi-mode (omap): `C-c` `C-[` で明示的にキャンセル
1929 - vi-mode: keymap/vi_test.sh 追加。regression が酷いので vi-mode の動作テストを自動化
1930 - complete: bleopt 変数 `complete_stdin_frequency` (既定値 `50`) 追加
1931
1932 ## 動作変更
1933 - vi-mode (nmap `e`, `E`): 移動先が最終行の最後の文字の空白のとき、omap なら bell を鳴らさないように変更
1934 - vi-mode (omap/xmap `<space>`, `<back>`, `<C-h>`): 改行の数え方を変更
1935 - vi-mode (nmap `cw`, `cW`): 単語の最後の文字、および空白の上にいるときの振る舞いの変更
1936 - decode (ble-bind): `ble-bind -D` でキーマップの内部状態も出力するように変更
1937 - term: `_ble_term_SS` の既定値を空文字列に変更
1938 - complete: `shopt -s no_empty_cmd_completion` では補完を (コマンドの補完以外も) 全く行わないように変更
1939 - edit (ble/widget/exit): 編集中の文字列が残っているとき、灰色で再描画してから exit するように変更
1940
1941 <!---------------------------------------------------------------------------->
1942 # 2017-11-03
1943
1944 ## 破壊的変更
1945 - vi-mode (widget): 名称変更 blw/widget/vi-insert/* → ble/widget/vi_imap/*
1946 - vi-mode (bleopt 変数): 名称変更 bleopt keymap_vi_normal_mode_name → keymap_vi_nmap_name
1947 - vi-mode (imap): vi-insert/magic-space 廃止。代わりに magic-space を直接用いる。
1948
1949 ## 新機能
1950 - vi-mode (xmap): `o` `O`
1951 - vi-mode (nmap): `.` 取り敢えず完成?
1952 - vi-mode (xmap/nmap): `gv`
1953
1954 ## バグ修正
1955 - vi-mode (mark `` `x `` `'x`): オペレータが呼び出されないバグの修正
1956 - vi-mode (txtobj `[ia]w`): 英数字と _ の連続ではなく英字と _ だけの連続を単語としていたバグの修正
1957 - vi-mode (imap): `{count}i...<C-[>` において `<C-q>x` `<C-v>x` が正しく繰り返されなかったバグの修正
1958 - vi-mode (imap): `{count}i...<C-c>` において繰り返しが有効になっていたバグの修正
1959 - vi-mode (nmap `{N}%`): 目的の行に移動しなくなっていたバグの修正
1960 - vi-mode (nmap `_`): `d_` 及び `d1_` が linewise になっていないバグの修正
1961 - vi-mode (xmap `I` `A`): 動かなくなっていたバグの修正
1962 - vi-mode (xmap `I` `A`): 実行後のカーソル位置がずれていたバグの修正
1963 - vi-mode (xmap `I` `A` `c` `s` `C`): 矩形挿入の後の編集範囲 `` `[`] `` から1行目が抜けているバグの修正
1964 - vi-mode (xmap `?`): 検索 `?` が operator `g?` になっているバグの修正
1965 - vi-mode (xmap `/` `?` `n` `N`): ビジュアルモードの選択範囲が検索の一致範囲で上書きされるバグの修正
1966 - vi-mode (xmap `/` `?` `n` `N`): 現在の履歴項目の中で一致しない時、別の履歴項目にビジュアルモードのまま移動するバグの修正
1967 - lib/vim-surround (nmap `cs` `cS`): nmap `.` 対応時に引数とレジスタが効かなくなっていたバグの修正
1968 - lib/vim-surround (xmap `S`): `v` によるビジュアルモードで改行が前後に挿入されていたバグの修正
1969
1970 ## 動作変更
1971 - vi-mode (imap `<C-w>`): vim の単語区切り (`w`) による削除に変更
1972 - vi-mode (nmap `[rRfFtT]x`): `<C-[>` でキャンセルするように変更
1973 - vi-mode (nmap `w` `b` `e` `ge`): 非英数字 ASCII の連続と、Unicode 文字の連続 をそれぞれ別の単語と扱うように変更
1974 - vi-mode (xmap `c` `s` `C`): `I`, `A` と同様の矩形挿入に対応
1975
1976 <!---------------------------------------------------------------------------->
1977 # 2017-10-30
1978
1979 ## 破壊的変更
1980 - vi-mode: キーマップの名称変更 vi_command -> vi_nmap, vi_insert -> vi_imap
1981 - vi-mode: 一部の widget の名称変更
1982 - ble/widget/{no,}marked -> ble/widget/@{no,}marked
1983 - ble/widget/vi-command/* (一部) -> ble/widget/vi_nmap/*
1984 - vi-mode: ble/widget/vi-insert/@norepeat 廃止。別の方法 (_ble_keymap_vi_imap_white_list) を用いる。
1985
1986 ## 新しい機能
1987 - vi-mode (nmap): . は実装途中 (現状 nmap/omap におけるオペレータ経由の変更のみ記録)
1988 - vi-mode (mode): bleopt 変数 `term_vi_[inoxc]map`
1989 - decode: 孤立 ESC のタイムアウトに対応
1990 - edit: shopt -s histverify, shopt -s histreedit に対応 #D0548
1991
1992 ## バグ修正
1993 - vi-mode (xmap): `p`, `P` が正しく動作しないバグを修正
1994 - vi-mode (imap): 挿入モードに入るときに指定した引数 (繰り返し回数) が常にキャンセルされていたバグの修正
1995 - vi-mode (txtobj; nmap `gg`, `G`): レジスター指定が消失していたバグの修正
1996 - lib/vim-surround (nmap ds): 引数が内部使用のオペレータ `y`, `d` に正しく渡っていなかったバグの修正
1997 - prompt: `PROMPT_COMMAND` で設定された `PS1` が永続化されていなかったバグの修正
1998 - decode: bind -x で曖昧な登録があって bash_execute_unix_command エラーになっていた問題の修正 #D0545
1999 - decode: `vi.sh`, `emacs.sh` において `default.sh` が多重に呼び出されていた無駄の修正 #D0546
2000 - core: bash-3.0 において ble/util/assign が壊れていたバグの修正
2001
2002 ## 動作変更
2003 - vi-mode (nmap `x`, `<delete>`, `s`, `X`, `C`, `D`): support registers
2004 - source ble.sh において無事にロードされたときに終了ステータス 0 を返すことを保証
2005 - widget marked, nomarked を @marked, @nomarked に改名。元の widget は非推奨 (削除予定)
2006 - ble.sh: Linux 以外でも (`readlink -f` が動かないときも) シンボリックリンクを通したロードに対応 #D0544
2007
2008 <!---------------------------------------------------------------------------->
2009 # 2017-10-22
2010
2011 ## 新機能
2012 - vi-mode (mark): `mx` <code>`x</code> <code>'x</code> (`x` = <code>[][<>`'a-zA-Z"^.]</code>)
2013 - vi-mode (nmap): `gi` `<C-d>` (空文字列のとき exit) `"x` (registers)
2014 - vi-mode (xmap): `I` `A` `p` `P` `J` `gJ` `aw` `iw`
2015 - lib/vim-surround.sh: nmap `yS` `ySS` `ySs` `cS`, xmap `S` `gS`
2016 - タブ・インデントの制御
2017 - bleopt tab_width= (タブの表示幅)
2018 - bleopt indent_offset=4 (`>` や `<` のインデントの幅)
2019 - bleopt indent_tabs=1 (`>` や `<` のインデントにタブを用いるかどうか)
2020 - 既定のインデントの幅は 8 から 4 に変更
2021
2022 ## バグ修正
2023 - vi-mode: 挿入モードに繰り返し回数を指定したとき `ESC ?` も一緒に繰り返されていたバグの修正
2024 - vi-mode: オペレータ `g?` が動かなくなっていたのを修正
2025 - vi-mode (nmap `/` `?`): 検索対象の入力中に `C-c` してもキャンセルされないバグの修正
2026 - vi-mode (xmap `r` (visual char/line)): 全体を置換したものが選択範囲に挿入されていたバグの修正
2027 - vi-mode (xmap `$`): 行末で `$` をしたときに表示が更新されないバグの修正
2028 - vi-mode (motion `0`): オペレータを認識していなかったバグを修正
2029 - isearch: 一度一致したら同じものに一致し続けるバグを前回の `/` `?` `n` `N` 対応の際に埋め込んでいたので修正
2030 - complete: `complete -F something -D` で登録されている補完関数が正しく実行されていなかったのを修正
2031 - prompt: PROMPT_COMMAND によって設定された PS1 を拾っていなかったバグを修正
2032 - textarea: 端末の下部で複数行編集時に `C-z` (`fz`) すると描画高さを正しく確保できていないバグの修正
2033
2034 ## 動作変更
2035 - vi-mode (operator `<` `>`): Visual block での正しい振る舞い
2036 - vi-mode (nmap `:` `/` `?`): 文字列入力中に空文字列で DEL or C-h することでキャンセルできるように修正
2037 - vi-mode (nmap `J`, `gJ`): 引数に対応
2038 - vi-mode (nmap `p`): 最後の行で挿入するときに余分な行が入らないように修正
2039 - vi-mode (xmap `Y` `D` `R`): 記録するビジュアルモードの種類を修正
2040 - lib/vim-surround.sh: タグ名入力中に '>' で確定するように修正
2041 - widget (.SHELL_COMMAND): 実行しないコマンドに色がついているのはややこしいのでグレーアウトする様に変更
2042
2043 ## 他の変更
2044 - magic-space: 空白を挿入してから履歴展開していた順番を逆転
2045
2046 ----
2047
2048 # 2015-03-06..2017-10-09 (Git Commit Log)
2049
2050 ## 2017-10-09
2051 * keymap/vi: support specialized handling of keys for cmap
2052 - vi (nmap / ?): treatment of C-h and DEL on input of search targets
2053 - vim-surround.sh (nmap ys cs): treatment of > on input of tag names
2054
2055 ## 2017-10-07
2056 * keymap/vi_xmap: add tentative text object implementation
2057 * lib/vim-surround: accept user input of tag names with the replacement being t, T, <
2058 * keymap/vi_command: support search / ? n N
2059
2060 ## 2017-10-05
2061 * keymap/vi_command: fix behavior of yy, dd, D, etc. on the last line with count arg
2062 * keymap/vi_xmap: support x <delete> C D X R Y
2063 * keymap/vi_xmap: support r s
2064 * keymap/vi-command: support : and few commands
2065 * ble-core: fix a bug that conditions for assotiative arrays are inverted
2066
2067 ## 2017-10-04
2068 * [refactor] ble-edit (ble-edit/render -> ble/textarea): support "ble/textarea#{save,restore,clear}-state"
2069 * [refactor] ble-edit (text/update/positions -> ble/textmap): support any time updates of text positions
2070 * keymap/vi_command: support _ g0 g<home> g^ g$ g<end> gm go g_ ge gE
2071 * check: fix "local lines=()" in vi_digraph.sh and update "check"
2072 * (ble-highlight-layer:region): fix a bug that the "region" face is sometimes applied to intervals between selections
2073
2074 ## 2017-10-03
2075 * keymap/vi (visual mode): support previous selections
2076 * keymap/vi (nmap p, P for block): convert HTs under inserting points to spaces
2077 * (ble-decode-key/dump): fix a bug that pathname expansions internally occurred
2078 * ble-core: add ble/string#split-lines
2079 * keymap/vi (visual block): improve performance of block extraction
2080 * keymap/vi_command (linewise operator d): go to the previous line on deleting the last line
2081 * keymap/vi (operator d c g~ gu gU g?): support block
2082 * keymap/vi (nmap p, operator y): support block
2083
2084 ## 2017-10-02
2085 * keymap/vi_xmap: support count arg for operators
2086 * keymap/vi_command: fix a bug that linewise < > operators produce an error
2087 * keymap/vi_command: perform EOL fix on history traveling with normal mode
2088 * keymap/vi_xmap: support block selection
2089
2090 ## 2017-10-01
2091 * keymap/vi_xmap: support visual mode swithing
2092 * keymap/vi: support visual mode
2093
2094 ## 2017-09-28
2095 * ble-edit: add a condition to accept-single-line-or
2096 * keymap/vi_command: support gj gk
2097
2098 ## 2017-09-27
2099 * ble-edit: restore BASH_REMATCH
2100 * ble-edit: do not execute pasted multiline texts
2101 * ble-edit: support scrolling
2102 * bleopt: implement value checking on assignment
2103
2104 ## 2017-09-24
2105 * ilb/vim-surround.sh: do not refer bleopt "vim_surruond_{char}" for digit replacement char
2106 * keymap/vi: show configurable string (defaulted to be ~) on the normal mode
2107 * keymap/vi_command: support % N%
2108 * keymap/vi_command: support indentation for o O
2109 * keymap/vi_command: reimplement text object is as
2110 * keymap/vi (linewise-range.impl): fix a bug that the line ranges are reverted, fix behavior to go to nol
2111
2112 ## 2017-09-23
2113 * keymap/vi_command: support text object ip ap
2114 * keymap/vi_command: support text object is as
2115 * keymap/vi_insert: support indentation for C-m, C-h, DEL
2116 * ble-edit: erase garbage input echo during initialization of ble.sh
2117 * ble-edit (bleopt char_width=emacs): fix a bug that U+2000 - U+2600 are always treated as width 1
2118 * keymap/vi: fix a bug that selection is not cleared on entering the normal mode during isearch
2119
2120 ## 2017-09-22
2121 * keymap/vi_command (r, gr): highlight on waiting replacement
2122 * keymap/vi_command: support text object it at
2123
2124 ## 2017-09-20
2125 * ble-edit/exec: fix handling of $? and $_ and add a workaround for "set -o verbose"
2126
2127 ## 2017-09-18
2128 * lib/vim-surround: support configurable replacements with bleopt vi_surround_45:=tmpl vi_surround_q:=tmpl
2129 * (bleopt): support the form "var:=value" which skips existence checks of variables
2130 * lib/vim-surround: support ds cs
2131 * ble-decode: fix stty settings for command execution
2132 * keymap/vi_omap: fix mode transition from vi_omap to vi_insert
2133 * [m] lib/vim-surround: remove redundant codes
2134
2135 ## 2017-09-17
2136 * keymap/vi (text object i[bB]): exclude newlines around the range and transform to linewise
2137 * [m] keymap/vi (text object i"): behave the same as a" with arg >= 2 specified
2138 * [m] keymap/vi: rename functions
2139 * keymap/vi_insert: change the default of C-k to kill-forward-line
2140 * keymap/vi_command: support digraphs for arg of f, F, t, T, r, gr
2141 * keymap/vi: support digraph
2142 * (ble-bind): support "ble-bind -@f kspec command"
2143 * (ble-decode-kbd): fix a bug that keys "*" and "?" cannot be properly encoded
2144
2145 ## 2017-09-16
2146 * keymap/vi_command (operators): fix a bug that arg is cleared before the use
2147 * lib/vim-surround: support b B r a C-] C-} as replacements
2148 * keymap/vi: rename operator flag for < and >
2149 * (ble/widget/self-insert): explicitly return 0
2150 * ble-decode (ble-decode-key/.invoke-command): propagate exit status of widgets
2151 * keymap/vi_omap: decompose M-*
2152 * add ilb/vim-surround.sh, support operator "ys" and "yss"
2153 * keymap/vi: add new keymap "vi_omap"
2154
2155 ## 2017-09-15
2156 * keymap/vi_command: support operators < >
2157 * keymap/vi_command: support g~~ guu gUU g??
2158 * keymap/vi_command: handle meta flags of input keys
2159 * keymap/vi_command: support ~
2160 * keymap/vi_command: fix the text object "aw"
2161 * keymap/vi_command: rename widgets
2162
2163 ## 2017-09-13
2164 * ble-edit/info: fix cursor position calculations in rendering
2165 * (ble-form/panel#set-height-and-clear.draw): fix to add lines on an increased height
2166 * keymap/vi_command: support text objects [ia][][{}()<>bBwW'"`]
2167
2168 ## 2017-09-12
2169 * add ble-form.sh and introduce ble-form/panel
2170 * ble-edit: rename functions
2171 * keymap/vi_command: support text object iw
2172 * ble-edit/info: show default contents at the end of bind
2173 * ble.pp: fix PATH if standard utilities are not found on load
2174 * keymap/vi_command: add operators g~ gu gU g?
2175 * keymap/vi_command: refactor ydc operators
2176 * ble-decode (ble-bind): fix check of redundant "ble/widget" prefix
2177
2178 ## 2017-09-11
2179 * ble-edit (ble/widget/clear-screen): show info after the clear
2180 * keymap/vi_command (C-o): fix cusor positions after first-non-space commands
2181 * keymap/vi: fix the initial position of "-- INSERT --"
2182 * keymap/vi_command: support C-o
2183 * ble-core: add string functions
2184 * keymap/vi_insert: change mode names on "insert"
2185 * keymap/vi: show current modes in the info area
2186 * ble-edit: support ble-edit/info/set-default
2187 * ble-edit: clear info on exit
2188 * memo.txt: add comments from @B-bar
2189 * ble-decode: check existence of keymaps
2190
2191 ## 2017-09-10
2192 * keymap/vi_command: fix C D
2193 * keymap/vi_command: support arg for insert modes
2194 * ble-decode: fix ble-decode-key and support __before_command__ and __after_command__
2195 * keymap/vi_command: update bindings and support z{char} clear screens
2196
2197 ## 2017-09-09
2198 * keymap/vi_command: fix R and support gR
2199 * keymap/vi_command: support f F t T ; ,
2200 * ble-edit: suppress unnecessary history loads on history-next
2201 * ble.pp: support loading ble.sh from inside of functions
2202 * keymap/vi_command: support J gJ o O
2203 * fix leak variables
2204 * keymap/vi_command: support r gr
2205
2206 ## 2017-09-08
2207 * keymap/vi_command: fix mode change widgets and support gI
2208 * keymap/vi_command: support G H L gg
2209 * keymap/vi_command: fix behavior of [dcy][-+jk]
2210 * keymap/vi_command: update memo.txt and support K
2211 * keymap/vi_command (RET, C-m): fix to behave as + if the line contains LF
2212 * keymap/vi_command: support w W b B e E
2213
2214 ## 2017-09-07
2215 * keymap/vi_command: support s S
2216 * ble-edit: rename ble-edit/text/getxy -> ble-edit/text/getxy.out
2217 * keymap/vi_command: support C-h DEL SP
2218 * (ble/widget/vi-command/{forward,backward}-line): fix
2219 * keymap/vi_command: return to insert mode on accept-line
2220 * keymap/vi_command: support |
2221 * keymap/vi_command: clear arg on mode changes
2222 * keymap/vi_command: support I
2223 * keymap/vi_command: support Y D C
2224 * keymap/vi_command: support x X
2225 * keymap/vi_command: support p P
2226 * keymap/vi_command: check unknown flags
2227 * keymap/vi_command: support A
2228 * keymap/vi_command: add basic bash operations
2229 * keymap/vi_command (+ -): travel history
2230 * keymap/vi_command: support ^ + - $
2231 * keymap/vi_command: fix behavior of "yh" and "yl"
2232 * keymap/vi_command: support dd yy cc 0
2233 * ble-edit: partial revert 35098f0 where necessary ble-edit/history/load calls were removed
2234 * ble-edit (ble/widget/{for,back}ward-line, etc): fix a bug that the destination cursor pos was based on possible old layout
2235 * keymap/vi.sh: support hjkl
2236 * ble-edit: remove redundant ble-edit/history/load calls
2237 * (ble/widget/.bell): fix exit status
2238
2239 ## 2017-09-06
2240 * check: add check codes for bashbug workarounds
2241 * (ble-edit/text/get*): check if the cached text positions are up to date
2242
2243 ## 2017-09-05
2244 * keymap/vi: support mode switching
2245 * (ble/widget/.goto-char): simplify
2246 * (ble-edit/load-keymap-definition): workaround for bash-3.0
2247 * (ble-decode-key): accept multiple keys
2248 * ble-edit: support the value bleopt_default_keymap=vi
2249
2250 ## 2017-09-04
2251 * add keymap/vi.sh and switch keymap on editing mode change
2252 * ble-decode: split and refactor external settings
2253 * ble-decode: support bleopt_default_keymap=auto
2254
2255 ## 2017-09-03
2256 * ble.pp: remove the check enforcing "set -o emacs"
2257 * ble-decode (ble-decode-{attach,detach}): support attached editing modes
2258 * ble-decode: update spacing of an awk script
2259 * ble.pp: fix "set -o emacs" checks
2260 * ble-syntax: fix a bug that here strings are interpreted as here documents
2261 * complete.sh: suppress error messages on internal compgen calls
2262
2263 ## 2017-08-30
2264 * ble-edit: check editing mode
2265
2266 ## 2017-08-19
2267 * cmap/default.sh: disable modifier keys "CAN @ ?" which is ambiguous with "C-x C-x"
2268 * ble-edit: support "bleopt delete_selection_mode=1"
2269
2270 ## 2017-06-09
2271 * ble-syntax: workaround for the bash-4.2 arithmetic bug resulting in segfaults
2272
2273 ## 2017-05-20
2274 * ble.pp: guard double ble-attach
2275
2276 ## 2017-04-21
2277 * bind.sh: bash-4.4 workaroud: fix a bug C-x ? is not bound
2278
2279 ## 2017-03-17
2280 * README: update color settings and translate tips
2281 * README: add a hint on editing multiline commands
2282
2283 ## 2017-03-16
2284 * (ble-color-gspec2g): change to recognize 0 padded color indices as decimal numbers
2285 * README: bump release 0.1.7
2286
2287 ## 2017-03-15
2288 * README: update heading syntax of GitHub flavored markdown
2289
2290 ## 2017-03-13
2291 * suppress error messages caused by incorrect user LC_*/LANG values
2292
2293 ## 2017-03-06
2294 * complete: fix a bug that backquotes, newlines and tabs in completed words were not escaped
2295
2296 ## 2017-03-05
2297 * ble.pp ($_ble_init_original_IFS): \minor, fix unset
2298 * ble-core.sh ($ble_util_upvar_setup): add "local ret" declartion
2299 * (ble-syntax:bash/ctx-heredoc-word): use ctx-redirect to read keyword of here documents
2300 * ble-color: move deprecated "ble-highlight-layer:adapter" codes to layer/adapter.sh as a sample
2301 * save/restore IFS to protect ble functions from user's IFS
2302 * memo.txt: assign numbers of the form "#D????" to old items
2303 * (ble-syntax:bash): :new: support "select var in ..."
2304 * (ble-syntax:bash): fix a recent bug that semicolons after "for (())" was not allowed
2305 * (ble-syntax:bash): :new: support here documents
2306
2307 ## 2017-03-04
2308 * (ble-syntax:bash): fix a bug that semicolons are not allowed after "}", "fi", "done", etc.
2309 * (ble-syntax:bash): support the construct with the form "for name do ...; done"
2310 * (ble-syntax:bash): accept "do" immediately after "for (())" without semicolons
2311 * Makefile: add a prerequisite "install"
2312 * (ble-edit-attach): output CR before showing prompt
2313
2314 ## 2017-03-02
2315 * (ble-syntax:bash): allow `then, elif, else, do' after `}, etc.'
2316 * (ble-syntax:bash): improve checks of quotes in parameter expansion and arithmetic expansion
2317 - change so that quotes are processed always in the syntax level
2318 - introduce new nest-types, ntype='$((' and ntype='$[', for CTX_EXPR (arithmetic expressions)
2319 - introduce a new nest-type ntype='NQ(' to support nesting in quote-removal-less contexts
2320 - fix so that quotes '...' in parameter expansions such as `${var#text}' are always enabled
2321 * \clean: format memo.txt and document comments, etc.
2322 * (ble-syntax:bash): add a work around of a bash-4.2 bug in arithmetic expressions
2323
2324 ## 2017-03-01
2325 * (ble-edit/info/draw-text): change to truncate overflow contents
2326 * ble-edit: fix bugs that line representation is broken at the last line of terminals
2327 - \fix, use IND to ensure size of the edit area
2328 - \fix, clear _ble_line_{beg,end}{x,y} on newline
2329 - ble-edit.sh: add a function ble-edit/draw/put.ind
2330 - ble-edit.sh: add a function ble/widget/.insert-newline
2331 - (ble/widget/redraw-line): \clean, 無駄な _ble_line_cur 初期化を削除。ble-edit/render/invalidate を呼び出すだけで充分。
2332 - (ble-edit/exec/.adjust-eol): \clean, 無駄な _ble_line_x=0 _ble_line_y=0 を消去。元からそうなっている前提である。
2333 - (ble-edit/exec/.adjust-eol): \fix, 直接 stderr に出力していたのを ble/util/buffer に出す様に変更。
2334 * (ble-syntax:bash): support `} }', etc.
2335 * (ble-syntax:bash): :new: support `for ((;;)) { ... }'
2336 * (ble-syntax:bash): support `((echo)>/dev/null)' and `$((echo)>/dev/null)'
2337 * complete: support completion of "in" keywords for "for var in"/"case arg in"
2338 * (ble-syntax:bash): :new: support `for var in ...' and `case arg in'
2339 * (ble-syntax:bash/ctx-command): [refactor] split into functions, use arrays for ctx settings
2340 * (ble-syntax:bash): fix a bug that redirection accepted comments
2341 * (ble-highlight-layer:syntax): fix a bug that causes error on a word beginning with #
2342 - Note: words beginning with '#' can be formed when `shopt -u interactive_comments'
2343 * (ble-syntax:bash): fix a bug that beginning of process substitutions splitted words
2344
2345 ## 2017-02-28
2346 * ble-edit: [refact] rename ble/edit/prompt/update/update-cache_wd -> ble-edit/prompt/update/update-cache_wd
2347 * ble-edit: [refact] rename ble/widget functions
2348 * ble-edit: [refact] rename ble-edit functions
2349 * ble-edit: use ble/util/buffer to suppress flicker
2350 * ble-core: add variable "ble_util_upvar{,_setup}"
2351
2352 ## 2017-02-25
2353 * (ble-syntax/parse/shift): fix a bug that caused duplicated shifts
2354 * (ble-syntax/print-status/.dump-arrays): add consistency checks
2355
2356 ## 2017-02-14
2357 * ble-syntax.sh: fix a bug that attempts "continue" out side of loop
2358
2359 ## 2017-02-13
2360 * ble-edit (ble/widget/isearch): fix a bug that isearch does not work in bash-4.4
2361
2362 ## 2016-12-21
2363 * ble-edit (exec): default value of the parameter "$_" is "$BASH"
2364 * ble-edit (exec): support parameter "$_"
2365
2366 ## 2016-12-06
2367 * ble-core (ble/string#split): add a work around for "shopt -s nullglob"
2368
2369 ## 2016-11-08
2370 * Makefile: detect correct path of gawk for mwg_pp.awk
2371
2372 ## 2016-11-07
2373 * ble-core.sh: add a work around of bashbug to accept inputs of hankaku kana
2374
2375 ## 2016-09-20
2376 * (ble/util/sleep in Cygwin): check parent processes of blocking process substitutions
2377
2378 ## 2016-09-16
2379 * README: update
2380 * (ble/util/upvar): fixed a bug that array elements cannot be exported
2381
2382 ## 2016-09-14
2383 * ble-core: add a function ble/util/upvar
2384 * _ble_edit_str.replace: improve error correction of _ble_edit_ind and _ble_edit_mark
2385
2386 ## 2016-09-11
2387 * (ble/widget/isearch/cancel): return to the original position, i.e. restore _ble_edit_{ind,mark}
2388 * (ble-syntax:bash/check-dollar): fixed a bug that isolated dollars generate syntax errors
2389 * (ble/widget/accept-and-next): fixed a bug that the next line is not loaded on accepting the last histentry
2390 * ble.sh (ble-edit/history/add): fixed a bug that erasedups is performed even if a new entry is rejected by ignorespace
2391 * isearch: fixed a bug that words in the current line is not matched incrementally
2392
2393 ## 2016-08-24
2394 * complete.sh: recognize dangling symbolic links in completion and syntax-highlighting
2395
2396 ## 2016-08-08
2397 * term.sh: fixed a bug that xenl cap was always disabled.
2398
2399 ## 2016-08-07
2400 * ble-edit/prompt: improved admin privileges checks on Cygwin
2401
2402 ## 2016-08-05
2403 * (ble-edit/history/add): fixed a bug that history entries are not registered after certain operations.
2404 * syntax: fixed a bug that causes an fatal error for param expansions with offset in quotes like "${v:1}"
2405 * (ble/util/sleep): do not use /dev/tcp which generates error messages on Win10 Cygwin.
2406
2407 ## 2016-07-16
2408 * (ble/util/array-push): \refactor, rename, support multiple elements to append.
2409 - rename ble/util/array-push -> ble/array#push
2410 - rename ble/util/array-reverse -> ble/array#reverse
2411
2412 ## 2016-07-15
2413 * complete: enable completion of variable names in "..." and ${...}.
2414 * complete.sh: insert '=' after the completion of variable name of assignment.
2415 - (ble/widget/complete):
2416 completion-context にて source の引数をコロン区切で指定できるように拡張する。
2417 - ble-complete/source/variable:
2418 引数に応じて確定時に挿入する接尾辞を選択する様に変更する。
2419 - ble-syntax.sh (ble-syntax/completion-context):
2420 文脈に応じて variable 候補源に引数 '=' を指定して、補完確定時に何を挿入するべきか指定する。
2421 * complete.sh: fixes and clean up; a new fn ble/string#split.
2422 - ble-core.sh: a new function ble/string#split to replace "GLOBIGNORE=* IFS=... eval 'arr=(...)'".
2423 - complete.sh: (ble-complete/.fignore/filter): fixed a bug that local variable pat was leaked.
2424 - complete.sh: (ble/widget/complete): fixed a bug that "shopt -s force_fignore" was ineffective.
2425
2426 ## 2016-07-14
2427 * (ble/util/sleep): add fallbacks to sleepenh and usleep for bash-3.*.
2428 * isearch: fixed a bug that a new range overlapped with the current match cannot be matched incrementally.
2429 * (bleopt): fixed a bug in printing variables.
2430
2431 ## 2016-07-09
2432 * (ble/history/add): work around for bash-3.0 to add history entries to bash command history.
2433 * (ble/history/add): fixed a bug that command history was always disabled under bash-3.2.
2434
2435 ## 2016-07-08
2436 * ble-syntax.sh, complete.sh (shopt -q autocd): fixed a bug that error messages were output to stderr on completions in bash-3.*.
2437 * ble-edit (prompt): :new: support shell variable PROMPT_DIRTRIM for PS1 instantiation.
2438 * ble-edit: Now, the history index \! in PS1 is the index of the editted line.
2439 - isearch: also, the position shown while isearch is changed to the history index.
2440
2441 ## 2016-07-07
2442 * README: move language options to the top. add icons of the languages.
2443 * update README and LICENSE
2444 * ble-edit.sh (ble-edit/isearch/backward): improve the performance (work around for slow bash arrays).
2445
2446 ## 2016-07-06
2447 * ble-edit.sh (_ble_edit_history_edit): changed to hold the whole editted history data.
2448 * ble-syntax: glob patterns are not active in variable assignments.
2449 * ble-edit.sh: 修正: ジョブ状態の変更を標準出力に確実に出力
2450 - fixed a bug that job state changes are not output when PS1 contains '\j'.
2451 - fixed a bug that the changes are not output immediately.
2452 * minor fixes in visible-bell and check-stderr.
2453 - ble-core.sh (ble-term/visible-bell): fixed a bug in subsecond treatment.
2454 - ble-edit.sh (.ble-edit/stdout/check-stderr): fixed a bug that lines without LF were not processed.
2455
2456 * (ble/util/joblist): use ble/util/joblist for internal usage of jobs.
2457 - ble-core.sh (ble/util/joblist): bugfix:
2458 誤って _ble_util_joblist_jobs を _ble_util_joblist_list として使用している箇所が 4 箇所。
2459 - ble-core.sh (ble/util/joblist): bugfix:
2460 - (直前のジョブ) や - (一つ前のジョブ) の変化も変化として検知していた。
2461 - これはジョブ状態の本質的な変化とは言いがたいので無視する。
2462 - ble-core.sh (ble/util/joblist): bugfix: add ble/util/joblist.clear
2463 bash 自身によってジョブ状態の変化が報告された後に、
2464 二重に状態変化が報告される場合があるので、その様な場合にはキャッシュを消去する。
2465 - ble-edit.sh の各 jobs を呼び出すところで、ble/util/joblist を代わりに呼び出す。
2466 - ble-syntax.sh, ble-color.sh で jobs を使用してジョブの存在確認している箇所では、
2467 先に ble/util/joblist を呼び出してジョブの状態変更を確認してから目的の jobs 呼び出しを行う。
2468 * ble-core.sh: add a new function ble/util/joblist.
2469
2470 ## 2016-07-05
2471 * ble-core: add option bleopt_stackdump_enabled
2472 - bleopt_stackdump_enabled が非零の値に設定されている時にだけ
2473 stackdump を出力する様にする。既定では 0 (出力しない) とする。
2474
2475 ## 2016-07-04
2476 * ble-decode.sh (ble-decode-attach): fixed a bug that makes C-{u,v,w,?} ineffective after the second ble-attach.
2477 - 2回目以降の ble-attach でも ble-decode-bind/uvw が動作する様に
2478 ble-decode-attach で source "~.bind" した直後に _ble_decode_bind__uvwflag をクリアする。
2479
2480 ## 2016-06-27
2481 * ble-core.sh ($_ble_base/cache): move to _ble_base_cache="$_ble_base/cache.d/$UID" for user separation.
2482 * ble-core.sh ($_ble_base_tmp): change to use /tmp/blesh/$UID if it is available.
2483 - 今迄は ble.sh と同じディレクトリに一時ファイルを配置していた。
2484 しかし、ble_util_assign.tmp などのファイルは速度を考えれば tmpfs (RAM上) に配置したい。
2485 従って、一時ファイルは /tmp の上に配置するように変更する。
2486 * ble-core.sh: add ble/util/sleep to provide subsecond sleep.
2487
2488 ## 2016-06-25
2489 * ble-edit.sh (_ble_edit_str.replace debug codes): resume from wrong state.
2490
2491 ## 2016-06-23
2492 * ble-core.sh (ble/util/array-reverse): improve performance.
2493
2494 ## 2016-06-22
2495 * ble-edit/isearch: show progress of search.
2496
2497 ## 2016-06-19
2498 * ble-edit/isearch: ble/widget/isearch/prev cancel a task in que, ble/widget/isearch/accept is not effective while a search.
2499 - ble/widget/isearch/prev: 現在実行中のタスク (_ble_edit_isearch_que) がある場合には一つずつキャンセルする。
2500 - ble/widget/isearch/accept: 現在実行中のタスクがある場合には bell を鳴らすだけで動作をスキップする。
2501 - ble-edit/isearch/.goto-match: 一致があった場合には is-stdin-ready でも強制的に描画を実行する。
2502 * ble-edit/isearch: check is-stdin-ready on history search to suspend.
2503
2504 ## 2016-05-21
2505 * update README.md for v0.1.5
2506 * ble-edit.sh: bugfix, incorrect _ble_edit_ind caused by the inconsistensy of history/isearch targets.
2507 - _ble_edit_history を履歴検索して _ble_edit_history_edit をロードしていた事による _ble_edit_ind 不整合
2508 これにより、dirty-range の不整合が生じエラーが発生していた。長年の謎のバグがこれで潰れたと思われる。
2509
2510 ## 2016-04-07
2511 * ble-syntax.sh (ble-syntax/parse/shift.impl2): bugfix 制御構造の欠陥による shift 漏れ。
2512
2513 ## 2016-01-24
2514 * ble-syntax.sh: \debug add debug codes for dirty-range bug
2515 - ble-edit.sh: dirty range checks
2516 - ble-syntax.sh (ble-syntax/parse): remove readonly flag of `beg' and `end' for dirty-range bug
2517
2518 ## 2015-12-30
2519 * modify README: use -O option for curl; release v0.1.4.
2520
2521 ## 2015-12-26
2522 * (ble-color/faces): preserve orders of addhook-onload, and ble-color-{def,set}face.
2523 - ble-color/faces 初期化前に呼び出した ble-color/faces/addhook-onload,
2524 ble-color-defface, ble-color-setface を独立に記録していた為、
2525 実際に呼び出された順序と異なる順序で処理が実行されてしまっていた。
2526 記録を一つの配列 _ble_faces_lazy_loader にまとめ、順序が保存される様にした。
2527
2528 ## 2015-12-25
2529 * (ble-color) \change ble-color-{def,set}face の処理も遅延する。
2530 * functions/getopt.sh: \add description.
2531
2532 ## 2015-12-24
2533 * (ble-syntax:bash): :new:, support option `-p` for keyword `time`.
2534 * (ble-syntax:bash): \new, support `a=([key]=value)` and `a+=([key]+=delta)`.
2535 * (ble-syntax): \new local variable `parse_suppressNextStat` in ble-syntax/parse.
2536 * (ble-syntax:bash): \bugfix, correct resume for `var+`, `arr[...]+` -> `var+=`, `arr[...]+=`.
2537 * (ble-syntax:bash): \new, support `a=([key]=value)` and `a+=([key]+=delta)`.
2538 * (ble-syntax:bash): \new context CTX_CASE.
2539 * (ble-syntax:bash): \new CTX_COND{X,I}; \change unexpected '(' is treated as extglob '@(' instead of sub-shell '(';
2540 * ble-syntax.sh: `CTX_VAL{X,I}` から `CTX_COND{X,I}` を分離。
2541 * ble-syntax.sh: コマンド中に現れる '(' を extglob の括弧として取り扱う事にする。
2542 今迄は暫定的に sub-shell として取り扱っていたが、
2543 エラーが多く出てうるさいのでエラーの少ない extglob 括弧として取り扱う事にする。
2544 * ble-edit.sh: \bugfix histexpand condition [[ -o histexpand ]] inverted.
2545 * \bugfix 履歴展開が効かなくなっていた。
2546 条件判定の誤りだった: [[ -o histexpand ]] → [[ ! -o histexpand ]]
2547 * \bugfix 履歴展開に失敗した時に : が実行される。
2548 履歴展開が失敗すると history -p は標準出力に何も出力しないためであった。
2549 失敗した時は echo "$BASH_COMMAND" により手動で出力する。
2550 * (ble-syntax:bash): \support shopt -s extglob; \bugfix error on {delimiter after redirect,'<' redirect};
2551 * extglob 対応: `CTX_GLOB`, `ATTR_GLOB`, `ctx-glob`, `check-glob` 追加。
2552 * \bugfix redirect 直後に redirect/delimiter があった時に解析データ書き込み違反。
2553 * \cleanup: 共通の正規表現の整理:
2554 `$_ble_syntax_bash_rex_spaces`,
2555 `$_ble_syntax_bash_rex_IFSs`,
2556 `$_ble_syntax_bash_rex_delimiters`.
2557 * \bugfix `$_ble_syntax_bash_rex_redirect`: < が抜けていた。
2558
2559 ## 2015-12-23
2560 * (ble-syntax:bash): special treatment of arguments of `declare`.
2561 * (ble-syntax:bash): declare, typeset, local, export, alias コマンドの引数を文法的に特別に扱う。特に配列構文 =() を許容する。
2562 その為に新しい文脈値 `CTX_ARGVX`, `CTX_ARGVI` を追加する。
2563 * (ble-syntax:bash): `CTX_ARGVI` に対する補完候補は変数名。等号 '=' 以降の部分についてはファイル名の補完候補を列挙する。
2564 * (ble-syntax:bash): 通常の代入構文における配列構文の動作を変更。
2565 今迄は a=(1 2 3)echo などとすると a=(1 2 3) を配列代入と解釈し echo の部分をコマンドと解釈する様にしていた。
2566 その為に配列構文の nest-pop 時にすぐに単語を抜けて cxt==CTX_CMDXV になる様に構成していた。
2567 しかし、実際の bash の動作を確認してみると、a=(1 2 3)echo は a='(1 2 3)echo' の様に、全体が代入文の右辺と解釈される様である。
2568 実際の bash の動作に合わせて、nest-pop 時に特別な動作を特にしない様に変更した。
2569
2570 ## 2015-12-21
2571 * (ble-syntax:bash): 算術式終了条件修正、bash-3.0 で += 無効; (completion-context): a+= 直後の補完候補生成。
2572 * ble-syntax.sh (ble-syntax:bash): 算術式の終了条件を修正する。
2573 $((...)) ((...)) の中では '(', ')' を数えて終了判定を行う。
2574 $[...]、${arr[...]} arr[...]= の中では '[', ']' を数えて終了判定を行う。
2575 ${var:...:...} では '}' が来たらすぐに終了する。
2576 * ble-syntax.sh (completion-context): a+= の直後でも補完候補生成を行う。
2577 * ble-syntax.sh (ble-syntax:bash): disable += under bash-3.1.
2578 * ble-edit.sh: bugfix failure of catch C-d in bash-3.0.
2579
2580 ## 2015-12-20
2581 * (ble-highlight-layer:syntax): color of special files, permission of files in redirection.
2582 - ble-syntax.sh: bugfix of assertion test in ble-syntax/parse/tree-append.
2583 - ble-syntax.sh (ble-highlight-layer:syntax): color filenames of block device, character device, pipe, and socket.
2584 - ble-syntax.sh (ble-highlight-layer:syntax): redirection: check permissions.
2585 * (ble-syntax:bash): bugfix, tree-structure corruption on edit of array subscripts in array-element assignment.
2586 - ble-syntax.sh: 配列添字の書き換え時に解析木の破壊が起こる。
2587 配列添字の終了 ']=' において nest-pop を先頭位置で行っていた。
2588 これが為に、過去の解析結果を書き換えている事になっていた為に、
2589 shift の際に設置した情報が消滅したりしていた。
2590 * ble-edit.sh: add support `set +o history`; ble-syntax.sh: check file existence on '<' redirection.
2591 - ble-edit.sh: add support `set +o history`
2592 - ble-syntax.sh (ble-highlight-layer:syntax): check filename of `<` redirections.
2593 - ble-syntax.sh (constants): refact,
2594 definition of `local rex_redirect` -> global `_ble_syntax_bash_rex_redirect`.
2595 rename `_BLE_SYNTAX_CSPACE` -> `_ble_syntax_bash_cspace`.
2596 - ble-edit.sh: refact, rename functions `.ble-edit[./]history[./]*` -> `ble-edit/history/*`.
2597 * complete: 候補生成箇所の追加・修正、コマンド補完候補としてサブディレクトリも列挙
2598 - ble-syntax.sh (complete): bugfix, 単語の間の空白で complete を実行しようとしても候補が生成されなかった。
2599 - ble-syntax.sh (complete): generate filenames after `VAR='.
2600 - ble-syntax.sh (complete): generate filenames just after the redirection.
2601 - complete.sh: コマンドの補完候補として現在のディレクトリのサブディレクトリも列挙する様に修正する。
2602 サブディレクトリにある実行属性のファイルを実行したい場合がある為である。
2603
2604 ## 2015-12-19
2605 * complete.sh: support `FIGNORE`, `shopt -s force_fignore`.
2606 - Makefile: bugfix, remove `ble-getopt.sh` from the required files to generate ble.sh.
2607 - complete.sh: support `FIGNORE` and `shopt -s force_fignore`.
2608 * functions/*: move unused file ble-getopt.sh to `functions/`. Add new impl of getopt.
2609 * ble-syntax.sh (ble-syntax:bash): redirections: bugfix '<<<', support '>|', overwrite check of files, etc.
2610 - ble-syntax.sh (ble-highlight-layer:syntax): Support `set -o noclobber`; Check overwrites of target files of redirections for '>', '&>', and '<>' redirect.
2611 - ble-{core,decode,edit}.sh, bind.sh, term.sh, emacs.sh: change redirection '>' -> '>|' for the case of the noclobber option on.
2612 - ble-syntax.sh (ble-syntax:bash): support the redirect using `>|`.
2613 - ble-syntax.sh (ble-syntax:bash): bugfix false syntax error of `<<<`.
2614 - ble-syntax.sh (ble-syntax:bash): bugfix redundant skip on unexpected termination of redirect by an end of command or another redirection.
2615 - ble-syntax.sh (ble-syntax:bash): bugfix, do not allow newline after the redirection introducers.
2616 * ble.pp, ble-core.sh: Check and modify dependencies on external commands.
2617 - ble.pp (ble/.check-environment): Remove tput (POSIX UP option) which is not necessarily required.
2618 - ble-core.sh (ble-term/visible-bell): Add a function `ble/util/getmtime` to get modified time of files in a compatible way.
2619 - ble-edit.sh (ble/widget/command-help): Select available pager from any of $PAGER, less, more, and cat.
2620 * ble-syntax.sh: syntax: quotations in words in parameter expansion (shopt -u extquote, etc.).
2621 - ble-syntax.sh: support single quotation in parameter expansion.
2622 - ble-syntax.sh: support shopt -u extquote.
2623 * clean up & minor behavior change: Check bash opts --{posix,noediting,restricted}, Unset mark on accept-line.
2624 * bug fix
2625 - ble-syntax.sh (ble-syntax:bash/extract-command/.construct-proc): remove a debug code which prints the message "clear words".
2626 * minor behavior change
2627 - ble-edit.sh (ble/widget/accept-line): redraw without mark.
2628 - ble.pp (startup check): do not load ble.sh for bash --posix, --noediting, or --restricted.
2629 * clean up
2630 - ble-decode.sh (ble-decode-byte:bind/EPILOGUE): use ble/util/is-stdin-ready instead of the direct use of `read`.
2631 - ble-core.sh (ble/util/is-stdin-ready): use LANG instead of LC_ALL.
2632 - ble-edit.sh, ble-syntax.sh: use [[ -o histexpand ]] rather than [[ $- == *H* ]].
2633 - ble-syntax.sh (test): remove unused functions `.ble-shopt-extglob-push`, and `.ble-shopt-extglob-pop` for test.
2634 - ble-edit.sh: remove old complete functions:
2635 - .ble-edit-comp.initialize-vars
2636 - .ble-edit-comp.common-part
2637 - .ble-edit-comp.complete-filename
2638 - ble/widget/complete
2639 - ble/widget/complete-F
2640 - ble-syntax.sh, complete.sh: no need of redirection for `shopt -q optname`.
2641
2642 ## 2015-12-09
2643 * Refactoring ble-edit.sh/ble-line-prompt.
2644 * .ble-line-prompt -> ble-edit/prompt.
2645 * `_ble_cursor_prompt`, `_ble_line_prompt` -> `_ble_edit_prompt`.
2646 * Refactoring ble-core.sh, ble-color.sh, cmap/xterm.sh.
2647 * ble-core.sh: .ble-text.* -> ble/util/*.
2648 * ble-color.sh: .ble-color.* -> ble-color/.*.
2649 * cmap/xterm.sh: .ble-bind.function-key.* -> ble-bind/cmap:xterm/*.
2650 * Refactoring ble-decode.sh.
2651 * ble-core.sh: .ble-term.{visible,audible}-bell -> ble-term/{visible,audible}-bell.
2652 * ble-decode.sh: .ble-stty.* -> ble-stty/*.
2653 * ble-decode.sh: .ble-decode-* -> 適切な名称に変更。
2654 * Refactoring and clean up.
2655 * ble-edit.sh, etc: 'ble-edit+' -> 'ble/widget/.
2656 * 'ble-edit.sh: ble-edit/exec 関数名整理。
2657 * ble-decode.sh: ble-decode-byte 関数名整理、ble-edit 依存性分離。
2658 * README-ja_JP.md: 日本語説明修正。
2659 * README.md: 英語修正。
2660 * ble-syntax.sh: コードコメント @fn -> 関数 に統一。
2661
2662 ## 2015-12-06
2663 * ble-core.sh: Add function ble/util/cat to replace /bin/cat.
2664 - ble-core.sh: 関数 ble/util/cat。command cat の単純な呼出と同じ機能を builtin read で実装。
2665 - ble-decode.sh (ble-bind --help): 外部コマンドの cat を呼び出していたが、bash の組込コマンドで実現できるので置き換え。
2666 - README.md: gmake/make について説明を追加。
2667 * Update README-ja_JP.md
2668 * ble-bind: New option `-L, --list-functions`, ble-color.sh bugfix initialization of faces:region,disabled,overwrite_mode.
2669 - ble-color.sh: bugfix, 色初期化 (region disabled overwrite_mode) 遅延ロードに登録していなかった。
2670 - ble-decode.sh (ble-bind): New option `-L, --list-functions` to list edit functions.
2671
2672 ## 2015-12-03
2673 * Changed default value of bleopt_char_width_mode from `emacs` to `east`.
2674 * Update README-ja_JP.md.
2675 * Add README-ja_JP.md. 日本語の説明。
2676 * optimization: lazy init of faces (ble-{syntax,color}.sh), removal of temporary files (ble-core.sh).
2677 * ble-syntax.sh, ble-core.sh: lazy initialization of `_ble_faces_*`.
2678 * minor: modify messgese: initialization message, the header of the script ble.sh.
2679 * ble.pp: Add pp switch `measure_load_time` to identify the initialization bottle neck.
2680 * ble-core.sh (`_ble_base_tmp.wipe`): optimization, use parameter expansion instead of regex captures.
2681 * Support here string, shopt -q progcomp; Bugfix ble-syntax/parse/nest-equals.
2682 * ble-syntax.sh: support here string.
2683 * ble.htm: comment out outdated descriptions.
2684 * ble-syntax.sh (ble-syntax/parse/nest-equals): bugfix, 前回の bugfix で onest[3]<0 の場合を考えていなかった。
2685 * complete.sh: shopt -q progcomp によるプログラム補完の有効・無効の切り替え。
2686 * update version numbers.
2687 * ble-syntax.sh (ble-syntax/parse/nest-equals): fatal bugfix, misjudge on nest equality test causing nest structure corruption.
2688 * Note: _ble_syntax_nest の要素に含まれている nest 開始位置は相対位置で記録されているにも拘わらず、絶対位置の変数に直接代入していた事が原因であった。
2689 * 他 ble-syntax.sh, ble-color.sh: compatibility fix., fgrep to command grep -F.
2690 * README.md: correct download links.
2691 * `*.sh`: Add `command` for external command execution.
2692 * (ble-edit/stderr for bash-3.0): Add ignoreeof-message.txt for C-d message i18n.
2693 * `*.sh`: New marker `__ENCODING__` for 文字コード依存部分
2694
2695 ## 2015-11-30
2696 * complete.sh (ble-complete/source/argument): minor bugfix, default behavior using comp_opts exported by func .../.compgen.
2697 * 他 ble.pp: check chmod.
2698 * Makefile: a phony target `dist`.
2699 * memo.txt: todo 整理.
2700 * complete.sh: bugfix, completion doesn't work on an argument without complete -D spec.
2701 * ble-edit.sh (ble-edit+isearch/next): bugfix, didn't match locally on self-insert of forward isearch.
2702 * ble-decode.sh (generate-source-to-unbind-default): bugfix, need of LANG=C.
2703 * LANG=C を設定しないと bind -sp の出力に変なバイトが含まれている為に解釈に失敗する。
2704 (utf-8 の様な ASCII 文字を含まない様な文字コード体系の場合にはこれで問題ないが。
2705 memo.txt に Note(2015-11-30) として追加する。)
2706 * Update README.md
2707 * ble-edit.sh: remove dependency on GNU awk.
2708 * ble.pp: 念の為 gawk に戻す事ができる様に use_gawk (PP変数) を用意する。
2709 * ble.pp (ble/.check-environment): check awk.
2710 * ble-core.sh (ble/util/array-reverse):(awk scripts):
2711 + uninitialized variable `decl` を初期化する。
2712 + locale dependent な /[a-z]/ の類を POSIX 括弧 (/[[:alpha:]]/, /[[:alnum:]]/) に置き換え。
2713 * ble-edit.sh (.ble-edit/history/generate-source-to-load-history):(awk scripts): uninitialized variable `n`.
2714 * ble-decode.sh (.ble-decode-bind/generate-source-to-unbind-default):(awk scripts):
2715 + 引数名と大域変数が被らない様にする。
2716 + gawk 特有の機能 (/\y/, match 第三引数) を使わない。
2717 + bugfix, gsub の対象の変数が指定されていない箇所があった。
2718 * それぞれ gawk --lint 及び nawk でも動作を確認した。
2719
2720 ## 2015-11-29
2721 * ble-edit/isearch: 現在のコマンド内も検索対象に。
2722 * 旧来の履歴項目検索機能を改名:
2723 - ble-edit+isearch/forward -> ble-edit+isearch/history-forward,
2724 - ble-edit+isearch/backward -> ble-edit+isearch/history-backward,
2725 - ble-edit+isearch/self-insert -> ble-edit+isearch/history-self-insert.
2726 * 検索履歴 (_ble_edit_isearch_arr) に一致範囲も記録する様に変更
2727 * 現在の位置からコマンド内を検索する関数を追加・旧関数を置換:
2728 - ble-edit+isearch/forward,
2729 - ble-edit+isearch/backward,
2730 - ble-edit+isearch/self-insert.
2731 * ble-edit.sh (+isearch/next): 一致範囲を囲む。
2732 * ble-edit.sh (+isearch/next), set region to matched range.
2733 * ble-edit.sh: pattern matching using [[ text == pattern ]] instead of case statement.
2734 * ble-color.sh (ble-syntax-layer:region/update): bugfix, PREV_UMIN/PREV_UMAX out of range due to the shift failure of omin/omax.
2735 * ble-core.sh: full support for bleopt_input_encoding=C
2736 * ble-core.sh: Add functions: ble-text-b2c+C, and ble-text-c2b+C.
2737 * ble-core.sh (.ble-text.c2bc): rename .ble-text.c2bc -> ble-text-c2bc.
2738 * .gitignore: 古い物を整理。/wiki 追加。
2739
2740 ## 2015-11-28
2741 * Update README.md
2742 * ble-decode.sh, ble-edit.sh: support `bind -xf`.
2743 * ble-core.sh: Add functions ble/string#common-{prefix,suffix}.
2744 * ble-decode.sh, ble-edit.sh: support `bind -xf COMMAND`.
2745 * ble-edit.sh:714: ^M が直接埋め込まれていると GitHub が改行位置を勘違いする様なので $'\r' に修正する。
2746 * complete.sh: embedded sed scripts, POSIX compliance.
2747 * ble-color.sh: Add a function ble-color-show.
2748 * README.md: Add animation gif.
2749 * README.md: settings for syntax highlighting.
2750 * README.md: Add some description of settings.
2751
2752 ## 2015-11-27
2753 * Create LICENSE.md
2754 * Update README.md
2755
2756 ## 2015-11-24
2757 * ble-edit.sh (+magic-space): bugfix, 現在のカーソル位置よりも前の部分に対して履歴展開する。
2758 * complete.sh: behavior of source/argument, compopt -o/+o, bugfix.
2759 - complete.sh (ble-complete/source/argument): complete -o ..., compopt -o option +o option の読み取り。
2760 - complete.sh (ble-complete/util/escape-regexchars): bugfix.
2761 - complete.sh: Add action/plain, action/argument, action/argument-nospace.
2762 - complete.sh: Add source/dir.
2763 - complete.sh (ble-complete/source/argument): support -o nospace, -o dirnames.
2764 * complete.sh (ble-complete/source/argument): bugfixes.
2765 * ble-complete/source/argument/.compgen-helper-prog: Export `COMP_LINE` `COMP_POINT` `COMP_KEY` `COMP_TYPE`
2766 * ble-complete/source/argument/.compgen-helper-{prog,func}: Pass arguments `command`, `cur`, and `prev` for program/function.
2767 * ble-complete/source/argument: Fix option -F, -C interruption failure.
2768 * ble-complete/source/argument: Fix -F <-> -C miss arrangement.
2769 * ble-complete/source/argument: Correct IFS when compgen is called.
2770 * ble-complete/source/argument: `return 1` if no candidates are generated.
2771 * ble-complete/source/argument: Evaluate `compgen` in the original shell (i.e., not in a sub-shell).
2772 * ble-complete/source/argument: Filter and modify candidates generated by `compgen` using `sed`.
2773
2774 ## 2015-11-23
2775 * ble-edit.sh (ble-decode): show the message to run "stty sane" after "ble-detach".
2776 * ble-syntax (ble-syntax:bash/extract-command): bugfix, 出力用の変数が local 指定になっていたのを削除。
2777 - 他: complete.sh: compgen -F prog -C cmd の際に compgen が警告を出すので compgen 2>/dev/null とする。
2778 * complete.sh: complete -p による補完の基本実装。
2779 * ble-core.sh: Create function ble/util/array-reverse.
2780 * ble-decode.sh (.ble-decode-keys, .ble-decode-key/invoke-command): bash-3.0 workaround, local -a keys=(), local -a KEYS=() を2行に分ける。
2781 * ble-syntax.sh: complete 用の整備。
2782 * 関数追加 ble-syntax/tree-enumerate-break: "((tprev=-1))" は意図が分かりにくいので。
2783 * 関数追加 ble-syntax:bash/extract-command:
2784 * ble-syntax/tree-enumerate: シェル変数 iN の既定値を _ble_syntax_text の末端に。
2785 * ble-syntax/completion-context: CTX_VALI, CTX_VALX に対応。
2786 * ble-syntax/completion-context: 一部の補完文脈を file から argument に変更。
2787 * complete.sh: complete -p 設定に基づく補完。
2788 * ble-complete/source/argument: 追加
2789
2790 ## 2015-11-22
2791 * ble-syntax.sh: bash 文法関連の関数名整理。
2792 * ble-decode.sh (ble-bind): error message に . を追加。古いコメントを削除。
2793 * ble-syntax.sh (ble-syntax/parse/{check,ctx}-*): bash 文法特有の関数の名称を整理。
2794
2795 ## 2015-11-21
2796 * cmap/cmap+*.sh: Update for current ble-decode.sh.
2797 * ble-edit.sh (ble-edit+magic-space): Add edit function magic-space.
2798
2799 ## 2015-11-19
2800 * Support of PROMPT_COMMAND, and function bleopt.
2801 * ble-edit.sh: easy support of PROMT_COMMAND.
2802 * ble-core.sh: bleopt 関数追加。
2803 * ble-decode.sh (.ble-decode-initialize-cmap): POSIX sed BRE does not support the quantifiers: \+, \?.
2804 * ble-syntax.sh: 履歴展開をより正確に。
2805 * histchars に応じた履歴展開の解析
2806 * extglob が設定されている時は !( は履歴展開と解釈しない
2807 * 文字列 "~" 中の履歴展開は " の直前で終わる
2808 * ble-core.sh: workaround for bash-3.0 regex in _ble_base_tmp.wipe.
2809
2810 ## 2015-11-17
2811 * `ext/mwg_pp.awk`: Include mwg_pp.awk in ext; Makefile (listf): renamed to list-functions and modified.
2812 * ble-syntax.sh (ble-syntax/parse/nest-equals): bugfix (operater associativity), incorrect break of loops.
2813
2814 ## 2015-11-09
2815 * ble-core.sh (_ble_base_tmp.wipe): bugfix, correct iteration of old tmp files.
2816
2817 ## 2015-11-08
2818 * complete.sh: ユーザ入力があった時の候補列挙の中断に対応 (bash-4.0 以降); ble-syntax.sh: コメント判定の修正。
2819 * ble-core.sh (ble/util/is-stdin-ready): 関数追加。標準入力に未処理の文字が残っているかどうかを判定。ユーザの入力が待ち状態になっているかどうかを判定する為の物。
2820 * ble-syntax.sh (ble-syntax/parse/check-comment): コマンドライン解析時 shopt -u interactive_comments の時にはコメントは無効とする。
2821 * ble-syntax.sh (ble-syntax/parse/check-comment): bugfix コメント開始判定(単語頭)。単語開始の判定が単語頭ではなく「単語頭または単語内部の解析開始点の位置」という事になっていた。
2822 * complete.sh (ble-complete/source/command/gen, ble-edit+complete): コマンド候補の列挙・一致判定には時間が掛かるので ble/util/is-stdin-ready を用いて中断の判定を実行する。
2823
2824 ## 2015-11-07
2825 * Update README.md
2826 * ble.pp: check environment for required commands, ble-edit.sh: 'M-\'.
2827 * ble.pp: check required commands.
2828 * ble-core.sh: remove dependencies on `touch' command.
2829 * ble-edit.sh, keymap/emacs.sh: Add edit function: delete-horizontal-space ('M-\').
2830
2831 ## 2015-11-06
2832 * ble-syntax.sh: cleanup debug codes.
2833 * ble-syntax.sh (ble-syntax/parse/shift.nest): bugfix, parse error by shift failure of _ble_syntax_nest.
2834
2835 ## 2015-11-25
2836 * Create README.md
2837
2838 ## 2015-08-25
2839 * m, bugfixes.
2840 * PS1 の '!' の処理、
2841 * PS1 の \w の処理、
2842 * (bash-3.0) history '!1' &>/dev/null によるチェックでエラーメッセージが漏れていた。
2843 * bugfix, specify explicit collation order for regs and globs.
2844 * Character ranges in regular expressions and glob patterns are dependent on collation order.
2845 * To obtain the desired results for ascii characters, `local LC_COLLATE=C' should be explicitly specified.
2846
2847 ## 2015-08-24
2848 * ble-edit.sh (.ble-edit.history-add): bugfix, handling of HISTCONTROL.
2849
2850 ## 2015-08-19
2851 * bin/ble-edit.sh: bugfix for bash-3.0, history -s が正しく動作しないので修正。
2852
2853 ## 2015-08-18
2854 * bugfix and cleanups.
2855 * ble-core.sh (ble-assert): bugfix, correct return value.
2856 * ble-edit.sh, ble-synta.sh: bash-3.0 bugfix, `local arr=(...)' form cannot be used in bash-3.0.
2857 * ble-edit.sh (hist_expanded.initialize): renamed to `ble-edit/hist_expanded.initialize'.
2858
2859 ## 2015-08-16
2860 * 消滅単語に対する色解除の対策(暫定)。
2861 * ble-syntax.sh (ble-syntax/parse): 消滅単語の範囲集計。
2862 * ble-syntax.sh: 範囲更新・並進の整理。関数 ble/util/[uw]range#{update,shift} の追加。
2863 * 表示系統 bug fixes.
2864 * ble-edit.sh (ble-edit/dirty-range/update): bugfix, endA0 の読み出しに誤り、変数名 delta/del に誤り。
2865 * ble-syntax.sh (ble-highlight-layer:syntax/update-attribute-table): bugfix in umin/umax update, umax の更新に使う変数名を誤っていた。
2866 * 組込コマンド上書き対策。ble-syntax shift bufgix for bash-4.2 算術式。
2867 * ble-syntax.sh (bash-4.2): bugfix, ble-syntax/parse/shift.{tree1,nest} の算術式で bash-4.2 をクラッシュされる形式の物が見付かった。
2868 * ble-core.sh: ble/util/set 関数を追加。
2869 * ble-edit.sh: builtin 上書きを防ぐ為に unset -f builtin を実行 (builtin, unset 両方上書きされると駄目だが)。
2870 * ble-edit.sh: return/break/continue も上書きを禁止する。
2871 * ble-*.sh: test の代わりに [[ ]] を使用。
2872 * 貼付時の再描画抑制 (read -t 0 による判定)。\x80-\x9F を M-^? で表示。
2873 * ble-edit.sh: 編集文字列内の \x80-\x9F の表示を M-^? に。表示が乱れていた。
2874 * ble-edit.sh (ble-decode-byte:bind): 次の文字が来ている時に再描画を抑制。
2875 * ble-edit.sh: exec/gexec 周りの関数名を整理。
2876 * ble-edit.sh: 関数削除 .ble-edit-isearch.create-visible-text
2877
2878 ## 2015-08-14
2879 * 構文 function ... に対応、履歴展開 bugfix.
2880 * ble/src: .srcoption 追加。
2881 * ble-syntax.sh: defface 関数の色の変更。
2882 * ble-syntax.sh: 構文 `function ...` に対応。
2883 * ble-syntax.sh: `function ...`, `hoge ()` の直後に来るコマンドを compound-commands に制限。
2884 * ble-edit.sh: bugfix, set +H の時も履歴展開が有効になっていた。history -p は set +H と関係なく展開を行う。
2885 * ble-edit.sh: bugfix, 関数 echo を定義するとコマンドがそれ以上実行できなくなる。echo/printf を builtin を介して呼び出す様に変更。
2886 * ble/util/assign cleanup, ble/util/type add, .ble-line-prompt/update bugfix.
2887 * ble-core.sh (ble/util/assign): cleanup, ble/util/sprintf, ble/util/type, ble/util/isfunction でも仕様,
2888 * ble-core.sh: ble/util/type 追加。$(type -t) はこれを用いて処理する様に変更,
2889 * ble-edit.sh (.ble-line-prompt/update): bugfix, 地の文の '$' や '`' が escape されてしまい展開されない.
2890 * ble-edit.sh: プロンプト更新最適化。
2891 * ble-core.sh (ble/util/assign): $(...) 高速化用関数。
2892 * shift 高速化、入れ子構造を考慮に入れた単語着色に対応。
2893 * ble-syntax.sh (ble-syntax/parse/shift): 入れ子構造を考慮に入れた shift,
2894 * ble-syntax.sh (_ble_syntax_tree): 単語毎の着色情報をデータ配列内に保持するように変更,
2895 * ble-syntax.sh (ble-highlight-layer:syntax/update-word-table): 入れ子構造を考慮に入れた着色.
2896 * leak variables: g cs
2897 * cleanup, leak variables 処置.
2898 * ble-syntax.sh: 終端していない節も列挙対象に含める。他整理。
2899 * ble-syntax.sh (ble-syntax/print-status): prints unterminated nodes.
2900 * ble-syntax.sh: add new functions ble-syntax/tree-enumerate, ble-syntax/tree-enumerate-children.
2901 * ble-syntax.sh: rename shell variable: _ble_syntax_word -> _ble_syntax_tree.
2902 * ble-syntax.sh: cleanup.
2903
2904 ## 2015-08-13
2905 * ble-syntax.sh: clenup, print-status/dump-tree.
2906 * ble-syntax.sh (_ble_syntax_stat): 解析状態に tchild, tprev (兄・子へのoffset情報) を追加。
2907 * ble-syntax.sh (_ble_syntax_word): 形式変更。兄・子へのoffset情報はその場で計算する暫定方式。
2908
2909 ## 2015-08-12
2910 * memo.txt: _ble_syntax_word 形式変更の計画, ble-syntax.sh: clean up
2911
2912 ## 2015-08-11
2913 * ble-syntax.sh (`_ble_syntax_nest[]`): 形式変更 → "ctx wlen wtype nlen type"
2914 * ble-syntax.sh (`_ble_syntax_stat[]`): 形式の変更 → "ctx wlen wtype nlen"
2915 * ble-syntax.sh (`_ble_syntax_word[i]`): 要素の形式を wtype wbegin から wtype wlen に変更
2916 * ble-edit.sh (.ble-line-info.draw): 制御文字も入れられる様に,
2917 * ble-syntax.sh (ble-syntax/print-status): Added,
2918 * ble.pp: 二重起動対策,
2919 * ble-edit.sh: history load.
2920
2921 ## 2015-08-08
2922 * ble-syntex.sh (ble-syntax/completion-context/check-prefix): completion at redirect filenames.
2923
2924 ## 2015-07-10
2925 * memo.txt: Added todos.
2926
2927 ## 2015-06-15
2928 * modified complete.sh
2929
2930 ## 2015-03-22
2931 * ble-decode.sh: bugfix, bash-4.1 でも ESC [ を翻訳しないと駄目
2932 * ble-decode.sh: bugfix, bash-4.1 でも ESC * に登録しないと駄目
2933 * ble-core.sh, etc.: 一時ファイルを tmp/$UID に置く事にする。
2934
2935 ## 2015-03-12
2936 * ble-syntax.sh (ble-syntax/parse): stat の設定されていない箇所に word があり、shift されていなかった。
2937
2938 ## 2015-03-08
2939 * ble-edit.sh (ble-edit/draw/trace): bugfix, LC_COLLATE を設定して正規表現を使用する様に修正。
2940 * bashbug related bugfix: 幾つかの bugfix, 全て bash のバグが関係していた…。
2941 - `<bug>` bash-4.1 以下でカーソルの表示位置がずれている。
2942 - `<bug>` bash-4.2, 4.0, 3.2, 不完全な編集内容に対してエラーが出る
2943 - `<bug>` bash-4.0, 4.1 でプロンプトが表示されない
2944 - `<bug>` bash-4.1 以下でプロンプトの色が着かない
2945 * ble-decode.sh (.ble-decode-char): control/alter/meta/shift/super/hyper prefix が、
2946 その場で自身に適用されて出力されていた。
2947 * ble-core.sh (ble/util/declare-print-definitions): 連想配列に対応
2948 * ble-decode.sh, 他: オプション名 ble_opt を bleopt に統一
2949 * ble-decode.sh: .ble-decode-char 再実装
2950 - 修飾機能を send-modified-key (旧 sendkey-mod) に合流
2951 - C-x @ S 等、ESC 以外の修飾にも対応
2952 - .ble-decode-char/csi/* による CSI sequence の解釈
2953 - 新実装に対応する様に cmap/default.sh を書き直し
2954
2955 ## 2015-03-06
2956 * ble-decode.sh (stty): -icanon の設定。
2957 * ble-edit.sh (PS1): bugfix, job count, 時刻その他の更新。
2958 * ble-edit.sh (.ble-line-text/update/postion)
2959 - bugfix: ascii printable characters の行末で \n を付加した時 ichg に登録していなかった。
2960 - bugfix: _ble_util_string_prototype の長さ指定に 0 を指定していた
2961 - bugfix, 行末付近での tab の取り扱い
2962 - 制御文字も追い出しの対象に。
2963 - xenl の時、行末で必ず \n を追加する (追い出しの場合なども含め)。
2964 - 追い出しがあった場合にそれを記録する。
2965 * ble-edit.sh (.ble-line-text/getxy.cur): カーソル位置を取得する為の getxy を新規作成。
2966 * ble-edit.sh (ble-edit/draw/trace): 描画属性
2967 - term.sh: 描画属性について terminfo から読み取る様に。
2968 - ble-color.sh: 描画属性の点滅、不可視、イタリック、打ち消し線に対応。
2969 - ble-color.sh: sgr 構築で term.sh の結果を利用する様に変更。
2970 - ble-edit.sh (.ble-line-prompt): ble-color-g2sgr で端末に依存しない PS1 を書ける様に変更。
2971 * ble-decode.sh (ble-decode-kbd): bugfix, 複数キーがある場合に正しく処理できていなかった
2972 * overwrite-mode に対応
2973 * ble-syntax.sh, ble-color.sh: layer:syntax による色付けを face を介した物に変更。
2974 * ble-decode.sh, ble-edit.sh: 条件コマンドの統一。test や [ 等を [[ に統一。
2975
2976 ----
2977
2978 <!---------------------------------------------------------------------------->
2979 # Old ChangeLog
2980
2981 ## 2015-03-03
2982
2983 * ble-edit.sh, ble-edit.color: discard-line の際に着色
2984 * ble-edit.sh, ble-core.sh, etc: echo を builtin echo に。
2985 * ble-edit.sh: bugfix, 複数行で上に行けない
2986 * ble-edit.sh: bugfix, 複数行なのに空行の accept-line でのずれ量が1行になっている
2987 * プロンプト再実装
2988 - ble-edit.sh (ble-edit/draw/trace): escape sequences が含まれている文字列の位置追跡。
2989 - ble-edit.sh (.ble-line-prompt/update): プロンプトの構築を再実装。$() がある場合なども正しい計算。
2990 * ble-complete.sh (source/command): shopt -s autocd の時にディレクトリ名も候補として列挙。
2991 * ble-complete.sh: 補完候補の選択の方法を変更。より近くの開始点の物を優先。
2992
2993 ## 2015-03-01
2994
2995 * ble-edit.sh: .ble-edit-draw.goto-xy, .ble-edit-draw.put 廃止
2996 * complete.sh: 関数名に / が入っていると compgen -c で列挙されないので、別に列挙する。
2997
2998 ## 2015-02-28
2999
3000 * 初期化の最適化
3001 - ble-decode.sh: ble-decode-kbd 書き直し、ble-bind 書き直し
3002 - ble-getopt.sh: 多少最適化
3003 - ble-decode.sh: bash-4.3 でも ESC [ を utf-8 2-byte code で受信する様に変更。
3004 - ble-decode.sh (.ble-decode-bind/generate-source-to-unbind-default): awk 呼出を一回に統合。
3005 - ble-decode.sh (.ble-decode-key.bind/unbind): [[ ]] による書き換え、bugfix。
3006 - ble-decode.sh, bind.sh: bind -x を生成する為のコードを bind.sh に分離。
3007 - ble-edit.sh, keymap.emacs.sh: keymap 初期化部分の分離、キャッシュ化。
3008 - ble-edit.sh: history 遅延ロード対応
3009 * ble-core.sh, ble-color.sh: .ble-shopt-extglob-push/pop/pop-all 廃止
3010 * ble-edit.sh: bugfix, .ble-line-info.clear で位置がずれる
3011 * ble-edit.sh: ble-edit/draw/put.il, ble-edit/draw/put.dl
3012 * ble-color.sh (ble-highlight-layer/update/shift): 長さが変わらない場合でも shift する。
3013 * ble.pp (include ble-getopt.sh): 現在使っている所がないので取り敢えず外す。
3014 * ble-syntax.sh (completion-context): 簡単なパラメータ展開に対する対応。
3015
3016 ## 2015-02-27
3017
3018 * [bug] TAB 等の変更文字があった場合に文字列が表示されなくなる
3019 * bash-3.0, 3.1 対応
3020 "[bug] bash-3.1 日本語の色付け・描画が変だ"
3021 - ble-edit.sh, 他: @bash-3.1 bashbug workaround, ${param//%d/x} などは効かないので %d を '' で囲む。
3022 - ble-syntax.sh, 他: @bash-3.1 bashbug workaround, x${#arr[n]} はバイト数を返す様なので一旦通常変数に入れて ${#var} とする。
3023 - *.sh: @bash-3.0: += 演算子の置き換え、配列宣言の修正。
3024 - term.sh: @bash-3.0: bashbug workaround, declare -p で出力すると誤った物になる。
3025 * ble-edit.sh (.ble-line-text/update/slice): bugfix, 変更文字がある時にもう存在しないローカル変数を参照していた。
3026 * ble-core.sh: ble-load, ble-autoload
3027 * complete.sh:, ble-syntax.sh, ble-edit.sh: 文脈依存補完の実装
3028
3029 ## 2015-02-26
3030
3031 * ble-syntax.sh: a+=( a=( に対応
3032
3033 ## 2015-02-25
3034
3035 * ble/term.sh: TERM 依存の部分を分離。キャッシュ化。完全移行ではないが徐々に。
3036 * ble-decode.sh:
3037 - [bug] $_ble_base/cache の代わりに $_ble_bash/cache を作成していた
3038 - [bug] accept-single-line-or-newline が二回目以降常に accept
3039 * ble-edit.sh:
3040 - [bug] 複数行の編集時に履歴移動をすると表示が乱れる
3041 - printf %()T を用いた実装の導入、PS1 \D{...} に対応
3042 - [bug] 表示の属性の更新がうまく行かない事がある。
3043 - [bug] 編集文字列の行数が変わった時に info.draw の内容がずれる
3044 * カーソル移動
3045 - ble-edit: 複数行編集と項目内でのカーソル移動に対応
3046 - ble-edit.sh: 複数行コマンドの履歴に対応。
3047 * ble-syntax.sh: ble-syntax-highlight+syntax を ble-highlight-layer:syntax に書き換え
3048 * ble-syntax.sh:
3049 - 関数定義 func() の形式に対応、
3050 - 条件式 [[ ... ]] と配列初期化子内の文脈に対応。
3051 - コメントに対応。
3052 - $[...] の形式に対応 (何故か bash の説明には一切載っていないが使える)。
3053 - [bug] invalid nest " $()" の先頭に for を挿入した時
3054
3055 ## 2015-02-24
3056
3057 * ble-edit.sh 出力の部分更新に対応 (描画ちらつき対策)
3058 * ble-syntax.sh: _ble_syntax_word, _ble_syntax_stat の形式の変更
3059 * ble-syntax.sh: 今迄行っていた dirty-range 拡大の方法を止めて、単に stat の削除を行う。
3060 * ble-syntax.sh: 及び上記の変更に伴う数々の bugfix
3061 - [bug] 文字削除時 invalid nest の assertion に引っかかる。
3062 - [bug] 編集内容が零文字になった瞬間に改行が起こって表示が消える。
3063 - [bug] 改行しても先頭がコマンドになっていない
3064 - [bug] _ble_region_highlight_table で空欄になっている箇所がある。
3065 - [bug] 単語の属性適用が後ろに続く単語にも続いている。
3066 - [bug] _ble_syntax_attr の中に "BLE_ATTR_ERR" の文字列が混入している。
3067 - 残っている dirty 拡大と _ble_syntax_word[] の廃止された形式に対する処理の
3068 コメントアウトされた部分を削除。dirty 拡大の変更に伴う効率化の確認と、
3069 shift が遅いという事の ToDo 項目の追加。
3070 * ble-decode.sh: [bug] $_ble_base/cache の代わりに $_ble_bash/cache を作成していた
3071 * ble-edit.sh: ble-edit+delete-backward-xword の類の動作を変更。
3072
3073 ## 2015-02-23
3074
3075 * ble-core.sh: ble-stackdump, ble-assert
3076 * [bug] update-positions で dend-dbeg が負になると警告が出る
3077 * [bug] info.draw で特殊文字が改行に跨っている時の座標計算
3078
3079 ## 2015-02-22
3080
3081 * ble-edit.sh: [bug] .ble-line-info.draw を使った時行がずれる
3082 * ble-syntax.sh: [bug] for や do に色が着かない?
3083 * レイヤー化
3084 - ble-color.sh: レイヤーの仕組み、レイヤ region, adapter, plain + RandomColor
3085 - ble-edit.sh: レイヤーに対応した表示文字列構築関数。古い構築関数の削除。出力関数の変更。
3086 - ble-syntax.sh: 多少の変更。
3087
3088 ## 2015-02-21
3089
3090 * 描画の高速化
3091 - ble-syntax.sh: 属性値の変更範囲に応じて適用を行い、変更範囲を LAYER_MIN, LAYER_MAX に返す様に。
3092 - ble-edit.sh: 表示用の文字列の構築部分を書き直して部分更新に対応。
3093 - ble-syntax.sh: 内容に変化のあった word の範囲も記録する様に変更。
3094 - ble-syntax.sh (parse): _ble_syntax_attr_umin (属性値の変更範囲),
3095 _ble_syntax_word_umin (word の変更範囲) の累積に対応する為に、これらについても shift を実行する。
3096
3097 ## 2015-02-20
3098
3099 * ble-decode.sh: bind 周り
3100 - bash-4.3 C-@ を utf-8 2-byte code で受信する様に変更
3101 - bash-3.1 ESC [ を utf-8 2-byte code で受信する様に変更
3102 - bugfix, \C-\\ \C-_ \C-^ \C-] に bind できなくなっていた。
3103 - bind の version 分岐について整理。
3104 - 既存の bind を ESC に関係なく bind -r する。
3105 * ble-decode.sh: .ble-decode-key 部分一致探索の処理の再実装。変な動作だった。
3106 * ble-decode.sh: bugfix, 8bit 文字を正しく bind できていない。c2s で8bit文字が符号化されていた。
3107 * ble-syntax.sh: 履歴展開は $- に H がある時のみ有効に。
3108 * ble-syntax.sh: bugfix, bash-4.2 のバグの work around。配列を参照する算術式の書き換え。
3109 * ble-core.sh: c2s を bash の機能だけで実装できたので fallback を replace。
3110 * ble-core.sh: bash-4.0 で .ble-text.s2c を連想配列でメモ化
3111 * ble-edit.sh: bugfix, bash-4.0 で ret に予め特定の値が入っていると c2w に失敗する。
3112 * ble-edit.sh: bugfix, bind -x 直前のプロンプトの取り扱いは bash-4.0 では bash-3 系と同じ。
3113 * ble-edit.sh (.ble-line-text.construct 周り): lc lg を後で計算する様に変更。一区切り。一旦 commit する。
3114
3115 ## 2015-02-19
3116 * ble-syntax.sh: 履歴展開に対応。
3117 * ble-decode.sh: bugfix, bind -X から bind -x を生成するコード。
3118 bind -X の出力する形式は再利用不可能な形式でエスケープされているのでこれを変換。
3119 * ble.pp, etc: noattach 引数に対応。ble-attach/ble-detach 関数の定義。detach の bugfix。
3120 * ble-edit.sh: bug, bleopt_suppress_bash_output= にした時にプロンプトが二重になる
3121
3122 ## 2015-02-18
3123
3124 * ble.pp, ...: ディレクトリの構成を変更
3125 * ble-syntax.sh: 文法の対応
3126 - プロセス置換を単語として扱う様に変更
3127 - リダイレクトの後の引数に対応
3128 - リダイレクトの前の fd 部分に対応
3129 * bash-3.1 対応
3130 - ble-edit.sh: bash-3.1 で C-d を捕捉できる様に(結構無理のある方法だが)。
3131 - ble-edit.sh, ble-decode.sh: bugfix, bash-3 でカーソルキーの類が動かない。履歴が読み込まれていない。
3132 - ble-edis.sh: bash-3.1, bleopt_suppress_bash_output=1 の方が安定して動いているのでこちらで行く。
3133 - ble-edit.sh: bash-3.1, カーソルキーが効かない。例によって ESC [ ... に関係するコマンドで
3134 keymap が見付からないエラーになっている。これは ESC [ を CSI (utf-8) に変換してから読み取る事にした。
3135 - ble-syntax.sh: bash-3.2.48 のバグの work-around, (()) 内で配列要素を参照すると制御が無条件に其処に跳ぶ。
3136
3137 ## 2015-02-17
3138 * ble-edit.sh (ble-edit/dirty-range): 範囲更新の仕組みを追加。
3139 _ble_edit_dirty はプロンプト再描画の判定も兼ねているので取り敢えず残す。
3140 * ble-edit.sh: 変数リーク (グローバル変数の汚染) の修正。line i
3141 * ble-syntax.sh (ctx-command/check-word-end): 単語終了判定の処理タイミングを変更。
3142 * ble-syntax.sh: context の追加。CTX_CMDXF CTX_CMDX1 CTX_CMDXV CTX_ARGX0
3143 より正確な文脈判定・エラー検知。
3144 * ble-syntax.sh: 他にも多くの修正がある。未だ修正が続きそうなので一旦 commit する。
3145
3146 * ble-edit.sh (accept-line): bug, - で始まるコマンドを実行できない。
3147 * ble-color.sh: [bug] bg=black を設定しても反映されない。
3148 "未設定" と "黒" を区別する様に修正。
3149 * ble-syntax (ble-syntax-highlight+syntax): 入れ子エラーの色の範囲
3150 * ble-syntax: m, ;& は ;; ;;& 等と同じ取り扱い
3151 * ble-syntax, etc: bash-3 正規表現対策。bash-3/4 の正規表現の違いに依存しない書き方に変更。
3152
3153 ## 2015-02-16
3154 * ble-syntax.sh: bugfix, incremental に更新した時に word の長さが更新されない。
3155 _ble_syntax_word への格納の際に失敗していた。
3156
3157 ## 2015-02-15
3158 * ble-synatax.sh: bash の文法に従った incremental な解析と色付け。
3159
3160 ## 2015-02-14
3161 * ble-edit.sh (.ble-line-info.draw): 表示が遅いので修正。
3162 ASCII 文字は特別扱いする様に改良。劇的に速くなった。
3163
3164 ## 2015-02-13
3165 * ble-edit.sh (keymap emacs): 既定の keymap に emacs の名を付与。
3166 * ble-edit.sh (accept-line.exec): bugfix, C-c で再帰呼び出しのループから抜けられない。
3167 trap DEBUG を用いて再帰呼び出しから抜けられる様に exec 周りを整理・実装し直し。
3168 * ble-edit.sh: オプション名の変更、各オプションの整理・説明の追加。
3169 * ble-edit.sh (.ble-edit/gexec): グローバルな文脈でコマンドを実行する仕組み。
3170 再帰呼出に対する C-c にも対応。bleopt_exec_type で実行の方法を切り替えられる様に。
3171 exec が従来の方法で gexec がこの新しい方法。
3172
3173 ## 2015-02-12
3174 * ble-decode.sh: bugfix, exit 後に stty が壊れているのを修正
3175 これに伴って ble の detach 機能の実装も行った。
3176 * ble-decode.sh: bugfix, bash-4.3 で三文字以上のシーケンスが悉く聞かない。
3177 keymap が見付からないエラーになってしまうので全てのシーケンスについて bind -x する事にした。
3178 * ble-core.sh: bugfix, builtin printf \U.... の使えない環境で command printf fallback が働かない。
3179 printf のパスを修正。また ASCII に対しては printf は使わない様に変更。
3180 * ble-color.sh (ble-syntax-highlight+default):
3181 追加・修正。また選択範囲の反転を ble-syntax-highlight+region として実装し、それを呼び出す形に。
3182 * ble.pp: 起動時に interactive モードかどうかのチェックを行う様に。
3183
3184 ## 2015-02-11
3185 * ble-edit.sh (_ble_edit_io_*): ちらつきを抑える為に stdout/stderr を切り替える事にした。
3186 ちらつくのは bash の既定の出力によって ble の表示がクリアされ、bash の表示したい物が表示されるから。
3187 これに対抗して ble は bash の出力の直後に上書き再描画して何とか表示していた。
3188 bash の既定の出力を抑える為に、exec で出力先を切り替える事にした。
3189 bash の出力はファイルに書き込まれる様にし向ける。出力先ファイルを逐次確認して、
3190 エラーが出力されていれば visible-bell で表示する事にした。
3191 `bleopt_suppress_bash_output=1` の時にこの新しい方法を実験的に用いる。
3192 `bleopt_suppress_bash_output=` の時は従来のちらつく方法。
3193
3194 ## 2015-02-10
3195 * ble-edit.sh (accept-line.exec): bash-4.3 で内部からグローバル変数を定義できる様に
3196 declare 及び typeset を上書きして -g オプションを指定する様に変更。
3197 また、これに関係する注意点を ble.htm に記述。
3198 * ble-edit.sh (history): ロードに時間が掛かるので最適化。
3199 * 全般: bugfix, 文字列分割で GLOBIGNORE='*' を設定していないとパス名展開されて危険
3200 * ble-color.sh (ble-syntax-highlight+default): より良い色づけ。
3201 * ble-edit.sh (accept-line.exec): ble-bind -cf で bind されたコマンドの実行コンテキストを変更。
3202 accept-line で実行されるのと同じコンテキストで実行する。
3203 * ble-edit.sh (keymap default): C-z M-z を fg に bind。
3204
3205 ## 2015-02-09
3206 * git repos
3207 * ble-edit: bugfix, locate-xword マクロが展開されていなかった
3208 * ble-decode: bash-4.3 に対応する為に色々変更
3209 - bind 指定の場合分けを整理
3210 - bugfix, ESC ?, ESC [ ? に対して全て bind
3211 - bugfix, 場合によって全く bind -r できていない
3212 →"bind -sp | fgrep" が "バイナリ" という結果になる事がある様だ。
3213 fgrep に -a を指定する。
3214 - bugfix, 日本語が入力できない。8bit 文字が認識されない。
3215 →8bit 文字はエスケープシーケンスで bind に指定する様に変更。
3216
3217 ## 2013-06-12
3218 * ble-edit: history-beginning, history-end, accept-and-next
3219
3220 ## 2013-06-12
3221 * ble-edit:
3222 kill-forward-fword, kill-backward-fword, kill-fword,
3223 copy-forward-fword, copy-backward-fword, copy-fword,
3224 delete-forward-fword, delete-backward-fword, delete-fword,
3225 forward-fword, backward-fword
3226 * ble-edit: history-expand-line, display-shell-version
3227
3228 ## 2013-06-10
3229 * ble-edit:
3230 kill-forward-uword, kill-backward-uword, kill-uword, kill-region-or-uword,
3231 copy-forward-uword, copy-backward-uword, copy-uword, copy-region-or-uword,
3232 forward-uword, backward-uword
3233
3234 * ble-edit:
3235 delete-forward-uword, delete-backward-uword, delete-uword, delete-region-or-uword,
3236 delete-forward-sword, delete-backward-sword, delete-sword, delete-region-or-sword,
3237 delete-forward-cword, delete-backward-cword, delete-cword, delete-region-or-cword
3238
3239 * ble-edit:
3240 以下の編集関数を廃止:
3241 delete-region-or-uword, kill-region-or-uword, copy-region-or-uword,
3242 delete-region-or-sword, kill-region-or-sword, copy-region-or-sword,
3243 delete-region-or-cword, kill-region-or-cword, copy-region-or-cword.
3244 代わりに以下の編集関数を用いる:
3245 delete-region-or type, kill-region-or type, copy-region-or type.
3246
3247 ## 2013-06-09
3248 * ble-edit: kill-region, copy-region
3249 * ble-edit:
3250 kill-forward-sword, kill-backward-sword, kill-sword, kill-region-or-sword,
3251 copy-forward-sword, copy-backward-sword, copy-sword, copy-region-or-sword
3252 * ble-edit:
3253 kill-forward-cword, kill-backward-cword, kill-cword, kill-region-or-cword,
3254 copy-forward-cword, copy-backward-cword, copy-cword, copy-region-or-cword
3255 * ble-edit: forward-sword, backward-sword, forward-cword, backward-cword
3256
3257 ## 2013-06-06
3258 * ble-edit-bind: 全ての文字・キーが入力可能に。
3259 * complete: 候補一覧の表示 (簡易版)
3260 * ble-color.sh: 色付け機能を highlight.sh から移植
3261
3262 ## 2013-06-05
3263 * ble-edit: history-isearch-backward, history-isearch-forward,
3264 isearch/self-insert,
3265 isearch/next, isearch/forward, isearch/backward,
3266 isearch/exit, isearch/cancel, isearch/default,
3267 isearch/prev, isearch/accept
3268 * ble-edit: yank
3269 * ble-bind -d で今迄に bind した物を表示できる様に。
3270 * ble-edit: complete, 取り敢えずファイル名補完だけ
3271 * ble-edit: command-help
3272
3273 ## 2013-06-04
3274 * ble-edit: discard-line, accept-line
3275 * ble-edit: history-prev, history-next
3276 * ble-edit: set-mark, kill-line, kill-backward-line, exchange-point-and-mark
3277 * ble-edit: clear-screen
3278 * ble-edit: transpose-chars
3279 * ble-edit: insert-string
3280
3281 ## 2013-06-03
3282 * ble-edit: bell, self-insert, redraw-line,
3283 * ble-edit: delete-char, delete-backward-char, delete-char-or-exit,
3284 delete-forward-backward-char
3285 * ble-edit: forward-char, backward-char, end-of-line, beginning-of-line
3286 * ble-edit: quoted-insert
3287 * ble.sh: 取り敢えず簡単に文字列を入力できる程度までは完成
3288
3289 ## 2013-06-02
3290 * ble-getopt.sh: bugfixes
3291 * ble-getopt.sh: 無事に完了した場合に OPTARGS を unset する様に変更
3292 * ble-decode-kbd, ble-decode-unkbd
3293
3294 ## 2013-05-31
3295 * ble-getopt.sh: created
3296 * ble-decode: 大枠が完成
3297
3298 ## 2013-05-30
3299 * highlight.sh: 取り敢えず簡単な色付け
3300 * ble.sh:
3301
3302 -- 経緯 --
3303 highlight.sh の方針だと bash が表示する編集中の内容を消す事が出来ないし、
3304 カーソルの位置も bash が表示する物の場所を指している。
3305 色を付けて表示した物は、補助的に bash が表示する物の下に並べて表示する
3306 ぐらいしか方法がない。
3307
3308 また readline 関数をスクリプトから呼び出す事が出来ないので、
3309 結局、色付けを更新したいタイミングで READLINE_LINE や READLINE_POINT の動作を
3310 スクリプトの側で全て模倣して再現しなければならない。
3311 READLINE_LINE, READLINE_POINT の bash の仕様が変な所為で、日本語など
3312 のマルチバイトで正しく処理する為に、色々と汚い事をしなければならない。
3313
3314 以上の事から、文字列の編集などの操作からスクリプトの実行まで
3315 全部自分で好きな様に実装して bash readline の機能を全て上書きする事にした。
3316 その為に、スクリプトを新しく書き直す。zle を真似て ble (bash line editor)
3317 と名付ける。
3318
3319 -- 方針としては --
3320 a. read -n 1 を用いて 1 文字ずつ標準入力から文字を取り出してそれを処理していく
3321 b. bash の bind で全ての文字に ble のバイト受信関数を繋げて、
3322 バイト列を受信しながら処理する。
3323
3324 highlight.sh の延長線上で b. の方針にしたが、
3325 もしかすると a. の方針も可能かも知れない。
3326
3327 ## 2013-05-29
3328 * highlight.sh: 作成