<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: James Carr</title>
    <description>The latest articles on DEV Community by James Carr (@jamescarr).</description>
    <link>https://dev.to/jamescarr</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F452726%2F38b8dd0a-6bfa-4f1a-8a65-28bcef62fd64.jpeg</url>
      <title>DEV Community: James Carr</title>
      <link>https://dev.to/jamescarr</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jamescarr"/>
    <language>en</language>
    <item>
      <title>Generating a Github Link Within Vim</title>
      <dc:creator>James Carr</dc:creator>
      <pubDate>Wed, 16 Sep 2020 15:46:12 +0000</pubDate>
      <link>https://dev.to/jamescarr/generating-a-github-link-within-vim-4hfp</link>
      <guid>https://dev.to/jamescarr/generating-a-github-link-within-vim-4hfp</guid>
      <description>&lt;p&gt;I'm always on the hunt for ways to improve efficiency and reduce the amount of mouse movements and clicks I have to do. One task I find can come up from time to time is grabbing a link from github to a specific line or section of code to either share in a ticket or ask a question about. I despise going to github for this so took a quick look to generate these quickly.&lt;/p&gt;

&lt;p&gt;A quick search brought up &lt;a href="https://github.com/knsh14/vim-github-link"&gt;knsh14/vim-github-link&lt;/a&gt; which seemed to do exactly what I needed. This plugin adds three useful commands:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;GetCommitLink&lt;/code&gt;: commit which most recently modified the current file (permalink)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;GetCurrentBranchLink&lt;/code&gt;: active branch name&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;GetCurrentCommitLink&lt;/code&gt;: most recent commit - URL will 404 if you haven't pushed it to the remote&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What is really nice is that it copies the link in my clipboard, so I can just run &lt;code&gt;:GetCommitLink&lt;/code&gt; (or map it to a shortcut key) and paste directly wherever I need to share it!&lt;/p&gt;

</description>
      <category>vim</category>
      <category>github</category>
      <category>productivity</category>
      <category>git</category>
    </item>
  </channel>
</rss>
