CtrlPã§cdnjs.comã®URLãå ¥åããctrlp-cdnjsãä½ã£ã
試ãã«ã¡ããã£ã¨HTMLã¨JavaScriptæ¸ãã¦ç¢ºèªã¨ããããã¨ãã«ãjQueryã¨ãã®ã©ã¤ãã©ãªããã¦ã³ãã¼ããã¦ç¨æããã®ã¯é¢åãªã®ã§ã©ã£ãã®CDNããæåãããã¨ãå¤ããã ãã©ããã®URLãæ¯åã°ã°ã£ã¦ã³ããããã®ãããå æ¸ã ããã®ã§Vimã®CtrlPã§é¸æãã¦å
¥åã§ããããã«ãã¦ã¿ãã
extensionã®ä½ãæ¹ãããããããªãã£ãã®ã§mattnããã®extensionããã¯ãåèã«ããã
https://github.com/pasela/ctrlp-cdnjs
Retinaãªãããªã®ãLICEcapã§ãã£ããã£ããã¨æ»²ãã ã¿ããã«ãªãããã£ã¨ç¶ºéºã«æ®ãæ¹æ³ãªãããªï¼
使ãæ¹
ãã®extensionã¯ãã¡ã¤ã«ãéãããããããã§ã¯ãªãã®ã§ãã¡ãã£ã¨è¡åæªãã¨æãã¤ã¤ã以ä¸ã®ããã«å²ãå½ã¦ãå¤ãã¦ããã
ãã¼ | åä½ |
---|---|
Enter | URLãæ¿å ¥ãã |
Ctrl+T | scriptã¿ã°ï¼cssã®å ´åã¯linkã¿ã°ï¼ãæ¿å ¥ãã |
Ctrl+S | URLã¹ãã¼ã ãhttpâhttpsâscheme-lessã¨åãæ¿ãã |
Ctrl+V | cdnjs.comä¸ã®ã©ã¤ãã©ãªãã¼ã¸ããã©ã¦ã¶ã§éã(è¦open-browser.vim) |
æ¿å
¥ãããURLã®ã¹ãã¼ã ã¯ããã©ã«ãã§ã¯http:ã«ãªã£ã¦ã¦ãCtrl+Sãæ¼ããã¨ã«https:ãscheme-less(//example.comã¿ãããªãã¤)ã¨ãã¼ãã¼ãããã
è¦å´ããç¹
jquery-ãªãã¡ããããã£ãå¤ãã¦ããã ã®jqueryãé¸æã§ããªãã
CtrlPã¯è©²å½ããåè£ã®ãã¡ä¸é¨ãããªã¹ãã«è¡¨ç¤ºãããªãã®ã§ã
jquery-gamequery (v0.7.0) jquery-color (v2.1.2) jquery-easing (v1.3) jquery-footable (v0.1.0) jquery-browser (v0.0.6)
ã¿ããã«ãªã£ã¡ãã£ã¦jqueryãç»é¢å
ã«åºã¦ããªãã
ãã¼ã¸ã§ã³ã¾ã§æå®ããã°ããããããã©ããã¼ã¸ã§ã³ã¨ãç¥ãããã
æ£è¦è¡¨ç¾ã¢ã¼ãã«ããã°ãããå¯è½ã ãã©é¢åããããã¦ã¼ã¶ã«å§ããããã®ãæ°ã«å
¥ããªãã
g:ctrlp_match_funcã§ãããã³ã°å¦çããããã¨ããã®ãèãããã©ããããã¦ã¼ã¶å´ã§ã°ãã¼ãã«ã«è¨å®ããæ©è½ãªã®ã§ãã¡ã
ã§ããã¾ã解決æ¹æ³ãæµ®ãã°ãªãã£ããã ãã©ãã¨ãããããªã¹ããã½ã¼ããã¦ãããã¨ã§èª¤éåãã¦ã¿ãã
åè£ã¯ãªã¹ãé ã«åºã¦ããã¿ãããªã®ã§ãã½ã¼ããã¦jqueryãå
é ã«æ¥ãããã«ãã¦ããã°jqueryã¨å
¥åããæç¹ã§ã¨ããããjqueryãè¿ãä½ç½®ã«æ¥ãã
extensionæ¯ã«ãããã³ã°é¢æ°ãå®ç¾©ã§ããããåæ¹ä¸è´ã§ãããã³ã°ã§ããã°ããã£ãããã
ToDo
ã©ã¤ãã©ãªã®ãã¼ã¸ã§ã³ãé¸ã¹ãããã«ããã
cdnjs.comã«ã¯éå»ã®ãã¼ã¸ã§ã³ãªã©ãããã®ã§ãç¹å®ã®ãã¼ã¸ã§ã³ãæå®ã§ããããã«ãªãã¨ãããããããªãã¨æã£ãã®ã ãããã¾ãã¤ã³ã¿ã¼ãã§ã¤ã¹ãæãã¤ããªãã£ãã
å
¨ãã¼ã¸ã§ã³ãåè£ã«ä¸¦ã¹ãã¨é¬±é¶ããããåè¿°ã®è¡¨ç¤ºæ°åé¡ãããã®ã§çµããããªãã
ãã¼ã¸ã§ã³çµãè¾¼ã¿ç¨ã®CtrlPå¼ã³åºãã«ç¹ãã¨ããã®ãèãããã©ãã§ããã®ãããããªããå¾®å¦ãªæããããã®ã§è©¦ãã¦ãªãã
è¤æ°ãã¡ã¤ã«åé²ããã¦ãå ´åã«å¯¾å¿ããã
ã©ã¤ãã©ãªã«ãã£ã¦ã¯è¤æ°ãã¡ã¤ã«ã ã£ãã.jsã¨.cssãã»ããã«ãªã£ã¦ããã®ãªã©ãããã®ã§ããã®ã¸ããã¾ã¨ãã¦æ¿å
¥ã§ãããããã¨ãããªã¨æã£ãã
ãããminimizeãã¦ãããã¤ã¨ããã§ãªããã¤ã¨ãã.mapã¨ããcsså
ã§ä½¿ã£ã¦ãç»åãã¡ã¤ã«ã ã¨ããæ··ãã£ã¦ãããã¦ãã©ããå¿
è¦ãªãã¡ã¤ã«ãå¤å¥ã§ããªãã£ãã®ã§è«¦ããã
ããã¦ä»£ããã«Ctrl+Vã§ã©ã¤ãã©ãªã®è©³ç´°ãã¼ã¸ãéããããã«ãããããã§å¿
è¦ãªãã¤ã¯ã³ãã¼ãã¦ããããã¨ããéãã
è¤æ°é¸æãã¦ä¸æ¬æ¿å ¥ããã
ä¾ãã°jqueryã¨jquery-uiãé¸æãã¦ã¾ã¨ãã¦æ¿å
¥ã¨ããããã£ãã
opmulã¨ãããªãã·ã§ã³ãæå®ããã¨CtrlPæ¨æºã®ãã¡ã¤ã«é¸æã¿ããã«Ctrl-Zã§è¤æ°é¸æã§ããã®ã¯ããã£ããã ãã©ããã³ããªã³ã°æ¹æ³ãããããªãã£ãã
ã©ã¤ãã©ãªæ å ±ããã£ãã·ã¥ããã
æ¯åcdnjs.comã«ã伺ãããã®ããããªã®ã§ãã£ãã·ã¥ãããã£ããã ãã©ãCtrlPã®ãã£ãã·ã¥ã®ä»çµã¿ãããããããªãã£ãããF5æ¼ããæã®ãã³ããªã³ã°ãããããªãã£ããç¬èªã«å®è£ ãããããªãï¼
èªåãããããã£ã¦ãªãã ããããããªããã©ãã©ããçµã¿è¾¼ã¿æ©è½ã§ã¯ä½¿ãããã©extensionã§ã¯ä½¿ããªãæ©è½ã¨ãããã£ã½ãã