Bart Trojanowski
9012c65282
vim: replace echo\nreturn with trhow in a few places
2009-11-26 23:11:38 -05:00
Bart Trojanowski
aa312db8cd
vim: make insert in compose mode configurable
2009-11-26 23:09:57 -05:00
Bart Trojanowski
8bafbac75c
vim: add a helpful header to notmuch-compose mode
2009-11-26 23:07:07 -05:00
Bart Trojanowski
805633becc
vim: syntax highlighting for notmuch-compose mode
2009-11-26 22:32:17 -05:00
Bart Trojanowski
b078a0c8c2
vim: add support for <Tab> in compose mode
...
this will skip to the next header in insert and normal modes, and
behave like <Tab> otherwise.
2009-11-26 22:32:02 -05:00
Bart Trojanowski
0aa5f7d250
vim: add support for :NotMuch compose
...
... but it doesn't send yet.
2009-11-26 22:30:13 -05:00
Bart Trojanowski
5bb149aab2
vim: cleanup settings in newBuffer() and make them local
2009-11-26 22:25:43 -05:00
Bart Trojanowski
bbca6e03c6
vim: add a line splitter that understands quotes
...
this makes it possible to tokenise expressions like
:NotMuch compose 'subject: one two three' to:bart@jukie.net
2009-11-26 22:24:33 -05:00
Bart Trojanowski
480903adac
vim: allow for different types of mappings not just normal mode ones
2009-11-26 22:22:30 -05:00
Bart Trojanowski
7a7be482f7
vim: fix a case where we started with :NotMuch search
2009-11-25 20:01:13 -05:00
Bart Trojanowski
e2fd1d9970
vim: fix some error checking in NM_search_thread_id()
2009-11-25 19:27:38 -05:00
Bart Trojanowski
29b420700e
vim: removing debug statements
2009-11-25 14:31:36 -05:00
Bart Trojanowski
8c8dacb26a
vim: Space archives/reads and advances to next message
2009-11-25 14:20:44 -05:00
Bart Trojanowski
4c9ddb9ac1
vim: don't use scrolloff/sidesscrolloff in notmuch buffers
2009-11-25 14:19:35 -05:00
Bart Trojanowski
329f95eb77
vim: refactor get_message_for_line out of show_message_id
2009-11-25 14:19:02 -05:00
Bart Trojanowski
898b173a18
vim: more cleanup and fixes for show_next/previous handlers
2009-11-25 14:18:29 -05:00
Bart Trojanowski
0f39d2c4de
vim: allow show_next/previous to skip non-matching messages
2009-11-25 14:17:34 -05:00
Bart Trojanowski
b440aeb23e
vim: pass filter expression to add/remove tag functions
2009-11-25 14:12:29 -05:00
Bart Trojanowski
5a32a1d48f
vim: fold messages that don't match a query
2009-11-25 00:50:50 -05:00
Bart Trojanowski
9d9b03c837
vim: return nothing instead of failting if there is no message id
2009-11-25 00:48:55 -05:00
Bart Trojanowski
a01e1335be
vim: minor improvements to search screen syntax matching
2009-11-25 00:48:55 -05:00
Bart Trojanowski
553637313b
vim: make timing info a debug option
2009-11-25 00:48:55 -05:00
Bart Trojanowski
76dc061de3
vim: include stubs for Tab-ing thorugh folds in show view
2009-11-25 00:48:55 -05:00
Bart Trojanowski
b740392b3d
vim: include search terms when showing message
2009-11-25 00:48:55 -05:00
Bart Trojanowski
be19c210ca
vim: fix '?' command in message display
2009-11-25 00:48:55 -05:00
Bart Trojanowski
845732464c
vim: fix shell escaping for () in search terms
2009-11-25 00:48:55 -05:00
Bart Trojanowski
f275f5f7f0
vim: fix column formatting for >9 messages in search view
2009-11-25 00:48:55 -05:00
Bart Trojanowski
6bc0ec618d
vim: preserve previous buffer number when refreshing search
2009-11-25 00:48:55 -05:00
Bart Trojanowski
418a7f3108
vim: add git-diff.vim in README, make syntax work w/o the script
2009-11-25 00:48:54 -05:00
Bart Trojanowski
e9ca8e5037
vim: cleanup tag filtering
...
Given an existing search expression and a regular filter, the resulting
search will be:
EXISTING AND ( NEW )
With a tag filter each of the tags given will be prefixed with tag: and
separated by AND.
2009-11-25 00:48:54 -05:00
Bart Trojanowski
384037285f
vim: cleanup a few minor glitches
2009-11-25 00:48:54 -05:00
Bart Trojanowski
54a7df40a2
vim: fix an error in the logic for finding message under cursor in show screen
2009-11-25 00:48:54 -05:00
Bart Trojanowski
b2830acc04
vim: use ,s for editing search query
...
(save 'S' for marking things as spam)
2009-11-25 00:48:54 -05:00
Bart Trojanowski
0210f960f1
vim: have ? show details of what's under cursor in search/show views
2009-11-25 00:48:54 -05:00
Bart Trojanowski
251ec73587
vim: ingore would-be-folds with line count of 1 or fewer
2009-11-25 00:48:54 -05:00
Bart Trojanowski
dda6b7eb1c
vim: added searching for word under cursor with ^]
2009-11-25 00:48:54 -05:00
Bart Trojanowski
e67ad108c8
vim: highlight []-blocks in search view
2009-11-25 00:48:54 -05:00
Bart Trojanowski
a2f6319c9a
vim plugin: removed some dead code
2009-11-25 00:48:53 -05:00
Bart Trojanowski
5736ea3027
vim: place ... more inteligently when shortening 'from' list in search
2009-11-25 00:48:53 -05:00
Bart Trojanowski
e8971117ff
fix returning to folders after searching a few times
2009-11-25 00:48:53 -05:00
Bart Trojanowski
5a9d5fb200
make searching, updates and returning to folder view work
2009-11-25 00:48:53 -05:00
Bart Trojanowski
33c896dd71
add notmuch-folders support mode
2009-11-25 00:48:53 -05:00
Bart Trojanowski
9e3cc68875
remove some debug code from NM_cmd_search()
2009-11-25 00:48:53 -05:00
Bart Trojanowski
de063624e9
NM_show_prev() -> NM_show_previous()
2009-11-25 00:48:53 -05:00
Bart Trojanowski
4259584599
correct fold line counts
2009-11-25 00:48:53 -05:00
Bart Trojanowski
99f4198407
keep the ,nmr hack around
2009-11-25 00:48:53 -05:00
Bart Trojanowski
4bcb884622
clear the nmap before creating our bindings
2009-11-25 00:48:52 -05:00
Bart Trojanowski
64339e6324
don't fold single lines
2009-11-25 00:48:52 -05:00
Bart Trojanowski
3e4f9009ae
avoid reloading search screen when we add/remove tags
2009-11-25 00:48:52 -05:00
Bart Trojanowski
f3d3e74b97
debug code to measure how long calls to system() take
2009-11-25 00:48:52 -05:00
Bart Trojanowski
71c9dbb71d
make control-p go to previous message
2009-11-25 00:48:52 -05:00
Bart Trojanowski
75ae11ebd2
lot more stubs for future keybindings
2009-11-25 00:48:52 -05:00
Bart Trojanowski
e2006a2f3c
implemented folding bodies and headers
2009-11-25 00:48:52 -05:00
Bart Trojanowski
acb696165c
more endless toil with syntax
2009-11-25 00:48:52 -05:00
Bart Trojanowski
72b7251d9a
fix after merge, --reverse replaced with --sort=
2009-11-25 00:48:52 -05:00
Bart Trojanowski
0f7b098f63
crude order toggle
2009-11-25 00:48:51 -05:00
Bart Trojanowski
dbd90c1fc7
added search filtering
2009-11-25 00:48:51 -05:00
Bart Trojanowski
de85b4752d
added support for archive command
2009-11-25 00:48:51 -05:00
Bart Trojanowski
8826219274
cleanup calls to script functions, use <SID>
2009-11-25 00:48:51 -05:00
Bart Trojanowski
7888bffce7
fix showing thread
2009-11-25 00:48:51 -05:00
Bart Trojanowski
84f33e6546
added tagging and refresh to search screen
2009-11-25 00:48:51 -05:00
Bart Trojanowski
804715316b
add dummy entries to search screen keymap
2009-11-25 00:48:51 -05:00
Bart Trojanowski
b0a0016416
define keymap for show screen as a dictionary
2009-11-25 00:48:51 -05:00
Bart Trojanowski
f8c4b93840
cleanup default handling code
2009-11-25 00:48:51 -05:00
Bart Trojanowski
fe2a905110
make search screen mappings configurable via dictionary
2009-11-25 00:48:51 -05:00
Bart Trojanowski
5c7ebe31d5
make it possible to set config options from outside the script
2009-11-25 00:48:50 -05:00
Bart Trojanowski
5a2d760067
toggle signatures and citations with s/c respectively
2009-11-25 00:48:50 -05:00
Bart Trojanowski
1e0005e6d0
fix a corner case with folding a single line citation
2009-11-25 00:48:50 -05:00
Bart Trojanowski
3dc96c6dc8
added ^n to handle walking messages
2009-11-25 00:48:50 -05:00
Bart Trojanowski
010eac8b43
pretty colouring and folding for message show
2009-11-25 00:48:50 -05:00
Bart Trojanowski
8a31802b94
parsing rewritten one more time
2009-11-25 00:48:50 -05:00
Bart Trojanowski
c53b945504
completely rewritten show handling
2009-11-25 00:48:50 -05:00
Bart Trojanowski
89dc64726f
first attempt to fold the message nicely
2009-11-25 00:48:50 -05:00
Bart Trojanowski
71bdd859dc
folding for citations
2009-11-25 00:48:50 -05:00
Bart Trojanowski
c6314fa234
naively fold all signatures
2009-11-25 00:48:49 -05:00
Bart Trojanowski
c80ab27d08
grab all the pattern matchers from the emacs script
2009-11-25 00:48:49 -05:00
Bart Trojanowski
905a08788e
make <Enter> from search screen display the correct message
2009-11-25 00:48:49 -05:00
Bart Trojanowski
3fe89c43dd
updated README
2009-11-25 00:48:49 -05:00
Bart Trojanowski
02fbef68c5
add 's' binding to let you search for different terms
2009-11-25 00:48:49 -05:00
Bart Trojanowski
cfb18a6cbb
reverse order so that the latest is at top
2009-11-25 00:48:49 -05:00
Bart Trojanowski
df5137ff34
README
2009-11-25 00:48:49 -05:00
Bart Trojanowski
dd7bab6273
simplify install with a Makefile
2009-11-25 00:48:49 -05:00
Bart Trojanowski
3493ea0ed5
added syntax files for search and show screens
2009-11-25 00:48:49 -05:00
Bart Trojanowski
5e7df3c17e
move from search to show with Enter, and back with q
2009-11-25 00:48:49 -05:00
Bart Trojanowski
0265a00303
primitive notmuch mail interface for vim
2009-11-25 00:48:48 -05:00