<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -6,7 +6,7 @@ require 'page'
   require_gem_with_feedback gem
 end
 
-GIT_REPO = ARGV[0] || ENV['HOME'] + '/wiki'
+GIT_REPO = ENV['HOME'] + '/wiki'
 HOMEPAGE = 'home'
 
 unless File.exists?(GIT_REPO) &amp;&amp; File.directory?(GIT_REPO)</diff>
      <filename>environment.rb</filename>
    </modified>
    <modified>
      <diff>@@ -11,7 +11,6 @@ get '/a/list' do
 end
 
 get '/:page' do
-  @page_url = page_url
   @page = Page.new(params[:page])
   @page.tracked? ? show(:show, @page.name) : redirect('/e/' + @page.name)
 end
@@ -137,8 +136,8 @@ get '/a/search' do
   show :search, 'Search Results'
 end
 
-def page_url
-  &quot;#{request.env[&quot;rack.url_scheme&quot;]}://#{request.env[&quot;HTTP_HOST&quot;]}#{request.env[&quot;REQUEST_PATH&quot;]}&quot;
+def page_url(page)
+  &quot;#{request.env[&quot;rack.url_scheme&quot;]}://#{request.env[&quot;HTTP_HOST&quot;]}/#{page}&quot;
 end
 
 private</diff>
      <filename>git-wiki.rb</filename>
    </modified>
    <modified>
      <diff>@@ -25,5 +25,5 @@ function distance_of_time_in_words(to, from) {
 }
 
 function clearField(field_id) {
- document.getElementById(field_id).value = &quot;&quot;;
+  document.getElementById(field_id).value = &quot;&quot;;
 }
\ No newline at end of file</diff>
      <filename>public/app.js</filename>
    </modified>
    <modified>
      <diff>@@ -63,7 +63,6 @@ ul {
 
 .content {
   margin-left: 35%;
-  margin-top: -.55em;
   padding: 0 10px 2px 10px;
 }
 
@@ -106,6 +105,15 @@ ul {
 
 .right { text-align: right; }
 
+.search_result {
+  margin-bottom: 15px;
+}
+
+.search_result .match {
+  line-height: 1em;
+  margin-bottom: 15px;
+}
+
 .submit {
   font-size: large;
   font-weight: bold;</diff>
      <filename>public/style.css</filename>
    </modified>
    <modified>
      <diff>@@ -9,7 +9,8 @@
         &lt;li&gt;
           &lt;strong&gt;&lt;a href=&quot;/&lt;%= page.name %&gt;&quot;&gt;&lt;%= page.name %&gt;&lt;/a&gt;&lt;/strong&gt; &amp;mdash; 
           &lt;a href=&quot;/e/&lt;%= page.name %&gt;&quot;&gt;edit&lt;/a&gt; &amp;bull;
-          &lt;a href=&quot;/h/&lt;%= page.name %&gt;&quot;&gt;history&lt;/a&gt;
+          &lt;a href=&quot;/h/&lt;%= page.name %&gt;&quot;&gt;history&lt;/a&gt; &amp;bull;
+          &lt;a href=&quot;javascript:var q; if (window.getSelection) q=window.getSelection(); else if (document.selection) q=document.selection.createRange().text; if (q != '') location.href='&lt;%= page_url(page.name) %&gt;/append?text='+encodeURIComponent(q+' (from &amp;quot;'+document.title+'&amp;quot;:'+location.href+')'); else location.href='&lt;%= page_url(page.name) %&gt;/append?text='+encodeURIComponent('&amp;quot;'+document.title+'&amp;quot;:'+location.href);&quot;&gt;bookmarklet&lt;/a&gt;
         &lt;/li&gt;  
       &lt;% end %&gt;
     &lt;/ul&gt;</diff>
      <filename>views/list.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,32 +1,29 @@
 &lt;% if @grep.empty? %&gt;
   &lt;h1&gt;No pages match&lt;/h1&gt;
 &lt;% else %&gt;
-  &lt;h1&gt;All matches for '&lt;%= @search %&gt;'&lt;/h1&gt;
+  &lt;h1&gt;Results for '&lt;%= @search %&gt;'&lt;/h1&gt;
 &lt;% end %&gt;
 
 &lt;div class=&quot;sub_nav&quot;&gt;
-  Details go here.
+  &lt;div class=&quot;details&quot;&gt;
+    &lt;%= @grep.size %&gt; pages contain match&lt;br /&gt;
+    &lt;%= @grep.map { |g| g[1].size }.inject { |acc, n| acc + n } %&gt; results
+  &lt;/div&gt;
 &lt;/div&gt;
 
 &lt;div class=&quot;content&quot;&gt;
-  &lt;br/&gt;
-  &lt;table width=&quot;100%&quot;&gt;
   &lt;% @grep.each do |sha, arr_match| %&gt;
-    &lt;% (sha, file) = sha.split(':') %&gt;
-    &lt;tr&gt;
-      &lt;td valign=&quot;top&quot;&gt;&lt;%= $repo.object(sha).name %&gt;&lt;/td&gt;
-      &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;/&lt;%= file %&gt;&quot;&gt;&lt;%= file %&gt;&lt;/a&gt;&lt;/td&gt;
-      &lt;td&gt;&lt;table&gt;
-      &lt;% arr_match.each do |line, match| %&gt;
-      &lt;tr&gt;
-        &lt;td&gt;line &lt;%= line %&gt;&lt;/td&gt;
-        &lt;td&gt;&lt;%= match %&gt;&lt;/td&gt;
-       &lt;/tr&gt;
-      &lt;% end %&gt;
-      &lt;/table&gt;&lt;/td&gt;
-    &lt;/tr&gt;
+    &lt;div class=&quot;search_result&quot;&gt;
+      &lt;% (sha, file) = sha.split(':') %&gt;
+        &lt;% arr_match.each do |line, match| %&gt;
+          &lt;div class=&quot;match&quot;&gt;
+            &lt;tt&gt;&lt;%= match %&gt;&lt;/tt&gt;
+            &lt;br /&gt;
+            &amp;mdash; &lt;a href=&quot;/&lt;%= file %&gt;&quot;&gt;&lt;%= file %&gt;&lt;/a&gt;, line &lt;%= line %&gt; (&lt;%= $repo.object(sha).name %&gt;)
+          &lt;/div&gt;
+        &lt;% end %&gt;
+    &lt;/div&gt;
   &lt;% end %&gt;
-  &lt;/table&gt;
 &lt;/div&gt;
 
 </diff>
      <filename>views/search.erb</filename>
    </modified>
    <modified>
      <diff>@@ -40,9 +40,7 @@
       document.write(time_ago_in_words(&lt;%= @page.updated_at.for_time_ago_in_words %&gt;) + ' ago');
     &lt;/script&gt;
     &lt;br /&gt;
-    &lt;%= $repo.current_branch %&gt; branch
-    &lt;br /&gt;
-    &lt;a href=&quot;javascript:var q; if (window.getSelection) q=window.getSelection(); else if (document.selection) q=document.selection.createRange().text; if (q != '') location.href='&lt;%= @page_url %&gt;/append?text='+encodeURIComponent(q+' (from &amp;quot;'+document.title+'&amp;quot;:'+location.href+')'); else location.href='&lt;%= @page_url %&gt;/append?text='+encodeURIComponent('&amp;quot;'+document.title+'&amp;quot;:'+location.href);&quot;&gt;append bookmarklet&lt;/a&gt;
+    &lt;%= $repo.current_branch %&gt; branch    
   &lt;/div&gt;
 &lt;/div&gt;
 </diff>
      <filename>views/show.erb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>14d211cfcdcf1c171e2bd7b469c0649bcb68acec</id>
    </parent>
  </parents>
  <author>
    <name>Alex Payne</name>
    <email>al3x@al3x.net</email>
  </author>
  <url>http://github.com/al3x/git-wiki/commit/952375327cd420439ce22c44f688a6fbd0526116</url>
  <id>952375327cd420439ce22c44f688a6fbd0526116</id>
  <committed-date>2008-03-15T01:02:34-07:00</committed-date>
  <authored-date>2008-03-15T01:02:34-07:00</authored-date>
  <message>prettier search results page</message>
  <tree>0a692a9f6d14a0c1b0a1d4ca2b66311c8ae3fcd1</tree>
  <committer>
    <name>Alex Payne</name>
    <email>al3x@al3x.net</email>
  </committer>
</commit>
