SoundCloud Keybind on Vimperator
はじめに
SoundCloud で用意されてるキーボード・ショートカットを Vimperator で使いたい!
ってことで vimpr にあるプラギン feedSomeKeys_3.js 用の設定してみる.
キー対応表
original key | description | on vimperator (case sensitive) |
---|---|---|
space | Toggle play & pause | p |
⇧→ ( J でも可 ) |
Play next track | j |
⇧ L | Repeat playing track | r |
⇧← ( K でも可 ) |
Play previous track | k |
⇧↓ | Decrease volume | <S-Down> |
⇧↑ | Increase volume | <S-Up> |
M | Mute volume | m |
→ | Seek forward | <Right> |
← | Seek backward | <Left> |
0…9 | Seek to position | <A-0>…<A-9> |
P | Current playing track | <Leader>p |
L | Like playing track | <Leader>l |
R | Repost playing track | <Leader>r |
S ( / でも可 ) |
Search | s |
H | Show keyboard shortcuts | ? |
自分の stella.js の設定とある程度共通したキーバインドにしてみた.
(※ 2014-04-17追記: P, L, R の対応先を <Leader>p, <Leader>l, <Leader>r に変更した.)
.vimperatorrc 設定例
vkeydown や keydown,keypress などが入り混じってるけどこの辺はトライアンドエラーで決めた.それと j,k がトラック移動に取られているので,このサイトに限り通常のページ上下は大文字の J,K で代用するようにしてる.
Let's enjoy SoundCloud on Vimperator!