vmail 0.2.6 → 0.2.7

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/NOTES CHANGED
@@ -576,3 +576,5 @@ todo
576
576
 
577
577
  - put command line parsing under a test harness
578
578
 
579
+ - ,k ,j should accept a number so you can jump to a message further away
580
+
@@ -180,6 +180,9 @@ message list, and type `,b`. You'll be prompted to select the target mailbox.
180
180
  To copy a message to another mailbox, put the cursor on the message in the
181
181
  message list, and type `,B`. You'll be prompted to select the target mailbox.
182
182
 
183
+ If you type in the name of a target mailbox that doesn't exist yet, vmail will
184
+ create it for you before performing a move or copy.
185
+
183
186
  ## Composing messages
184
187
 
185
188
  To start writing a new a email message, type `,c`. That's a comma followed by
@@ -7,6 +7,8 @@ method = ARGV.shift
7
7
  if method == 'deliver' || method == 'save_draft'
8
8
  text = STDIN.read
9
9
  puts server.send(method, text)
10
+ elsif method == 'show_help'
11
+ puts File.expand_path("../../README.markdown", __FILE__)
10
12
  else
11
13
  puts server.send(method, *ARGV)
12
14
  end
@@ -25,6 +25,8 @@ let s:deliver_command = s:client_script . "deliver "
25
25
  let s:save_draft_command = s:client_script . "save_draft "
26
26
  let s:save_attachments_command = s:client_script . "save_attachments "
27
27
  let s:open_html_part_command = s:client_script . "open_html_part "
28
+ let s:show_help_command = s:client_script . "show_help"
29
+
28
30
  let s:message_bufname = "MessageWindow"
29
31
 
30
32
  function! VmailStatusLine()
@@ -660,6 +662,17 @@ func! s:open_href()
660
662
  exec command
661
663
  endfunc
662
664
 
665
+ " --------------------------------------------------------------------------------
666
+ " HELP
667
+ func! s:show_help()
668
+ let helpfile = system(s:show_help_command)
669
+ exec "split " . helpfile
670
+ setlocal nomodifiable
671
+ setlocal buftype=nofile
672
+ nnoremap <silent> <buffer> q :close<cr>
673
+ endfunc
674
+
675
+
663
676
  " --------------------------------------------------------------------------------
664
677
  " MAPPINGS
665
678
 
@@ -735,6 +748,7 @@ func! s:global_mappings()
735
748
  nnoremap <silent> <leader>vs :call <SID>send_message()<CR>
736
749
  nnoremap <silent> <leader>vd :call <SID>save_draft()<CR>
737
750
  noremap <silent> <leader>o :call <SID>open_href()<cr>
751
+ noremap <silent> <leader>? :call <SID>show_help()<cr>
738
752
  endfunc
739
753
 
740
754
  "TODO see if using LocalLeader and maplocalleader makes more sense
@@ -1,3 +1,3 @@
1
1
  module Vmail
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 6
9
- version: 0.2.6
8
+ - 7
9
+ version: 0.2.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi