Show
Ignore:
Timestamp:
10/18/08 23:27:15 (3 months ago)
Author:
kga
Message:

feed のアイコンとか

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dotfiles/vimperator/kga-vimperatorrc

    r21096 r21595  
    2020imap <C-b> <Left> 
    2121imap <C-f> <Right> 
     22imap <C-p> <Up> 
     23imap <C-n> <Down> 
    2224 
    2325"http://unsigned.g.hatena.ne.jp/Trapezoid/20080620/1213961754 
     
    2628    [',b', ':bentry'], 
    2729    [',c', ':copy'], 
     30    [',t', ':tombloo! Link'] 
    2831].forEach(function([key, command]){ 
    29     liberator.mappings.addUserMap([liberator.modes.NORMAL], [key], 
     32    mappings.addUserMap([modes.NORMAL], [key], 
    3033        "User defined mapping", 
    31         function () { liberator.execute(command); }, 
     34        function () { execute(command); }, 
    3235        { 
    3336            rhs: key, 
     
    4245set titlestring=Minefield 
    4346set visualbell 
     47set visualbellstyle+=opacity:0.8 
    4448set wildoptions=auto 
    4549set complete=sl 
     
    4852"set hintmatching=custom 
    4953 
    50 let g:direct_sbm_use_services_by_tag  = "h" 
    51 let g:direct_sbm_use_services_by_post = "h" 
     54set nextpattern+=次(の)?ページ,→\b 
     55set previouspattern+=prev, 前(の)?ページ,\b← 
    5256 
    5357autocmd LocationChange .* :fmapc 
    5458 
    5559javascript <<EOF 
    56 liberator.autocommands.add('PageLoad, TabSelect', /reader\.livedoor\.com\/reader\//, [ 
    57     'js liberator.plugins.feedKey.setup(', 
     60autocommands.add('LocationChange', /reader\.livedoor\.com\/reader\//, [ 
     61    'js plugins.feedKey.setup(', 
    5862        '"j k s a p v <Space> <S-Space> z Z < > q g h l n r R x T".split(/ +/)', 
    5963    ');' 
    6064].join('')); 
    6165EOF 
     66autocmd LocationChange http://reader\.livedoor\.com/reader/ :fmap ; : 
     67 
     68" Show feed-button to statusbar 
     69javascript <<EOM 
     70(function () { 
     71    var feedButton = document.getElementById('feed-button'); 
     72        feedButton.parentNode.removeChild(feedButton); 
     73    var feedPanel  = document.createElement('statusbarpanel'); 
     74        feedPanel.setAttribute('id', 'feed-panel-clone'); 
     75        feedPanel.appendChild(feedButton.cloneNode(true)); 
     76    document.getElementById('status-bar').insertBefore( 
     77        feedPanel, 
     78        document.getElementById('security-button') 
     79    ); 
     80})(); 
     81EOM 
     82 
     83javascript <<EOM 
     84globalVariables.copy_templates = [ 
     85    { label: 'url',         value: '%URL%' }, 
     86    { label: 'titleAndURL', value: '%TITLE% %URL%' }, 
     87    { label: 'hatena',      value: '[%URL%:title=%TITLE%]' }, 
     88    { label: 'title',       value: '%TITLE%' } 
     89]; 
     90EOM