aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-11-26notmuch.el: Use variable notmuch-search-oldest-first to decide the search orderAneesh Kumar K.V
Make sure we use notmuch-search-oldest-first to decide the how the search result should be displayed. This helps to set the value to nil and have latest mail shown first Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
2009-11-26TODO: A read-only file in the mail store should be a warning, not an error.Carl Worth
It's a bug that processing currently stops when it hits a read-only file. This is yet another case we'll want our test suite to cover.
2009-11-26notmuch.el: When removing tags, offer only those a msg/thread has set.Jan Janak
When removing a tag from a message or thread, build a completion buffer which contains only tags that the message or thread has really set. Signed-off-by: Jan Janak <jan@ryngle.com>
2009-11-26search-tags: Add support for search-terms.Jan Janak
This patch adds support for search-terms to 'notmuch search-tags'. If no search-term is provided then the command returns a list of all tags from the database. If the user provides one or more search-terms as arguments then the command collects tags from matching messages only. This could be used by functions in the Emacs mode to further limit the list of tags offered for completion. For example, functions that remove tags from message(s) could offer only tags present in the message(s). Signed-off-by: Jan Janak <jan@ryngle.com>
2009-11-26lib: New function to collect tags from a list of messages.Jan Janak
This patch adds a new function that can be used to collect a list of unique tags from a list of messages. 'notmuch search-tags' uses the function to get a list of tags from messages matching a search-term, but it has the potential to be used elsewhere so we put it in the lib. Signed-off-by: Jan Janak <jan@ryngle.com>
2009-11-26notmuch.el: Select tag names with completion.Jan Janak
Several commands ask the user for a tag name. With this feature the user can just press tab and Emacs automatically retrieves the list of all existing tags from notmuch database with 'notmuch search-tags' and presents a completion buffer to the user. This feature is very useful for users who have a large number of tags because it saves typing and minimizes the risk of typos. Signed-off-by: Jan Janak <jan@ryngle.com>
2009-11-26notmuch: New command 'search-tags'.Jan Janak
This is a new notmuch command that can be used to search for all tags found in the database. The resulting list is alphabetically sorted. The primary use-case for this new command is to provide the tag completion feature in Emacs (and other interfaces). Signed-off-by: Jan Janak <jan@ryngle.com>
2009-11-26notmuch: New function to retrieve all tags from the database.Jan Janak
This patch adds a new function called notmuch_database_get_all_tags which can be used to obtain a list of all tags from the database (in other words, the list contains all tags from all messages). The function produces an alphabetically sorted list. To add support for the new function, we rip the guts off of notmuch_message_get_tags and put them in a new generic function called _notmuch_convert_tags. The generic function takes a Xapian::TermIterator as argument and uses the iterator to find tags. This makes the function usable with different Xapian objects. Function notmuch_message_get_tags is then reimplemented to call the generic function with message->doc.termlist_begin() as argument. Similarly, we implement notmuch_message_database_get_all_tags, the function calls the generic function with db->xapian_db->allterms_begin() as argument. Finally, notmuch_database_get_all_tags is exported through lib/notmuch.h Signed-off-by: Jan Janak <jan@ryngle.com>
2009-11-25modify notmuch_setup_command to return 1 if config file write fails.Jameson Graef Rollins
This fixes a small bug in notmuch_setup_command such that it returned OK and output the setup message footer even if the config file write step failed.
2009-11-25vim: fix a case where we started with :NotMuch searchBart Trojanowski
2009-11-25vim: fix some error checking in NM_search_thread_id()Bart Trojanowski
2009-11-25vim: removing debug statementsBart Trojanowski
2009-11-25vim: Space archives/reads and advances to next messageBart Trojanowski
2009-11-25vim: don't use scrolloff/sidesscrolloff in notmuch buffersBart Trojanowski
2009-11-25vim: refactor get_message_for_line out of show_message_idBart Trojanowski
2009-11-25vim: more cleanup and fixes for show_next/previous handlersBart Trojanowski
2009-11-25vim: allow show_next/previous to skip non-matching messagesBart Trojanowski
2009-11-25vim: pass filter expression to add/remove tag functionsBart Trojanowski
2009-11-25Testing.Carl Worth
2009-11-25notmuch.el: Remove some dead code.Carl Worth
This was left over from before the switch to using a filter for processing the results of "notmuch search".
2009-11-25vim: fold messages that don't match a queryBart Trojanowski
2009-11-25Merge branch 'show-matching-flag' into HEADBart Trojanowski
2009-11-25vim: return nothing instead of failting if there is no message idBart Trojanowski
2009-11-25vim: minor improvements to search screen syntax matchingBart Trojanowski
2009-11-25vim: make timing info a debug optionBart Trojanowski
2009-11-25vim: include stubs for Tab-ing thorugh folds in show viewBart Trojanowski
2009-11-25vim: include search terms when showing messageBart Trojanowski
2009-11-25vim: fix '?' command in message displayBart Trojanowski
2009-11-25vim: fix shell escaping for () in search termsBart Trojanowski
2009-11-25vim: fix column formatting for >9 messages in search viewBart Trojanowski
2009-11-25vim: preserve previous buffer number when refreshing searchBart Trojanowski
2009-11-25vim: add git-diff.vim in README, make syntax work w/o the scriptBart Trojanowski
2009-11-25vim: cleanup tag filteringBart Trojanowski
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-25vim: cleanup a few minor glitchesBart Trojanowski
2009-11-25vim: fix an error in the logic for finding message under cursor in show screenBart Trojanowski
2009-11-25vim: use ,s for editing search queryBart Trojanowski
(save 'S' for marking things as spam)
2009-11-25vim: have ? show details of what's under cursor in search/show viewsBart Trojanowski
2009-11-25vim: ingore would-be-folds with line count of 1 or fewerBart Trojanowski
2009-11-25vim: added searching for word under cursor with ^]Bart Trojanowski
2009-11-25vim: highlight []-blocks in search viewBart Trojanowski
2009-11-25vim plugin: removed some dead codeBart Trojanowski
2009-11-25vim: place ... more inteligently when shortening 'from' list in searchBart Trojanowski
2009-11-25fix returning to folders after searching a few timesBart Trojanowski
2009-11-25make searching, updates and returning to folder view workBart Trojanowski
2009-11-25add notmuch-folders support modeBart Trojanowski
2009-11-25remove some debug code from NM_cmd_search()Bart Trojanowski
2009-11-25NM_show_prev() -> NM_show_previous()Bart Trojanowski
2009-11-25correct fold line countsBart Trojanowski
2009-11-25keep the ,nmr hack aroundBart Trojanowski
2009-11-25clear the nmap before creating our bindingsBart Trojanowski