Skip to content

Instantly share code, notes, and snippets.

@for2ando
Created March 19, 2019 10:26
Show Gist options
  • Save for2ando/0ae3a507b1607c4e21d8fb5bbc7209b7 to your computer and use it in GitHub Desktop.
Save for2ando/0ae3a507b1607c4e21d8fb5bbc7209b7 to your computer and use it in GitHub Desktop.
my keyboard assignment script for a lost ancient Chrome Extension named as 'KeyBinder'.
set c-q
ubind bsic <c-q>
bind bsich <c-q> [mode.change n]
bind bsich <f10> [mode.change p]
set c-w
#ubind b <c-w>
#ubind sichno <c-w>
#bind bsichno <c-w> [nop]
#bind bs <c-w> [selection.kill]
#bind ic <c-w> [region.kill]
set c-n
#ubind bsich <c-n>
#bind i <c-n> [caret.nextLine +1]
#bind c <c-n> [command.fetch next]
#bind i <c-x><c-n> [input.focus next]
set m-w
ubind bsich <m-w>
#bind bs <m-w> [selection.kill]
#bind ic <m-w> [region.kill][kill.top]
bind bsic <m-w> <c-c><c-c>
set c-cc
bind bs <c-c><c-c> <c-q><c-c>[selection.kill]
bind bs <c-c><c-k> <c-q><c-c>[selection.kill]
bind ic <c-c><c-c> <c-q><c-c>[region.kill][kill.top]
bind ic <c-c><c-k> <c-q><c-c>[region.kill]
set tabmove
bind bs <m-pageup> [tab.move -1]
bind bs <m-pagedown> [tab.move +1]
set pointmove
bind s <home> [caret.beginningOfBuffer]
bind s <end> [caret.endOfBuffer]
bind s <s-arrowleft> [caret.beginningOfLine]
bind s <s-arrowright> [caret.endOfLine]
bind s <arrowdown> [caret.nextLine +1]
bind s <arrowup> [caret.nextLine -1]
bind s <arrowleft> [caret.forwardChar -1]
bind s <arrowright> [caret.forwardChar +1]
bind s <c-arrowright> [caret.forwardWord +1]
bind s <c-arrowleft> [caret.forwardWord -1]
bind s <m-<> [caret.beginningOfBuffer]
bind s <m->>> [caret.endOfBuffer]
bind b <m-<> [point.beginningOfBuffer]
bind b <m->>> [point.endOfBuffer]
set myBind
mixset c-q
mixset c-w
mixset m-w
mixset c-n
mixset c-cc
mixset tabmove
mixset pointmove
set ubindJk
ubind b j
ubind b k
set naturalKeyBind
ubind bsichnop a
ubind bsichnop b
ubind bsichnop c
ubind bsichnop d
ubind bsichnop e
ubind bsichnop f
ubind bsichnop g
ubind bsichnop h
ubind bsichnop i
ubind bsichnop j
ubind bsichnop k
ubind bsichnop l
ubind bsichnop m
ubind bsichnop n
ubind bsichnop o
ubind bsichnop p
ubind bsichnop q
ubind bsichnop r
ubind bsichnop s
ubind bsichnop t
ubind bsichnop u
ubind bsichnop v
ubind bsichnop w
ubind bsichnop x
ubind bsichnop y
ubind bsichnop z
ubind bsichnop A
ubind bsichnop B
ubind bsichnop C
ubind bsichnop D
ubind bsichnop E
ubind bsichnop F
ubind bsichnop G
ubind bsichnop H
ubind bsichnop I
ubind bsichnop J
ubind bsichnop K
ubind bsichnop L
ubind bsichnop M
ubind bsichnop N
ubind bsichnop O
ubind bsichnop P
ubind bsichnop Q
ubind bsichnop R
ubind bsichnop S
ubind bsichnop T
ubind bsichnop U
ubind bsichnop V
ubind bsichnop W
ubind bsichnop X
ubind bsichnop Y
ubind bsichnop Z
set mySet
mixset defaultKeyMap
mixset defaultKeyBind
mixset defaultSearch
mixset myBind
set mySetJk
mixset mySet
mixset ubindJk
set naturalSet
mixset defaultKeyMap
mixset naturalKeyBind
mixset defaultSearch
set
kv bookmarkFolderName 0 Key Binder
kv set mySetJk
# avoid conflict with the google-search native keymap
urlset ^https://www¥.google¥.co¥.jp/
kv set mySetJk
urlset ^https://www¥.google¥.com/
kv set mySetJk
urlset ^https://mail¥.google¥.com/
kv set naturalSet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment