vmail 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/vmail.vim +7 -9
  2. data/lib/vmail/version.rb +1 -1
  3. metadata +2 -2
@@ -534,25 +534,22 @@ function! s:compose_reply(all)
534
534
  endif
535
535
  call s:open_compose_window(command)
536
536
  " cursor after headers
537
- normal }
538
- normal o
537
+ normal 1G}
539
538
  endfunction
540
539
 
541
540
  function! s:compose_message()
542
541
  let command = s:new_message_template_command
543
542
  call s:open_compose_window(command)
544
543
  " position cursor after to:
545
- call search("^to:")
546
- normal $
547
- call feedkeys("a")
544
+ " call search("^to:")
545
+ " normal A
548
546
  endfunction
549
547
 
550
548
  function! s:compose_forward()
551
549
  let command = s:forward_template_command . s:current_uid
552
550
  call s:open_compose_window(command)
553
- call search("^to:")
554
- normal $
555
- call feedkeys("a")
551
+ " call search("^to:")
552
+ " normal A
556
553
  endfunction
557
554
 
558
555
  func! s:open_compose_window(command)
@@ -566,9 +563,9 @@ func! s:open_compose_window(command)
566
563
  1,$delete
567
564
  put! =res
568
565
  call feedkeys("\<cr>")
569
- normal 1G
570
566
  call s:compose_window_mappings()
571
567
  setlocal completefunc=CompleteContact
568
+ normal 1G
572
569
  endfunc
573
570
 
574
571
  func! s:turn_into_compose_window()
@@ -718,6 +715,7 @@ func! s:message_list_window_mappings()
718
715
  noremap <silent> <buffer> <Leader>c :call <SID>compose_message()<CR>
719
716
  noremap <silent> <buffer> <Leader>r :call <SID>show_message()<cr>:call <SID>compose_reply(0)<CR>
720
717
  noremap <silent> <buffer> <Leader>a :call <SID>show_message()<cr>:call <SID>compose_reply(1)<CR>
718
+ noremap <silent> <buffer> <Leader>f :call <SID>show_message()<cr>:call <SID>compose_forward()<CR><cr>
721
719
  noremap <silent> <buffer> <c-j> :call <SID>show_next_message_in_list()<cr>
722
720
  noremap <silent> <buffer> <c-k> :call <SID>show_previous_message_in_list()<cr>
723
721
  nnoremap <silent> <buffer> <Space> :call <SID>maximize_window()<cr>
@@ -1,3 +1,3 @@
1
1
  module Vmail
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 0
9
- version: 0.2.0
8
+ - 1
9
+ version: 0.2.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi