Last active
August 29, 2015 13:58
-
-
Save sys9kdr/10434423 to your computer and use it in GitHub Desktop.
pentadactyl設定のメモ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"hg7064 | |
loadplugins '\.(js|penta)$' | |
group user | |
map -count -modes=n,v <C-a> -builtin <Count><Pass> | |
map -modes=c,i <C-a> -builtin <Pass> | |
"map -count -modes=n,v <C-v> -builtin <Count><Pass> | |
map -modes=c,i <C-v> -builtin <Pass> | |
"map -count -modes=n,v <C-x> -builtin <Count><Pass> | |
map -modes=c,i <C-x> -builtin <Pass> | |
"Yank title and url. | |
map -modes=n Y -builtin -javascript dactyl.clipboardWrite(buffer.title+" "+buffer.URL, true); | |
if (navigator.platform == "Win32") | |
style -name=cmd-ime chrome://* #dactyl-commandline-command input, #dactyl-statusline-field-commandline-command input{ime-mode: inactive;} | |
endif | |
if (navigator.platform.indexOf("Linux") == 0) | |
javascript <<EOM | |
'use strict'; | |
[['f','o'],['F','b'],].forEach(function([keyToShowHint,hintModeArg]){ | |
//'o' means Opening a hint in a new active tab. | |
//'b' means opening a hint in a new Background tab. | |
//mappings.addUserMap([modes.NORMAL],[keytoshowhint],'Show hints.', | |
group.mappings.add([modes.NORMAL],[keyToShowHint],'Show hints.', | |
function(){ | |
hints.show(hintModeArg); | |
io.run('fcitx-remote',['-c'],true); | |
}, | |
{noremap: true});}); | |
EOM | |
endif | |
"Fix <C-a> won't work in tweet-box. | |
set passkeys=twitter.com:<C-a>,www.tumblr.com:jk | |
set nextpattern='^次','^Next [>≫]','^Next ≫','\bnext\b',^>$,'^(>>|≫)$','^(>|≫)','(>|≫)$','\bmore\b' | |
set previouspattern='^前','[<≪] Prev$','≪ Prev$','\bprev(ious)?\b',^<$,'^(<<|≪)$','^(<|≪)','(<|≪)$' | |
" commandline open, CommandExMode().open("tabopen "); | |
" vim: set ft=pentadactyl: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment