crude order toggle

This commit is contained in:
Bart Trojanowski 2009-11-20 12:16:32 -05:00
parent dbd90c1fc7
commit 0f7b098f63
2 changed files with 6 additions and 1 deletions

View file

@ -20,6 +20,7 @@ Buffer types:
<Enter> - show the selected message <Enter> - show the selected message
a - archive message (remove inbox tag) a - archive message (remove inbox tag)
f - filter the current search terms f - filter the current search terms
o - toggle search screen order
s - enter search criteria s - enter search criteria
S - alter search criteria S - alter search criteria
f - filter the current search terms with tags f - filter the current search terms with tags

View file

@ -181,7 +181,10 @@ function! s:NM_new_mail()
endfunction endfunction
function! s:NM_search_toggle_order() function! s:NM_search_toggle_order()
echoe 'Not implemented' let g:notmuch_search_reverse = !g:notmuch_search_reverse
" 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()
endfunction endfunction
function! s:NM_search_reply_to_thread() function! s:NM_search_reply_to_thread()
@ -198,6 +201,7 @@ endfunction
function! s:NM_search_refresh_view() function! s:NM_search_refresh_view()
let lno = line('.') let lno = line('.')
setlocal bufhidden=delete
call <SID>NM_cmd_search(b:nm_search_words) call <SID>NM_cmd_search(b:nm_search_words)
" FIXME: should find the line of the thread we were on if possible " FIXME: should find the line of the thread we were on if possible
exec printf('norm %dG', lno) exec printf('norm %dG', lno)