URLãä»ããã·ã§ã¼ãã«ãããã¼ã®ãããã³ã°ãããããªãã
twitterã«ãã©ã¦ã¶ä¸ãããã¤ã¼ããããã¦vimperatorã®ãã©ã°ã¤ã³ã®
はてなグループ
ãå
¥ãã¦ã¿ã¾ããã
:tw {ã³ã¡ã³ã}
ããããããªã£ã¦ããã¨ä»è¦ã¦ãURLã«ã³ã¡ã³ãä»ãã¦
:tw http://d.hatena.ne.jp/zenpou/
ã¨ããããããªã£ã¦ãã¾ããã
ããããã°vimperatorã§"T"ã¨ã"O"ã¨ããã£ã¦ãæç¾å¨éãã¦ããã¼ã¸ã®URLãä»ãã¦ãããã¼ã¨
æã£ã¦mapãããã¨ããã®ã§ãããurlã£ã¦ã©ãæ¸ããã ï¼
map S :tw {url}
ã£ã¦ãã£ã¦ãå½ç¶åããªãã
ã£ã¦ãã¨ã§vimperatorã®ã½ã¼ã¹è½ã¨ãã¦ãã¦"T"ã¨ã"O"ãã©ããã£ã¦ãããã³ã°ããã¦ããè¦ã¦ãã
mappings.add([modes.NORMAL], ["O"], "Open one or more URLs, based on current location", function () { commandline.open("", "open " + util.losslessDecodeURI(buffer.URL), modes.EX); });
ã£ã¦ãã£ã¦ãâ¦â¦ã
ãã¼ããvimperatorrcã§ãããããã©mapã§ã©ãæ¸ãã°ãããããããããªãã
ã£ã¦ãã¨ã§.vimperator/plugin/ã«
mappings.add([modes.NORMAL], ["S"], "Twitter send with url ", function () { commandline.open("", "tw " + util.losslessDecodeURI(buffer.URL) + " - " + buffer.title, modes.EX); });
ãããªãæ¸ããï¼ã¤ãã§ã«ã¿ã¤ãã«ãä»ããããã«ãã¦ã¾ã)
ã¡ã³ããè¾ããåãããããã¦ãã¦ãªæããããã®ã§ãããããã°ããããã£ã¦äºç¥ã£ã¦ãæ¹ãã¾ãããæãã¦ãã ããã