Skip to content

Commit

Permalink
README: update contributions
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Jan 25, 2021
1 parent 6494836 commit 5504bbc
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 15 deletions.
2 changes: 2 additions & 0 deletions README-ja_JP.md
Expand Up @@ -424,3 +424,5 @@ GitHub の Issue/PR を通して多くの方からフィードバックを頂き
- [`@cmplstofB`](https://github.com/cmplstofB) 様には vim モードの実装において初期よりテスト及び様々な提案をしていただきました。
- [`@dylankb`](https://github.com/dylankb) 様には `fzf` との互換性や `ble.sh` 初期化に関連して様々な問題報告をいただきました。
- [`@rux616`](https://github.com/rux616) 様には幾つかの問題報告および `.blerc` の既定パス解決のバグ修正をいただきました。
- [`@timjrd`](https://github.com/timjrd) 様には補完の枠組みの高速化に関する PR をいただきました。
- [`@3ximus`](https://github.com/3ximus) 様には広範囲に渡る様々な問題について報告いただきました。
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -418,3 +418,5 @@ Among them, the following people have made particularly significant contribution
- [`@cmplstofB`](https://github.com/cmplstofB) helped me implementing vim-mode by testing it and giving me a lot of suggestions.
- [`@dylankb`](https://github.com/dylankb) reported many issues for fzf-integration, initialization, etc.
- [`@rux616`](https://github.com/rux616) reported several issues and created a PR for fixing the default path of `.blerc`
- [`@timjrd`](https://github.com/timjrd) suggested and contributed to performance improvements in completion.
- [`@3ximus`](https://github.com/3ximus) reported many issues for a wide variety of problems.
16 changes: 6 additions & 10 deletions blerc
Expand Up @@ -392,16 +392,12 @@
#bleopt complete_polling_cycle=50


## A hint on the maximum acceptable size of any data structure
## generated during the completion process, beyond which the
## completion may be prematurely aborted to avoid excessive processing
## time.
##
## "complete_limit" is used during tab-completion, an empty value
## disables the size checks.
##
## "complete_limit_auto" is used during auto-completion, if its value
## is empty, "complete_limit" is used instead.
## A hint on the maximum acceptable size of any data structure generated during
## the completion process, beyond which the completion may be prematurely
## aborted to avoid excessive processing time. "complete_limit" is used for
## TAB completion. When its value is empty, the size checks are disabled.
## "complete_limit_auto" is used for auto-completion. When its value is empty,
## the setting "complete_limit" is used instead.

#bleopt complete_limit=500
#bleopt complete_limit_auto=200
Expand Down
15 changes: 10 additions & 5 deletions lib/core-complete.sh
Expand Up @@ -1297,17 +1297,22 @@ function ble/complete/action:variable/init-menu-item {
#------------------------------------------------------------------------------
# source

## Test whether $1 exceeds $bleopt_complete_limit or
## $bleopt_complete_limit_auto.
## 関数 ble/complete/source/test-limit value
## Tests whether "value" exceeds the completion limit
## specified by bleopt complete_limit or complete_limit_auto.
##
## @var[in] comp_type
## @var[in,out] cand_limit_reached
##
function ble/complete/source/test-limit {
local value=$1
if [[ :$comp_type: == *:auto:* && $bleopt_complete_limit_auto ]]; then
local limit=$bleopt_complete_limit_auto
else
local limit=$bleopt_complete_limit
fi

if [[ $limit && $1 -gt $limit ]]; then
if [[ $limit && value -gt limit ]]; then
cand_limit_reached=1
return 1
else
Expand Down Expand Up @@ -3555,7 +3560,7 @@ function ble/complete/candidates/comp_type#read-rl-variables {
## @arr[in] sources
## @var[out] COMP1 COMP2 COMPS COMPV
## @var[out] comp_type comps_flags comps_fixed
## @var[out] cand_*
## @var[out] cand_count cand_cand cand_word cand_pack
## @var[in,out] cand_limit_reached
function ble/complete/candidates/generate {
local opts=$1
Expand Down Expand Up @@ -4787,6 +4792,7 @@ function ble/widget/complete {
local comp_type comps_flags comps_fixed
local cand_count=0
local -a cand_cand cand_word cand_pack
local cand_limit_reached=
if [[ $_ble_complete_menu_active && :$opts: != *:regenerate:* &&
:$opts: != *:context=*:* && ${#_ble_complete_menu_icons[@]} -gt 0 ]]
then
Expand All @@ -4804,7 +4810,6 @@ function ble/widget/complete {
fi
if ((cand_count==0)); then
local bleopt_complete_menu_style=$bleopt_complete_menu_style # source 等に一次変更を認める。
local cand_limit_reached=
ble/complete/generate-candidates-from-opts "$opts"; local ext=$?
if ((ext==148)); then
return 148
Expand Down

0 comments on commit 5504bbc

Please sign in to comment.