vnews 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +14 -3
- data/lib/vnews.vim +4 -2
- data/lib/vnews/version.rb +1 -1
- data/vnews.gemspec +1 -1
- metadata +4 -4
data/README.markdown
CHANGED
@@ -261,6 +261,17 @@ background using `cron`.
|
|
261
261
|
If you're already in a Vnews session, you can update the current feed of
|
262
262
|
folder by pressing `u`.
|
263
263
|
|
264
|
+
|
265
|
+
## Updating your feeds with cron
|
266
|
+
|
267
|
+
This cron task will update your feeds every hour, at 1 minute past the
|
268
|
+
hour:
|
269
|
+
|
270
|
+
1 * * * * (bash -l -c 'rvm use 1.9.2 && vnews -U') > /dev/null 2>&1
|
271
|
+
|
272
|
+
This assumes that you installed Vnews through RVM and on Ruby 1.9.2.
|
273
|
+
|
274
|
+
|
264
275
|
## OPML import
|
265
276
|
|
266
277
|
If you want to import an OPML export of your feed subscriptions into
|
@@ -270,9 +281,9 @@ Vnews, use this command:
|
|
270
281
|
|
271
282
|
`[file]` is your OPML file.
|
272
283
|
|
273
|
-
You can easily import your Google Reader subscriptions this way.
|
274
|
-
|
275
|
-
subscriptions to an OPML file.
|
284
|
+
You can easily import your Google Reader subscriptions this way. Here's
|
285
|
+
[a video][export-tutorial] that shows you how to export your Google
|
286
|
+
Reader subscriptions to an OPML file.
|
276
287
|
|
277
288
|
[export-tutorial]:http://www.clipotech.com/2007/06/opml-export-in-google-reader.html
|
278
289
|
|
data/lib/vnews.vim
CHANGED
@@ -9,6 +9,7 @@ let g:VnewsLoaded = 1
|
|
9
9
|
|
10
10
|
let mapleader = ','
|
11
11
|
highlight VnewsSearchTerm ctermbg=green guibg=green
|
12
|
+
let s:http_link_pattern = 'https\?:[^ >)\]]\+'
|
12
13
|
|
13
14
|
|
14
15
|
let s:client_script = 'vnews-client '
|
@@ -267,6 +268,8 @@ func! s:show_item_under_cursor(inc_read_count)
|
|
267
268
|
silent 1delete
|
268
269
|
silent normal 1Gjk
|
269
270
|
set nomodifiable
|
271
|
+
syntax clear
|
272
|
+
exe "syn match Constant /". s:http_link_pattern . "/"
|
270
273
|
endfunc
|
271
274
|
|
272
275
|
" from message window
|
@@ -318,10 +321,9 @@ func! s:toggle_maximize_window()
|
|
318
321
|
endfunc
|
319
322
|
|
320
323
|
"------------------------------------------------------------------------
|
321
|
-
let s:http_link_pattern = 'https\?:[^ >)\]]\+'
|
322
324
|
|
323
325
|
func! s:open_href_under_cursor()
|
324
|
-
let href = expand("<cWORD>")
|
326
|
+
let href = matchstr(expand("<cWORD>") , s:http_link_pattern)
|
325
327
|
let command = g:Vnews#browser_command . " '" . href . "' "
|
326
328
|
call system(command)
|
327
329
|
echom command
|
data/lib/vnews/version.rb
CHANGED
data/vnews.gemspec
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 5
|
9
|
+
version: 0.2.5
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Daniel Choi
|
@@ -54,8 +54,8 @@ dependencies:
|
|
54
54
|
segments:
|
55
55
|
- 0
|
56
56
|
- 1
|
57
|
-
-
|
58
|
-
version: 0.1.
|
57
|
+
- 2
|
58
|
+
version: 0.1.2
|
59
59
|
type: :runtime
|
60
60
|
version_requirements: *id003
|
61
61
|
description: Read your feeds in Vim
|