aboutsummaryrefslogtreecommitdiffstats
path: root/pushfind.js
diff options
context:
space:
mode:
authorelzzup2014-07-04 14:29:44 +0900
committerelzzup2014-07-04 14:29:44 +0900
commit81fa434afbd7589c7eecb11c014562b3dca9999b (patch)
treebbfc1ef88d686d266f268b17b9936251d6ba6c6b /pushfind.js
parent6c9743431ee74ae50296f596d38ec1980dc5e675 (diff)
downloadvimperator-plugins-81fa434afbd7589c7eecb11c014562b3dca9999b.tar.bz2
update pushfind mini chars skip option
Diffstat (limited to 'pushfind.js')
-rwxr-xr-xpushfind.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/pushfind.js b/pushfind.js
index 733914d..35f78bd 100755
--- a/pushfind.js
+++ b/pushfind.js
@@ -17,7 +17,7 @@ let PLUGIN_INFO = xml`
(function () {
/* n文字以下は弾く */
- var skip_char_num = 2;
+ var skip_char_num = 1;
/* 実行した際にコマンドラインにechoする */
var is_echo_pushfind = true;
/* ヒットした文字列を逆に流し込む */
@@ -70,7 +70,8 @@ let PLUGIN_INFO = xml`
words = res.split(cf.delimiter);
}
for each (var w in words) {
- if (!w || pushwords.indexOf(w) != -1) {
+ //空白文字列,重複,短い単語のskip
+ if (!w || pushwords.indexOf(w) != -1 || w.length <= skip_char_num) {
continue;
}
pushwords.push(w);