aboutsummaryrefslogtreecommitdiffstats
path: root/foxage2ch.js
diff options
context:
space:
mode:
authoranekos2011-02-06 23:27:40 +0900
committeranekos2011-02-06 23:28:32 +0900
commitdaa06a8c1aea5902c9c79c7f6d3f9bd0e805700a (patch)
treedac47286fd0451d92b6a6f04354a276982579d86 /foxage2ch.js
parent2e58b9ac69f65eacc3969be6640bdc7368645043 (diff)
downloadvimperator-plugins-daa06a8c1aea5902c9c79c7f6d3f9bd0e805700a.tar.bz2
サブコマンド増やした
Diffstat (limited to 'foxage2ch.js')
-rw-r--r--foxage2ch.js28
1 files changed, 21 insertions, 7 deletions
diff --git a/foxage2ch.js b/foxage2ch.js
index 49c7ccb..1c5cc63 100644
--- a/foxage2ch.js
+++ b/foxage2ch.js
@@ -37,7 +37,7 @@ let PLUGIN_INFO =
<VimperatorPlugin>
<name>FoxAge2ch</name>
<description>for FoxAge2ch</description>
- <version>1.2.0</version>
+ <version>1.3.0</version>
<author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author>
<license>new BSD License (Please read the source code comments of this plugin)</license>
<license lang="ja">修正BSDライセンス (ソースコードのコメントを参照してください)</license>
@@ -146,12 +146,6 @@ let INFO =
return;
},
findThread: function (threadId) {
- if (!threadId) {
- let thread = FA.titleToId(buffer.title);
- if (!thread)
- return;
- threadId = thread.id;
- }
window.openDialog(
'chrome://foxage2ch/content/findThread.xul',
'FoxAge2ch:FindThread',
@@ -235,6 +229,26 @@ let INFO =
}
},
true
+ ),
+
+ new Command(
+ ['f[indthread]'],
+ 'Find thread',
+ function (args) {
+ let threadId = args.literalArg;
+ if (!threadId) {
+ let thread = FA.titleToId(buffer.title);
+ if (!thread)
+ return;
+ threadId = thread.id;
+ }
+ FA.findThread(threadId);
+ },
+ {
+ literal: 0,
+ completer: threadCompleter
+ },
+ true
)
];