From 42661197a40d2bc78d1cf21f8056db88f5a14857 Mon Sep 17 00:00:00 2001
From: anekos
Date: Thu, 1 Sep 2011 18:23:54 +0900
Subject: 履歴の順で候補を出すようにした
---
migemized_find.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
(limited to 'migemized_find.js')
diff --git a/migemized_find.js b/migemized_find.js
index 2d11f00..8adc6dd 100644
--- a/migemized_find.js
+++ b/migemized_find.js
@@ -39,7 +39,7 @@ let PLUGIN_INFO =
Migemized Find
Migemize default page search.
デフォルトのドキュメント内検索をミゲマイズする。
- 2.11.0
+ 2.11.1
anekos
new BSD License (Please read the source code comments of this plugin)
修正BSDライセンス (ソースコードのコメントを参照してください)
@@ -497,6 +497,7 @@ let PLUGIN_INFO =
submit: function () {
let exists = false, newHistory = [];
+ newHistory.push(this.currentSearchText);
for (let [i, h] in Iterator(this.history)) {
if (h === this.currentSearchText) {
exists = true;
@@ -504,7 +505,6 @@ let PLUGIN_INFO =
newHistory.push(h);
}
}
- newHistory.push(this.currentSearchText);
this.history = newHistory;
this.lastSearchText = this.currentSearchText;
@@ -601,6 +601,7 @@ let PLUGIN_INFO =
},
completer: function (context, args) {
+ context.compare = CompletionContext.Sort.unsorted;
context.completions = [
[v, v]
for ([, v] in Iterator(MF.history))
--
cgit v1.2.3