Changeset 29391 for dotfiles/vimperator
- Timestamp:
- 02/01/09 21:02:01 (4 years ago)
- Location:
- dotfiles/vimperator
- Files:
-
- 2 modified
-
janus_wel-vimperatorrc (modified) (14 diffs)
-
janus_wel-vimperatorrc.js (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dotfiles/vimperator/janus_wel-vimperatorrc
r27831 r29391 1 1 " .vimperatorrc 2 " author janus_wel <janus.wel.3@gmail.com> 2 3 " for 2.0pre (created: 2008/12/10 07:30:02) 3 " Last Change: 2009/01/03 13:37:05. 4 5 " set --------------------------------------------------------------------- 4 " Last Change: 2009/02/01 16:10:11. 5 6 " options ----------------------------------------------------------------- 7 " safe mode 8 "set noloadplugins 9 6 10 " title bar 7 11 set titlestring="Firefox with Vimperator" … … 19 23 "set activate= 20 24 set activate=homepage 25 set activate-=homepage 21 26 22 27 " scroll height of <C-d> / <C-u> … … 33 38 set newtab=all 34 39 35 " show completions automatically 36 set wildoptions=auto 40 " display tab-bar anytime 41 set showtabline=2 42 43 " show sorted completions automatically 44 set wildoptions=auto,sort 37 45 38 46 " don't focus any "input" elements automatically when open pages. … … 44 52 45 53 " show right and bottom scroll bar 46 set go=rb 47 48 "set noloadplugins 49 50 51 " set! ------------------------------------------------------------------ 54 set guioptions=rb 55 56 " use the edit mode like vim in textareas 57 set noinsertmode 58 59 60 " preferences ( Firefox about:config ) ------------------------------------ 61 " tabs --- 62 " display tab-bar anytime 63 set! browser.tabs.autoHide=false 64 65 " don't animate tab-bar when switch to fullscreen 66 set! browser.fullscreen.animateUp=0 67 68 " hide close buttons 69 set! browser.tabs.closeButtons=2 70 71 " open tab in the background 72 set! browser.tabs.loadDivertedInBackground=true 73 74 " tab width is 24px 75 set! browser.tabs.tabMaxWidth=24 76 set! browser.tabs.tabMinWidth=24 77 78 " miscs --- 52 79 " case-sensitive when find 53 80 set! accessibility.typeaheadfind.casesensitive=1 … … 56 83 set! browser.enabel_automatic_image_resizing=false 57 84 58 " don't animate tab-bar when fullscreen59 set! browser.fullscreen.animateUp=060 61 85 " the number of URL-completions is 20 62 86 set! browser.urlbar.maxRichResults=20 … … 64 88 " the number of popups is 100 65 89 set! dom.popup_maximum=100 66 set! browser.tabs.loadDivertedInBackground=true67 90 68 91 " activate spell-check textarea/input … … 73 96 set! layout.word_select.eat_space_to_next_word=false 74 97 75 " display tab-bar anytime76 set! browser.tabs.autoHide=false77 " hide close buttons78 set! browser.tabs.closeButtons=279 " tab width is 24px80 set! browser.tabs.tabMaxWidth=2481 set! browser.tabs.tabMinWidth=2482 83 98 " don't show download-manager 84 99 set! browser.download.manager.showWhenStarting=false 85 100 86 101 87 " Variables ---------------------------------------------------------------102 " variables --------------------------------------------------------------- 88 103 " this must be set before map operation, otherwise use default value. 89 104 let mapleader=',' 90 105 91 106 92 " Mappings ----------------------------------------------------------------107 " mappings ---------------------------------------------------------------- 93 108 " tab operation 94 109 noremap <C-h> gT … … 97 112 noremap <C-n> :tabmove! +1<CR> 98 113 99 " I で pageinfo 114 " we love echo 115 noremap e :echo<Space> 116 117 " pageinfo short-cut 100 118 noremap I :pageinfo<CR> 101 119 … … 107 125 noremap p <Nop> 108 126 noremap <C-k> <Nop> 109 " move to .vimperatorrc.js110 "map A <Nop>111 127 112 128 " escape <C-a> / <C-x> … … 140 156 " better safe than sorry 141 157 inoremap <C-h> <BS> 142 noremap <Leader>B :js content.document.body.focus();<CR> 158 noremap <Leader>B :javascript content.document.body.focus();<CR> 159 noremap <Leader>d :redraw<CR> 143 160 144 161 " sourcing .vimperatorrc 145 noremap <Leader>r :so ~/.vimperatorrc<CR> 146 noremap <Leader>R :mapc<CR>:cmapc<CR>:imapc<CR>:so ~/.vimperatorrc<CR> 147 148 " we love echo 149 noremap e :echo<Space> 150 151 " simple 152 noremap <Leader>l :toggleldrizecooperation<CR> 153 154 noremap <Leader>d :redraw<CR> 155 156 " Plugins ----------------------------------------------------------------- 162 noremap <Leader>r :source ~/.vimperatorrc<CR> 163 noremap <Leader>R :mapclear<CR>:cmapclear<CR>:imapclear<CR>:source ~/.vimperatorrc<CR> 164 165 166 " plugins ----------------------------------------------------------------- 157 167 " plugin: direct_bookmark.js 158 168 " move to .vimperatorrc.js 159 "map a:sbm<Space>169 noremap B :sbm<Space> 160 170 161 171 " plugin: sbmcommentsviewer.js 162 172 " move to .vimperatorrc.js 163 " map v :viewSBMComments -t hd173 "noremap v :viewSBMComments -t hd 164 174 165 175 " plugin: copy.js … … 168 178 " plugin: blinkelement.js 169 179 noremap <Leader>b :bl content.document.getElement 170 noremap <Leader>e :bl buffer.evaluateXPath 180 noremap <Leader>e :bl buffer.evaluateXPath(' 171 181 172 182 " plugin: noscript.js 173 183 noremap <Leader>s :noscript toggletemp<CR> 174 184 noremap <Leader>S :noscript toggleperm<CR> 185 186 " plugin: ldrize_cooperation.js 187 noremap <Leader>l :toggleldrizecooperation<CR> 175 188 176 189 " plugin: direct_bookmark.js … … 208 221 let hatena_star_hint_mapping='h' 209 222 210 211 " JavaScript ------------------------------------------------------------ 223 " plugin: PMWriter.js 224 let pmwriter_plugin_dir = '~\vimperator\plugin' 225 let pmwriter_output_dir = '~\vimperator\plugin\help\' 226 227 228 " source extra resources -------------------------------------------------- 229 " javascript 212 230 source ~/.vimperatorrc.js 213 231 214 215 " CSS ------------------------------------------------------------------- 232 " css 216 233 "source ~/.vimperatorrc.css 217 234 218 235 219 " autocmd --------------------------------------------------------------- 236 " autocmd ----------------------------------------------------------------- 220 237 " fmap --- 221 238 " all clear … … 224 241 " Fastladder 225 242 " pass through default keybinds 226 autocmd LocationChange http://fastladder\\.com/reader/ :fmap j k s a p o q w r J,<Space> K,<S-Space> 243 autocmd LocationChange http://fastladder\\.com/reader/ :fmap j k s a p o q w r <Del> 244 autocmd LocationChange http://fastladder\\.com/reader/ :fmap J,<Space> K,<S-Space> <,> >,< /,f 227 245 " LDR Full Feed 228 246 autocmd LocationChange http://fastladder\\.com/reader/ :fmap v,g V,G 229 247 " LDR + Tombloo 230 248 autocmd LocationChange http://fastladder\\.com/reader/ :fmap B,T 231 " Hatena Star 232 autocmd LocationChange http://fastladder\\.com/reader/ :fmap H 249 autocmd LocationChange http://fastladder\\.com/reader/ :fmap g,t G,b z,Z 250 " Hatena Bookmark Comment 251 autocmd LocationChange http://fastladder\\.com/reader/ :fmap c,C C,F S 252 253 " livedoor Reader 254 " pass through default keybinds 255 autocmd LocationChange http://reader\\.livedoor\\.com/reader/ :fmap j k s a p o q w r <Del> 256 autocmd LocationChange http://reader\\.livedoor\\.com/reader/ :fmap J,<Space> K,<S-Space> <,> >,< /,f 257 " LDR Full Feed 258 autocmd LocationChange http://reader\\.livedoor\\.com/reader/ :fmap v,g V,G 259 " LDR + Tombloo 260 autocmd LocationChange http://reader\\.livedoor\\.com/reader/ :fmap B,T 261 autocmd LocationChange http://reader\\.livedoor\\.com/reader/ :fmap g,t G,b z,Z 262 " Hatena Bookmark Comment 263 autocmd LocationChange http://reader\\.livedoor\\.com/reader/ :fmap c,C C,F S 233 264 234 265 " Remember the Milk … … 251 282 252 283 253 " finish ---------------------------------------------------------------- 284 " finish ------------------------------------------------------------------ 254 285 echo "GET READY!!" 255 286 -
dotfiles/vimperator/janus_wel-vimperatorrc.js
r26382 r29391 1 1 // .vimperator.js 2 // author: janus_wel<janus@fb3.so-net.ne.jp> 3 4 // 動画サイトの操作用 map 2 // author: janus_wel <janus.wel.3@gmail.com> 3 // for 2.0pre 4 // Last Change: 2009/02/01 16:10:35. 5 6 // key mappings for video services 5 7 // plugin : nnp_cooperation.js 6 8 // plugin : nicontroller.js … … 31 33 { 32 34 command: 'a', 33 action: function() { liberator.execute('normal :sbm<Space>');},34 description: ' ready social bookmark command',35 extra: { rhs: ':sbm<Space>',},35 action: function() {}, 36 description: 'Nop', 37 extra: {}, 36 38 }, 37 39 { … … 141 143 { 142 144 // [N]n 143 // N 番目の動画を再生する。144 // 指定なしの場合次の動画が再生される。145 // play N th video. 146 // if N is not specified, next video will be played. 145 147 command: 'n', 146 148 action: function(count) { … … 153 155 { 154 156 // [N]w 155 // 上から N 個の動画を削除する。156 // 指定なしの場合一番上の動画が削除される。157 // delete N th video. 158 // if N is not specified, next video will be deleted. 157 159 command: 'w', 158 160 action: function(count) { … … 166 168 { 167 169 // [N]- 168 // N 秒前にシークする。169 // 指定なしの場合 10 秒前。170 // seek to minus N seconds. 171 // if N is not specified, minus 10 seconds. 170 172 command: '-', 171 173 action: function(count) { 172 if(count === -1) count = 20;174 if(count === -1) count = 10; 173 175 liberator.execute(':nicoseek! ' + '-' + count); 174 176 }, … … 178 180 { 179 181 // [N]+ 180 // N 秒後にシークする。181 // 指定なしの場合 10 秒後。182 // seek to plus N seconds. 183 // if N is not specified, plus 10 seconds. 182 184 command: '+', 183 185 action: function(count) { 184 if(count === -1) count = 20;186 if(count === -1) count = 10; 185 187 liberator.execute(':nicoseek! ' + count); 186 188 }, … … 226 228 { 227 229 // [N]- 228 // N 秒前にシークする。229 // 指定なしの場合 10 秒前。230 // seek to minus N seconds. 231 // if N is not specified, minus 10 seconds. 230 232 command: '-', 231 233 action: function(count) { … … 238 240 { 239 241 // [N]+ 240 // N 秒後にシークする。241 // 指定なしの場合 10 秒後。242 // seek to plus N seconds. 243 // if N is not specified, plus 10 seconds. 242 244 command: '+', 243 245 action: function(count) { … … 269 271 }; 270 272 271 liberator.modules.autocommands.add('LocationChange', '.*', 'js liberator.plugins.nicomap()'); 272 273 274 // colors 275 (function(){ 276 let colorDir = io.getRuntimeDirectories('colors')[0]; 277 io.readDirectory(colorDir).forEach( function (file) { 278 if (/\.vimp$/i.test(file.path)) { 279 io.source(file.path, false); 280 liberator.echo(file.path + ' sourced.'); 281 } 282 }); 283 })(); 284 285 // multi_requester.js 273 liberator.modules.autocommands.add('LocationChange', '.*', liberator.plugins.nicomap); 274 275 276 // plugin: multi_requester.js 286 277 liberator.globalVariables.multi_requester_mappings = [ 287 278 ['E', 'alc'], … … 290 281 ]; 291 282 283 // plugin: migratestatusbar.js 292 284 liberator.globalVariables.migrate_elements = [ 293 285 {
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)