vnews 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -288,9 +288,10 @@ hour:
288
288
 
289
289
  This assumes that you installed Vnews through RVM and on Ruby 1.9.2.
290
290
 
291
+
291
292
  ## Reloading your item list
292
293
 
293
- * `,r` and `r` reloads the item list
294
+ * `,r` or `r` reloads the item list
294
295
 
295
296
  You might want to reload the item list that you're currently viewing
296
297
  without fetching updates from over the internet. There are two reasons
@@ -300,8 +301,8 @@ you may want to do this:
300
301
  session started and you want to refresh your view of the items to
301
302
  reflect the latest data in MySQL.
302
303
 
303
- * You change the width of the Vim window displaying the item list. Vnews
304
- can adjust the column widths to fit your new window width if you reload
304
+ * You changed the width of the Vim window displaying the item list. Vnews
305
+ can adjust the column widths in the item list to fit your new window width if you reload
305
306
  your item list.
306
307
 
307
308
 
data/lib/vnews.vim CHANGED
@@ -105,7 +105,8 @@ function! s:create_item_window()
105
105
  setlocal modifiable
106
106
  setlocal buftype=nofile
107
107
  let s:itembufnr = bufnr('%')
108
- nnoremap <silent> <buffer> <cr> <C-W>=<C-W>p
108
+ "nnoremap <silent> <buffer> <cr> <C-W>=<C-W>p
109
+ nnoremap <silent> <buffer> <cr> :call <SID>split_and_focus_list_window()<CR>
109
110
  nnoremap <silent> <buffer> <c-j> :call <SID>show_adjacent_item(0, "item-window")<CR>
110
111
  nnoremap <silent> <buffer> <c-k> :call <SID>show_adjacent_item(1, "item-window")<CR>
111
112
  nnoremap <silent> <buffer> <leader>j :call <SID>show_adjacent_item(0, 'item-window')<CR>
@@ -334,6 +335,11 @@ func! s:toggle_maximize_window()
334
335
  endif
335
336
  endfunc
336
337
 
338
+ " called from item window
339
+ func! s:split_and_focus_list_window()
340
+ call s:focus_window(s:listbufnr)
341
+ endfunc
342
+
337
343
  "------------------------------------------------------------------------
338
344
 
339
345
  func! s:open_href_under_cursor()
data/lib/vnews/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  class Vnews
2
- VERSION = '0.3.2'
2
+ VERSION = '0.3.3'
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
- - 2
9
- version: 0.3.2
8
+ - 3
9
+ version: 0.3.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi