GitHub ã®ã¢ã¬ã³ã¬ãè£å®ãã github-complete.vim ãã¤ããã¾ãã
GitHub ã®ã¦ã¼ã¶åããªãã¸ããªåï¼çµµæåï¼ãªã³ã¯URLã GitHub API ã使ã£ã¦è£å®ãã github-complete.vim ãã¤ããã¾ããï¼
https://github.com/rhysd/github-complete.vim
Vim ã§ã¯ Markdown ç·¨éä¸ã®ãªã ãè£å®ã¯ HTML ã®ãã®ã«ãªã£ã¦ãã¦ä½¿ããªãã®ã§ï¼ã©ãããªã GitHub ã®ã¢ã¬ã³ã¬ãè£å®ã§ããã°ä¾¿å©ã ãªã¨æã£ã¦ã¤ãã£ã¦ã¿ã¾ããï¼ 5ã«æåãããã«8å²æ¹ã§ãã¦ãããã§ããï¼æå¾ã®ãªã³ã¯ URL è£å®ãå®æãããã«æ¾ç½®ãã¦ãã¾ã£ã¦ããã®ã§ï¼yokohama.vim #6 ã§å®æããã¾ããï¼ä½¿ããã®ã¯ä¸è¨ã®5種é¡ã®è£å®ã§ãï¼
- çµµæåè£å®
- ã¦ã¼ã¶åè£å®
- ãªãã¸ããªåè£å®
- issue çªå·è£å®
- ãªã³ã¯URLè£å®
markdown
ããã³ gitcommit
ãã¡ã¤ã«ã¿ã¤ãã§ã®ãªã ãè£å®ã¨ãã¦å®è£
ããã¦ãã¾ãã®ã§ï¼Markdown ãªãã¡ã¤ã«ã git ã®ã³ãããã¡ãã»ã¼ã¸ã®ç·¨éä¸ã« <C-x><C-o>
ï¼Ctrl + x â Ctrl + oï¼ã§è£å®ãçºåã§ãã¾ãï¼
ã¾ãï¼ä¸å¿ neocomplete.vim ã®ã½ã¼ã¹ãå梱ããã¦ããï¼g:github_complete_enable_neocomplete
ã« 1
ãã»ãããããã¨ã§ä½¿ãã¾ããï¼èªåè£å®ã§å¤§éã® API å¼ã³åºããçºçããã¨æãã®ã§å¼ã³åºãå¶éã«ã²ã£ãããæããããã¾ãï¼
ãã£ãããªã®ã§åè£å®ãç°¡åã«ç´¹ä»ãã¾ãï¼
çµµæåè£å®
":" ã®å¾ã«ã«ã¼ã½ã«ãããæã«è£å®ã§ãã¾ãï¼GitHub ã®çµµæåãè£å®ã§ãã¾ãï¼ã¹ã¯ãªã¼ã³ã·ã§ããã§ã¯çµµæåã表示ã§ãã¦ãã¾ããï¼ãã㯠Terminal.app ã対å¿ãã¦ããããã§ï¼ãã以å¤ã®ç°å¢ã§ã¯è¡¨ç¤ºã§ãã¾ããï¼ï¼ç¾ç¶ Vim ã®å¶éï¼gVim ã¯ãã©ã³ãè¨å®ã§ä½ã¨ããªãï¼ï¼
ãã ï¼ããã ãã 㨠OS X + ã¿ã¼ããã«ã§ãªãã¨è£å®åè£ãåããã«ããã£ãã®ã§ï¼æ¥æ¬èªã§ã®èª¬æãé å¼µã£ã¦è¿½å ãã¾ããï¼g:github_complete_emoji_japanese_workaround
ã 1 ã«ã»ããããã¨ï¼ãã®ããã«åè£ã«æ¥æ¬èªã®èª¬æãä»ãã¾ãï¼
ã¦ã¼ã¶åè£å®
"@ä½ã" ã "github.com/ä½ã" ã®å¾ãã«ã«ã¼ã½ã«ãããæã« "ä½ã" ãã¦ã¼ã¶åã¨ãã¦æ¤ç´¢ãã¦è£å®ã§ãã¾ãï¼åã®ããã«ãã¤ãã¿ã¼ã¨ GitHub ã§ã¦ã¼ã¶åãéãå ´åãªã©ï¼ã¦ã¼ã¶åæãåºããªãæã«ä¾¿å©ã§ãï¼
ãªãã¸ããªåè£å®
"ã¦ã¼ã¶å/ä½ã" ã®å¾ãã«ã«ã¼ã½ã«ãããæã« "ä½ã" ããªãã¸ããªåã¨ãã¦è£å®ãã¾ãï¼ä¸ã®ã¦ã¼ã¶åã¨åããã¦ï¼GitHub ã® URL ãã¦ã¼ã¶åï¼ãªãã¸ããªåã¨é ã«è£å®ãããã¨ã§ãªãã¸ããªåã¨ãè¦ãã¦ããªãã¦ããã©ã¦ã¶ãéãã¦ç¢ºèªããå¿ è¦ãç¡ããªãã¾ãï¼
Issue çªå·è£å®
"#çªå·" ã§åç §ã§ãã issue/pull request çªå·ã§ããï¼æ´»çºãªãªãã¸ããªã ã¨ããå¿ãã¾ãï¼ããã§ï¼"#" ã®å¾ãã«ã«ã¼ã½ã«ãããæã«è£å®ã§ããããã«ãã¦ã¿ã¾ããï¼çªå·ã¨ä¸ç·ã« issue ã®ã¿ã¤ãã«ã表示ããã¾ãï¼ ã³ããããã issue ãéããããã«ã¿ã¤ãã«ã« Close #1 ã¨ãæ¸ããã¨ãå¤ããã¨æãã¾ããï¼issue çªå·ãå¿ãã¦ããã®å ´ã§è£å®ã§ããããã«ãªãã¾ãï¼
ãªã³ã¯URLè£å®
[ä½ã](
ã®å¾ãã«ã«ã¼ã½ã«ãããã¨ãã« "ä½ã" 㧠GitHub ãæ¤ç´¢ããçµæã® URL ãåè£ã¨ãã¦è£å®ã§ãã¾ãï¼
è¨äºå
ãã³ãããã¡ãã»ã¼ã¸ã§ä½¿ã£ãã©ã¤ãã©ãªãç´¹ä»ããããã¼ã«ãªã©ã®ãªãã¸ããªã¸ã®ãªã³ã¯ãæ¸ãæã«ï¼ãªã³ã¯ã¿ã¤ãã«ã«ãã®ã©ã¤ãã©ãªããã¼ã«ã®ååãæ¸ãã¦ããã° URL ãåãããªãã¦ãè£å®ã§ãã¾ãï¼ç¹ã«ä½è
åã¯ããå¿ãã¾ããâ¦ï¼ï¼
Vim é¢é£ã®è¨äºãæ¸ãæã« [ãã©ã°ã¤ã³å](ãã©ã°ã¤ã³ URL)
ã¨ããã使ãã®ã§ï¼ããã§éå®ãã¦ãã¾ãï¼
ã¾ã¨ã
GitHub ã®ã¢ã¬ã³ã¬ãè£å®ã§ãã github-complete.vim ãã¤ãã£ã¦ã¿ã¾ããï¼
ä»ãã®è¨äºãæ¸ãã¦ããæããªã³ã¯è£å®ãªã©ã使ã£ã¦ãã¾ããï¼è£å®é度ã1ã2ç§ç¨åº¦ã§æåè£å®ã§ä½¿ãåã«ã¯ããªãè¯ãæãã§ãï¼ãããããããã°ã試ããã ããï¼