<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dotvim/bundle/github-url/autoload, branch master</title>
<subtitle>My vim configuration</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/dotvim/'/>
<entry>
<title>github-url: Fix URL generation when `:pwd` is below repository root</title>
<updated>2019-09-10T23:44:00+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2019-09-10T23:20:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/dotvim/commit/?id=cfebd1313557a47730a78d562207998da1451c76'/>
<id>cfebd1313557a47730a78d562207998da1451c76</id>
<content type='text'>
If the `:pwd` was a subdirectory of the repository root, the path in the
constructed GitHub URL would not include any subdirectories up to and
including the current working directory. This created an incorrect path
in the URL, resulting in a 404.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If the `:pwd` was a subdirectory of the repository root, the path in the
constructed GitHub URL would not include any subdirectories up to and
including the current working directory. This created an incorrect path
in the URL, resulting in a 404.
</pre>
</div>
</content>
</entry>
<entry>
<title>github-url: Copy the URL to the clipboard in addition to printing it</title>
<updated>2018-04-05T23:40:13+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-04-05T23:40:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/dotvim/commit/?id=4918150bb463678b1a5eebfe0b8138d4cc7fb82a'/>
<id>4918150bb463678b1a5eebfe0b8138d4cc7fb82a</id>
<content type='text'>
Previously all we did was `echo` the generated URL to the command line.
This was mainly for debugging purposes, but it strikes me that this
would be nice to keep so that users can validate that the correct URL
was generated.

In addition to doing this, though, we need to provide an easy way to
send that URL string into other programs like chat or an input field in
a web browser. Copy the URL to the Mac OS X clipboard to make it easier
to share.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously all we did was `echo` the generated URL to the command line.
This was mainly for debugging purposes, but it strikes me that this
would be nice to keep so that users can validate that the correct URL
was generated.

In addition to doing this, though, we need to provide an easy way to
send that URL string into other programs like chat or an input field in
a web browser. Copy the URL to the Mac OS X clipboard to make it easier
to share.
</pre>
</div>
</content>
</entry>
<entry>
<title>github-url: Add `--no-patch` to `git show` command</title>
<updated>2018-04-05T23:35:26+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-04-05T23:35:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/dotvim/commit/?id=bcb1336bd008efde95daae0599a656ca67c2d94f'/>
<id>bcb1336bd008efde95daae0599a656ca67c2d94f</id>
<content type='text'>
If there's a diff in the index, that will get included in the output of
this command, meaning that just after the SHA, there will be a
multi-line diff string that completely messes up the constructed URL.

Use the `--no-patch` flag to suppress diff output.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If there's a diff in the index, that will get included in the output of
this command, meaning that just after the SHA, there will be a
multi-line diff string that completely messes up the constructed URL.

Use the `--no-patch` flag to suppress diff output.
</pre>
</div>
</content>
</entry>
<entry>
<title>github-url: Move functions into `autoload`</title>
<updated>2018-04-05T23:33:55+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-04-05T23:33:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/dotvim/commit/?id=2e3d5630df8ce9ffacc9f03c5f7ec5327f0b9c59'/>
<id>2e3d5630df8ce9ffacc9f03c5f7ec5327f0b9c59</id>
<content type='text'>
Improve performance by eliminating the functions from the `plugin` file.

Also introduces a new `github_url#GitHubURL()` function that serves as
an entry point into the plugin.

Add a `g:loaded_github_url` check to prevent plugin re-sourcing and be a
good Vim citizen.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Improve performance by eliminating the functions from the `plugin` file.

Also introduces a new `github_url#GitHubURL()` function that serves as
an entry point into the plugin.

Add a `g:loaded_github_url` check to prevent plugin re-sourcing and be a
good Vim citizen.
</pre>
</div>
</content>
</entry>
</feed>
