vnews 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -197,7 +197,9 @@ You can use `:VND` as an abbreviation for `:VNDelete`.
197
197
  ## Opening webpages and hyperlinks
198
198
 
199
199
  * `,o` opens the next web hyperlink on or after the cursor in your default external web browser
200
- * `,h` opens the web page that the feed item is linked to
200
+ * `,O` opens the web hyperlink under the cursor in a vertical split window
201
+ * `,h` opens the web page that the feed item is linked to in your default external web browser
202
+ * `,H` opens the web page that the feed item is linked in a vertical split window
201
203
 
202
204
  Web hyperlinks are the URLs that begin with http:// or https://.
203
205
 
data/lib/vnews.vim CHANGED
@@ -105,6 +105,10 @@ function! s:create_item_window()
105
105
  " opens the linked item
106
106
  nnoremap <buffer> <leader>h :normal Gkk<CR>:call <SID>find_next_href_and_open()<CR>
107
107
  call s:common_mappings()
108
+
109
+ " for netrw vertical split
110
+ nnoremap ,O :exec "silent botright vsplit ". matchstr(expand("<cWORD>"), 'https\?:[^ >)\]]\+')<cr>
111
+ nnoremap ,H :normal Ckk<CR>:exec "silent botright vsplit ". matchstr(expand("<cWORD>"), 'https\?:[^ >)\]]\+')<cr>
108
112
  close
109
113
  endfunction
110
114
 
data/lib/vnews/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  class Vnews
2
- VERSION = '0.2.5'
2
+ VERSION = '0.2.6'
3
3
  end
4
4
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 5
9
- version: 0.2.5
8
+ - 6
9
+ version: 0.2.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi