vnews 0.3.0 → 0.3.1

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/README.markdown CHANGED
@@ -245,6 +245,22 @@ current feed, type `:%VNConcat`.
245
245
 
246
246
  See `:help 10.3` to learn how to specify command line ranges.
247
247
 
248
+ You can pipe out the output of `:VNConcat` to `lpr` for printing:
249
+
250
+ :w !lpr -o cpi=12 -o lpi=8 -o page-right=36 -o page-left=42 -o page-top=36 -o page-bottom=48
251
+
252
+ Of course, it would save you typing to make a custom `lprcustom` script
253
+ like so:
254
+
255
+ #!/bin/bash
256
+ lpr -o cpi=12 -o lpi=8 -o page-right=36 -o page-left=42 -o page-top=36 -o page-bottom=48 $1
257
+
258
+ put it on your PATH. Then you could run
259
+
260
+ :w !lprcustom
261
+
262
+
263
+
248
264
 
249
265
 
250
266
  ## Updating your feeds
data/lib/vnews.vim CHANGED
@@ -84,7 +84,6 @@ function! s:create_list_window()
84
84
  command! -bar -nargs=0 -range VNConcat :<line1>,<line2>call s:cat_items()
85
85
  nnoremap <silent> <buffer> <leader>x :%VNConcat<CR>
86
86
 
87
-
88
87
  call s:common_mappings()
89
88
  if !exists("g:VnewsStarredColor")
90
89
  let g:VnewsStarredColor = "ctermfg=green guifg=green guibg=grey"
@@ -157,7 +156,7 @@ endfunction
157
156
 
158
157
  function! CompleteFunction(findstart, base)
159
158
  if a:findstart
160
- let start = len(s:prompt) + 1
159
+ let start = len(s:prompt)
161
160
  return start
162
161
  else
163
162
  let base = s:trimString(a:base)
data/lib/vnews/config.rb CHANGED
@@ -88,6 +88,7 @@ class Vnews
88
88
  feeds2 = []
89
89
  pool = ThreadPool.new(10)
90
90
  puts "Using thread pool size of 10"
91
+ # TODO sometimes feeds are downloaded twice;
91
92
  ff.each do |feed_url, folder|
92
93
  pool.process do
93
94
  feeds2 << Vnews::Feed.fetch_feed(feed_url, folder)
data/lib/vnews/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  class Vnews
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
4
4
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 0
9
- version: 0.3.0
8
+ - 1
9
+ version: 0.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi