vmail 0.7.3 → 0.7.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -361,6 +361,10 @@ Here are some example search queries.
361
361
  # example of date range and multiple conditions
362
362
  before 30-nov-2010 since 1-nov-2010 from prx.org
363
363
 
364
+ # search for all messages since 1-nov-2010 larger than 10k
365
+ # (note that queries with size conditions seem to take longer to return)
366
+ since 1-nov-2010 larger 10000
367
+
364
368
  Tip: When you're entering your search query, `<C-u>` clears the query line.
365
369
 
366
370
  Power-Tip: When you're at the search query prompt, `<C-f>` opens a mini-editor
data/lib/vmail.vim CHANGED
@@ -153,6 +153,9 @@ function! s:show_raw()
153
153
  endfunction
154
154
 
155
155
  function! s:focus_list_window()
156
+ if bufwinnr(s:listbufnr) == winnr() && exists("s:syntax_coloring_set")
157
+ return
158
+ end
156
159
  let winnr = bufwinnr(s:listbufnr)
157
160
  if winnr == -1
158
161
  " create window
@@ -167,12 +170,14 @@ function! s:focus_list_window()
167
170
  " colorize whole line
168
171
  syn match VmailBufferFlagged /^*.*/hs=s
169
172
  exec "hi def VmailBufferFlagged " . g:vmail_flagged_color
173
+ let s:syntax_coloring_set = 1
170
174
  endif
171
- " vertically center the cursor line
172
- " normal z.
173
- call feedkeys("\<c-l>") " prevents screen artifacts when user presses return too fast
175
+ "
176
+ " call feedkeys("\<c-l>") " prevents screen artifacts when user presses return too fast
177
+ " turn this off though, because it causes an annoying flash
174
178
  endfunction
175
179
 
180
+
176
181
  function! s:focus_message_window()
177
182
  let winnr = bufwinnr(s:message_window_bufnr)
178
183
  if winnr == -1
@@ -197,6 +202,8 @@ endfunc
197
202
 
198
203
  " gets new messages since last update
199
204
  function! s:update()
205
+ call s:focus_list_window()
206
+ redraw
200
207
  let command = s:update_command
201
208
  echo "checking for new messages. please wait..."
202
209
  let res = system(command)
@@ -207,14 +214,13 @@ function! s:update()
207
214
  setlocal nomodifiable
208
215
  write
209
216
  let num = len(split(res, '\n', ''))
210
- redraw
211
217
  call cursor(line + 1, 0)
212
218
  normal z.
213
219
  redraw
214
- echo "you have " . num . " new message" . (num == 1 ? '' : 's') . "!"
220
+ echom "you have " . num . " new message" . (num == 1 ? '' : 's') . "!"
215
221
  else
216
222
  redraw
217
- echo "no new messages"
223
+ echom "no new messages"
218
224
  endif
219
225
  endfunction
220
226
 
@@ -702,7 +708,7 @@ func! s:message_window_mappings()
702
708
  nnoremap <silent> <buffer> <Leader>b :call <SID>focus_list_window()<cr>call <SID>move_to_mailbox(0)<CR>
703
709
  nnoremap <silent> <buffer> <Leader>B :call <SID>focus_list_window()<cr>call <SID>move_to_mailbox(1)<CR>
704
710
  nnoremap <silent> <buffer> <leader>e :call <SID>focus_list_window()<cr>:call <SID>archive_messages()<cr>
705
- nnoremap <silent> <buffer> u :call <SID>focus_list_window()<cr>:call <SID>update()<CR>
711
+ nnoremap <silent> <buffer> u :call <SID>update()<CR>
706
712
  nnoremap <silent> <buffer> <Leader>m :call <SID>focus_list_window()<cr>:call <SID>mailbox_window()<CR>
707
713
  nnoremap <silent> <buffer> <Leader>A :call <SID>save_attachments()<cr>
708
714
  nnoremap <silent> <buffer> <Space> :call <SID>maximize_window()<cr>
data/lib/vmail/options.rb CHANGED
@@ -48,7 +48,7 @@ module Vmail
48
48
  begin
49
49
  opts.parse!(argv)
50
50
  if @config_file && File.exists?(@config_file)
51
- puts "Using config file #{@config_file}"
51
+ puts "using config file: #{@config_file}"
52
52
  else
53
53
  puts <<EOF
54
54
 
@@ -63,7 +63,7 @@ EOF
63
63
  puts "No contacts file found for auto-completion. See help for how to generate it."
64
64
  sleep 0.5
65
65
  else
66
- puts "Using contacts file #{@contacts_file}"
66
+ puts "using contacts file: #{@contacts_file}"
67
67
  end
68
68
 
69
69
  @config = YAML::load(File.read(@config_file))
data/lib/vmail/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Vmail
2
- VERSION = "0.7.3"
2
+ VERSION = "0.7.4"
3
3
  end
@@ -38,7 +38,7 @@
38
38
  <li><a href="https://github.com/danchoi/vmail/issues">issue tracker</a></li>
39
39
  <li><a href="https://github.com/danchoi/vmail/commits/master">commit history</a></li>
40
40
  <li><a href="https://github.com/danchoi/vmail/wiki">wiki</a></li>
41
- <li><a href="http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=vmail+vim#hl=en&tbo=1&tbs=mbl:1,mbl_sv:0&q=link:http://danielchoi.com/software/vmail.html&sa=X&ei=iw0JTYnsPMT_lgfgvMC1AQ&ved=0CAUQ6QcwCg&fp=1&cad=b">web reactions</a></li>
41
+ <li><a href="http://www.google.com/search?ie=UTF-8&q=vmail+vim#sclient=psy&hl=en&tbo=1&tbs=mbl:1%2Cmbl_sv%3A0&q=vmail+vim&aq=f&aqi=&aql=&oq=&gs_rfai=&pbx=1&fp=9ea8abb9b99e5b2d">web reactions</a></li>
42
42
  </ul>
43
43
  <h4>share this</h4>
44
44
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 3
9
- version: 0.7.3
8
+ - 4
9
+ version: 0.7.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi