projects
/
notmuch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
0f7b098
)
fix after merge, --reverse replaced with --sort=
author
Bart Trojanowski
<bart@jukie.net>
Fri, 20 Nov 2009 17:37:52 +0000
(12:37 -0500)
committer
Bart Trojanowski
<bart@jukie.net>
Wed, 25 Nov 2009 05:48:52 +0000
(
00:48
-0500)
vim/plugin/notmuch.vim
patch
|
blob
|
history
diff --git
a/vim/plugin/notmuch.vim
b/vim/plugin/notmuch.vim
index ed67d34a332688c3375b17732fff49347c0ab4bf..b328bcc658482ee122d4bb8d83681de4f4b34dd6 100644
(file)
--- a/
vim/plugin/notmuch.vim
+++ b/
vim/plugin/notmuch.vim
@@
-23,7
+23,7
@@
let s:notmuch_defaults = {
\ 'g:notmuch_cmd': 'notmuch' ,
let s:notmuch_defaults = {
\ 'g:notmuch_cmd': 'notmuch' ,
- \ 'g:notmuch_search_
reverse':
1 ,
+ \ 'g:notmuch_search_
newest_first':
1 ,
\ 'g:notmuch_show_fold_signatures': 1 ,
\ 'g:notmuch_show_fold_citations': 1 ,
\
\ 'g:notmuch_show_fold_signatures': 1 ,
\ 'g:notmuch_show_fold_citations': 1 ,
\
@@
-92,8
+92,10
@@
let g:notmuch_show_maps = {
function! s:NM_cmd_search(words)
let cmd = ['search']
function! s:NM_cmd_search(words)
let cmd = ['search']
- if g:notmuch_search_reverse
- let cmd = cmd + ['--reverse']
+ if g:notmuch_search_newest_first
+ let cmd = cmd + ['--sort=newest-first']
+ else
+ let cmd = cmd + ['--sort=oldest-first']
endif
let data = s:NM_run(cmd + a:words)
"let data = substitute(data, '27/27', '25/27', '')
endif
let data = s:NM_run(cmd + a:words)
"let data = substitute(data, '27/27', '25/27', '')
@@
-181,7
+183,7
@@
function! s:NM_new_mail()
endfunction
function! s:NM_search_toggle_order()
endfunction
function! s:NM_search_toggle_order()
- let g:notmuch_search_
reverse = !g:notmuch_search_reverse
+ let g:notmuch_search_
newest_first = !g:notmuch_search_newest_first
" FIXME: maybe this would be better done w/o reading re-reading the lines
" reversing the b:nm_raw_lines and the buffer lines would be better
call <SID>NM_search_refresh_view()
" FIXME: maybe this would be better done w/o reading re-reading the lines
" reversing the b:nm_raw_lines and the buffer lines would be better
call <SID>NM_search_refresh_view()