goog 0.2.5 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/goog +1 -1
- data/lib/goog.rb +1 -1
- data/plugin/goog.vim +3 -4
- metadata +2 -2
data/bin/goog
CHANGED
|
@@ -131,7 +131,7 @@ links = []
|
|
|
131
131
|
["#{number}. #{title}", excerpt, link].compact
|
|
132
132
|
end
|
|
133
133
|
$stdout.puts res
|
|
134
|
-
$stdout.puts
|
|
134
|
+
$stdout.puts unless options[:interactive]
|
|
135
135
|
if options[:expand]
|
|
136
136
|
$stderr.puts "Fetching #{title}: #{link}"
|
|
137
137
|
puts "#{title}: #{link}"
|
data/lib/goog.rb
CHANGED
data/plugin/goog.vim
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
" License: MIT License (c) 2012 Daniel Choi
|
|
5
5
|
|
|
6
6
|
if exists('g:GoogLoaded')
|
|
7
|
-
finish
|
|
7
|
+
" finish
|
|
8
8
|
endif
|
|
9
9
|
let g:GoogLoaded = 1
|
|
10
10
|
|
|
@@ -77,13 +77,12 @@ func! s:run_Goog_search(query)
|
|
|
77
77
|
let g:Goog_running_in_vim = 1
|
|
78
78
|
if !executable("goog")
|
|
79
79
|
echom "You don't have goog installed. Please gem install goog and try again."
|
|
80
|
-
finish
|
|
81
80
|
endif
|
|
82
81
|
let res=system("goog ".shellescape(a:query))
|
|
83
|
-
exec "
|
|
82
|
+
exec "new ".tempname()
|
|
83
|
+
silent! put! =res
|
|
84
84
|
silent! put! =res
|
|
85
85
|
silent! 1put! ='query: 'query
|
|
86
|
-
silent! 2put! =''
|
|
87
86
|
setlocal buftype=nofile
|
|
88
87
|
normal 1G
|
|
89
88
|
call g:Goog_set_up_search_results_buffer()
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: goog
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.7
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-05-
|
|
12
|
+
date: 2012-05-25 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: nokogiri
|