Commit graph

7376 commits

Author SHA1 Message Date
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
Bart Trojanowski
b9e96ccb0d notmuch-show: identify which messages printed matched the query string
The show command outputs all messages in the threads that match the
search-terms.  This patch introduces a 'match:[01]' entry to the 'message{'
line output by the show command.  Value of 1 indicates that the message is
matching the search expression.

Signed-off-by: Bart Trojanowski <bart@jukie.net>
2009-11-25 00:46:44 -05:00
Bart Trojanowski
62878f71c2 have _notmuch_thread_create mark which messages matched the query
When _notmuch_thread_create() is given a query string, it can return more
messages than just those matching the query.  To distinguish those that
matched the query expression, the MATCHING_SEARCH flag is set
appropriately.

Signed-off-by: Bart Trojanowski <bart@jukie.net>
2009-11-25 00:46:44 -05:00
Bart Trojanowski
7e02b448e7 message: add flags to notmuch_message_t
This patch allows for different flags, internal to notmuch, to be set on a
message object.  The patch does not define any such flags, just the
facilities to manage these flags.

Signed-off-by: Bart Trojanowski <bart@jukie.net>
2009-11-25 00:46:44 -05:00
Carl Worth
adef907918 notmuch.el: Quote arguments to protect from shell interpretation.
We want to allow the user to be able to use search expressions with
parentheses and semi-colons, etc. and we definitely don't want the
shell interpreting those!
2009-11-24 19:08:53 -08:00
Carl Worth
93af7b5745 notmuch.el: Exceute "notmuch search" asynchronously.
Previously, our emacs interface was waiting for the "notmuch search"
to complete before it would display anything. Now, we execute the
process asyncrhonously and filter results as they come in.

This takes advantage of the recent work to make "notmuch search"
results stream out steadily. The result is that some search results
will be available nearly instantly and the user can navigate and view
those while additional results continue loading.
2009-11-24 18:49:58 -08:00
Carl Worth
c1e16435cf Merge buttons-for-body-and-headers branch.
Thanks, Alexander!
2009-11-24 11:35:13 -08:00
Alexander Botero-Lowry
0ad3534b94 Remove the global expand body keymapping
With local buttons done now, we don't need this anymore.
2009-11-24 11:34:13 -08:00
Carl Worth
70962fabf9 lib/messages.c: Make message searches stream as well.
Xapian provides an interator-based interface to all search results.
So it was natural to make notmuch_messages_t be iterator-based as
well. Which we did originally.

But we ran into a problem when we added two APIs, (_get_replies and
_get_toplevel_messages), that want to return a messages iterator
that's *not* based on a Xapian search result. My original compromise
was to use notmuch_message_list_t as the basis for all returned
messages iterators in the public interface.

This had the problem of introducing extra latency at the beginning
of a search for messages, (the call would block while iterating over
all results from Xapian, converting to a message list).

In this commit, we remove that initial conversion and instead provide
two alternate implementations of notmuch_messages_t (one on top of a
Xapian iterator and one on top of a message list).

With this change, I tested a "notmuch search" returning *many* results
as previously taking about 7 seconds before results started appearing,
and now taking only 2 seconds.
2009-11-24 11:33:09 -08:00