diff options
| author | Bart Trojanowski <bart@jukie.net> | 2009-11-20 12:16:32 -0500 |
|---|---|---|
| committer | Bart Trojanowski <bart@jukie.net> | 2009-11-25 00:48:51 -0500 |
| commit | 0f7b098f63058fd2a0869453739f3e44a9876fcc (patch) | |
| tree | 49c33bc3c048d0567cf389562775983bd1657460 /vim/plugin | |
| parent | dbd90c1fc72c4b26073524587db721a276607594 (diff) | |
crude order toggle
Diffstat (limited to 'vim/plugin')
| -rw-r--r-- | vim/plugin/notmuch.vim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index dbe19853..ed67d34a 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -181,7 +181,10 @@ function! s:NM_new_mail() endfunction 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 function! s:NM_search_reply_to_thread() @@ -198,6 +201,7 @@ endfunction function! s:NM_search_refresh_view() let lno = line('.') + setlocal bufhidden=delete call <SID>NM_cmd_search(b:nm_search_words) " FIXME: should find the line of the thread we were on if possible exec printf('norm %dG', lno) |
