Skip to content

Instantly share code, notes, and snippets.

@sys9kdr
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sys9kdr/10434423 to your computer and use it in GitHub Desktop.
Save sys9kdr/10434423 to your computer and use it in GitHub Desktop.
pentadactyl設定のメモ
"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