aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch.el
Commit message (Collapse)AuthorAge
* notmuch.el: Don't advance line in search buffer before showing thread.Gravatar Carl Worth2009-11-09
| | | | | | | | | | | | Previously, when selecting a thread to view from the search buffer, we would advance the point by one line before showing the thread, (so that it would be ready to show the next thread once the user was done with the current thread). This was annoying when the user temporarily exited the thread view, (because the "wrong" thread was then selected in the search view). We get a more consistent experience by waiting to advance until the user has finished viewing one thread and is ready to view the next.
* notmuch.el: Fix add/remove tag from search buffers.Gravatar Carl Worth2009-11-09
| | | | | These were recently broken with the change of "notmuch search" to prefix thread IDs with "thread:" rather than printing them raw.
* notmuch show: Move subject from one-line summary down to its own line.Gravatar Carl Worth2009-11-05
| | | | | And change the display code in emacs to display the one-line summary in inverse video.
* notmuch.el: Bring back the "End of search results." message.Gravatar Carl Worth2009-11-05
| | | | | | The recent change of the hidden thread-ID syntax caused this message to instead be replaced with a cryptic "search failed" error and an internal regular expression. Put our nice message back.
* notmuch.el: Make hidden parts advertise how to unhide them.Gravatar Carl Worth2009-11-05
| | | | | | This is in place now citations and signatures. We'll still need to add something else for hidden messages (those that are already read and hidden away).
* notmuch.el: Add 'A' binding to archive thread after removing all "unread" tags.Gravatar Carl Worth2009-11-05
| | | | | This is useful for when the rest of the thread is visible on screen so the user really has read the rest of it.
* notmuch show: Fix to work with any search string rather than just a thread ID.Gravatar Carl Worth2009-11-05
| | | | | | | | | | | The more general command is more consistent, and more useful. We also fix "notmuch search" to output copy-and-pasteable search terms for the thread with "thread:" prepended already. Similarly, the message-ID in the output of "notmuch show" is also now printed as a valid search term, ("id:<message-id>" rather than "ID: <message-id>"). Naturally, the emacs code is also changed to track these changes.
* notmuch.el: Add 'N' binding to mark message read and go to next.Gravatar Carl Worth2009-11-05
| | | | | | The magic space bar is nice, but sometimes there's a message with a long attachment that I just want to skip, but still consider the message marked as read.
* notmuch.el: Don't require an extra press of space bar before archiving.Gravatar Carl Worth2009-11-04
| | | | | | | | | | | | | | | | | | I had implemented this intentionally originally, thinking that it would be important to see the last message scroll all the way off screen before the next press of the magic space bar would go and archive away the whole thread. But in practice, that just turns out to be annoying, (especially for a long sequence of single-message threads where the space bar has to be pressed twice for every one). It's actually quite easy to know if it's "safe" to press the space bar expecting just a scroll instead of an archive by simply looking down and seeing if the current window is full. And as for the total lack of undo with all of this, I'm getting by by simply using x to get back to the search view, and then going back into the thread of interest.
* notmuch.el: Add a simple command to pipe a message to a process.Gravatar Carl Worth2009-11-04
| | | | With the obvious keybinding.
* notmuch.el: Don't skip read messages when they are open.Gravatar Carl Worth2009-11-04
| | | | | | | More magic for the magic space bar: If a thread is entirely open, (such as when viewing an old thread where every message is read), the space bar now visits each message in turn (rather than skipping all of the unread messages).
* notmuch.el: Allow for scrolling backwards through thread with DELGravatar Carl Worth2009-11-04
| | | | | | | | Otherwise known as "Backspace" on keyboards in the real, (rather than emacs), world. This will go by screenfuls for long messages, and message by message for short messages. So it does the reverse of the magic space bar, (but without reversing any tag-changing magic that the magic space bar might have done).
* notmuch.el: Add 'w' binding to view raW email message.Gravatar Carl Worth2009-11-04
| | | | | This takes advantage of the new filename output just added to "notmuch show".
* notmuch.el: Don't use defvar for undocumented variables.Gravatar Carl Worth2009-11-04
| | | | | Make at least some attempt to distinguish internal variables from those that the user is expected to fiddle with.
* notmuch.el: Don't hide long signatures.Gravatar Carl Worth2009-11-04
| | | | | | | | | Chances are, a signature above a certain threshold isn't just a signature, (for example, it could be an encrypted messages tacked onto the end of the file, or could be any sort of PS.) We add a new variable, notmuch-show-signature-lines-max that can be used to configure the threshold, (set to 6 by default for now).
* notmuch.el: Fix to claim correct number of lines for hidden signature.Gravatar Carl Worth2009-11-04
| | | | Previously, it was reporting that all signatures were 0 lines.
* notmuch.el: Don't hide message bodies when all messages are read.Gravatar Carl Worth2009-11-04
| | | | | | Presumably the user is trying to view this thread for a reason, so it's better to actually show *something* rather than just the summary lines.
* notmuch.el: Make notmuch-search scroll commands move to first/last message.Gravatar Carl Worth2009-11-04
| | | | | If there's nothing to scroll but we're not yet on the first or last message then move point to that message.
* notmuch.el: Override next-line and previous-line to make them reliable.Gravatar Carl Worth2009-11-04
| | | | | | | | | | | | | | | | I noticed that these functions would sometimes leave point on an invisible character[*]. The problem would be that point would appear to be on a particular message, but adding or removing a tag would actually add/remove a tag from the *previous* message. Fix the C-n and C-p keybindings at least to call the underlying command and then advance to a visible character. We set this-command in our overrides so that the temporary-goal-column feature still works. [*] The documentation says that command loop is supposed to move point outside of any invisible region when a command exits. But apparently not.
* notmuch.el: Un-break the magic space bar to scroll a long, single message.Gravatar Carl Worth2009-11-04
| | | | | | | | | | | | | | Clearly some recent code was very fragile, which I noticed in that the space bar would no longer scroll a long message if it was the only message in a thread. This resulted in a lot of churn, but hopefully things are more robust now, (for example by using new predicates like notmuch-show-last-message-p rather than doing heuristics based on (eobp) or (window-end)). As usual, the presence of invisible characters complicates the task of making this stuff robust.
* notmuch.el: Fix to show *something* when all messages are already read.Gravatar Carl Worth2009-11-04
| | | | | | | | With the recent change of showing the first unread message, we would scroll down to the end of the buffer if all messages were already read. This would confusingly show nothing visible in the window. Instead, detect this case and move to the beginning of the buffer.
* notmuch.el: Make magic space bar advance to next unread messages.Gravatar Carl Worth2009-11-04
| | | | | | | | | The magic of the space bar is all about unread messages, so there's no reason for it to advance to messages that have already been read. Similarly, we now remove any magic from (n)ext so that it simply advances to the next message without marking anything read, (which makes it symmetrical with (p)revious).
* notmuch.el: Move to first unread message on notmuch-show.Gravatar Carl Worth2009-11-04
| | | | | This is important for when a new message is delivered to an existing enormous thread.
* notmuch.el: Make next-message move to end of buffer after last message.Gravatar Carl Worth2009-11-04
| | | | | We need an easier way to detect when we're done with the last message so taking advantage of the end-of-buffer position helps here.
* notmuch.el: Leave a blank line after last thread in search.Gravatar Carl Worth2009-11-04
| | | | | | | This allows for pleasant termination of the "show next thread" magic in notmuch-show mode. Now, it will terminate and show the notmuch-search results rather than continually displaying the last thread over and over.
* notmuch.el: Move "show next thread" from magic-space-bar to archive-threadGravatar Carl Worth2009-11-04
| | | | | If I explicitly hit the 'a' key before reading the whole thread, I still want to advance to the next thread in my search.
* notmuch.el: More magic for magic space bar: Show next thread from search.Gravatar Carl Worth2009-11-04
| | | | | | | This is implemented by stashing away the parent notmuch-search buffer into a variable within the notmuch-show buffer. Then, when magic space bar triggers an archive of the current thread, it switches to the parent search buffer and shows the next thread.
* notmuch.el: notmuch-search: Advance to next line before showing thread.Gravatar Carl Worth2009-11-04
| | | | | The idea here is that after viewing the thread, when we come back to this buffer we'll be all ready to view the next thread.
* notmuch.el: Make archive-thread more efficient for already archived messages.Gravatar Carl Worth2009-11-04
| | | | | | The approach here is to move the optimization from mark-read to the more general remove-tag. Namely, don't call out to a "notmuch tag" command to remove a tag that's not there already.
* notmuch.el: Make the magic spacebar archive a thread in the end.Gravatar Carl Worth2009-11-04
| | | | Next all it needs to do is kill the buffer and show the next thread.
* notmuch.el: Start implementing the magic space bar.Gravatar Carl Worth2009-11-04
| | | | | | | | | Currently this will either advance by screenfuls, or to the next message if it's already within a screenful, and will mark each message read as it is left. It doesn't yet complete the magic by archiving the messages nor by advancing to the next thread in the search.
* notmuch.el: Fix to hide citations in body of read messages.Gravatar Carl Worth2009-11-04
| | | | | Previously, unhinding a read message would still show all the citations in that message without an explicit command to make them visible. Fix.
* notmuch.el: Redefine behavior of notmuch-show-previous-messageGravatar Carl Worth2009-11-04
| | | | | | | | Now, if the user has manually moved point to somewhere within a message, executing the previous-message command onece will rewind point only to the beginning of the current message. Previously this would go back to the previous message, (which the user can now do easily and naturally by simply executing the command one more time).
* notmuch.el: Fix notmuch-snow-next-message when on the last message.Gravatar Carl Worth2009-11-04
| | | | | | | | | Before this just brought the current line to the top of the window. Now it actually moves to the beginning of the current message. This is built on a much more solid foundation now with a function to move to the summary-line of the current message, and then moving from there.
* notmuch.el: Add more complete documentation to the major modes.Gravatar Carl Worth2009-11-03
| | | | | | These now provide a summary of the most useful features/bindings as well as a complete printout of the relevant mode maps to show all available keybindings.
* notmuch.el: Make archive-thread advance to next line.Gravatar Carl Worth2009-11-03
| | | | | | | This is the command in notmuch-search mode and it's cer convenient for it to advance to the next line there. (It would be even more convenient if it didn't also take forever, but as mentioned before that's an issue we'll need to fix in Xapian.)
* notmuch.el: Add 't' binding to filter results to a specific tag.Gravatar Carl Worth2009-11-03
| | | | | This is a convenience function to avoid having to type "tag:" with the (f)ilter command.
* notmuch.el: Add bindings for scrolling to notmuch-search mode.Gravatar Carl Worth2009-11-03
| | | | | | | We turn on the scroll-preserve-screen-position option which seems like what's desired here, (though that's not what I normally use when editing files---but I think scrolling through a list of email threads is different).
* Drop inapplicable copyright statements.Gravatar Carl Worth2009-11-03
| | | | | | | | | | I had put these in here since I had originally planned to copy liberally from the body of the implementation of 'compile in order to get process output into a buffer. But once I found call-process in the documentation of emacs, that was all I needed. And all the code I've written since has been entirely my own with just the help of emacs documentation.
* notmuch-el: Fix implementation of show/hide-thread-ids.Gravatar Carl Worth2009-11-03
| | | | | | I'm definitely more comfortable with the add-to-invisibility-spec now than I was when I first wrote these functions, (which weren't working at all).
* notmuch.el: Add command to (a)rchive a thread from notmuch-show mode.Gravatar Carl Worth2009-11-03
| | | | | | | This is our first race-free implementation of archive-thread! It acts only on the messages explcitly contained in the buffer, not on an entire thread ID, so it's safe in the face of new messages have been delivered for this thread since the view was made.
* notmuch.el: Don't try to remove an "unread" tag that's not there.Gravatar Carl Worth2009-11-03
| | | | | | | This optimization wouldn't be necessary if we had a nice fast "notmuch tag" command. But since it's currently fairly slow, (see Xapian defect 250: http://trac.xapian.org/ticket/250), we're willing to take some extra care to avoid calling "notmuch tag" unnecessarily.
* notmuch show: Remove custom "unread" hack, (printing tag in two locations).Gravatar Carl Worth2009-11-03
| | | | | | | | I previously had a hack that special-cased the "unread" tag and printed it on the same line as the message ID. But now that we are printing all tags at the end of the one-line summary we don't need this anymore. Get rid of it, and just read "unread" from the list of tags just like any other tag.
* notmuch.el: Add + and - bindings to add/remove tags from messages.Gravatar Carl Worth2009-11-03
| | | | | | | This is in notmuch-show mode rather than in notmuch-search mode, (where we had + and - working already). This gives the same visual feedback as in notmuch-search-mode, (the tags are manipulated first in the database and then the list of tags in the buffer is updated).
* notmuch.el: Preserve current thread when refreshing search results.Gravatar Carl Worth2009-11-03
| | | | | Otherwise, try to keep point in the same place, (such as when the current thread has been archived away).
* notmuch.el: Add an '=' key to refresh the current view.Gravatar Carl Worth2009-11-03
| | | | | This will allow for updates when a separate process (say, a notmuch- show buffer), has archived messages.
* notmuch.el: Mark messages read when the (n)ext keybinding is pressedGravatar Carl Worth2009-11-03
| | | | | Of course, technically, we're removing the "unread" tag, but you get the idea. :-)
* notmuch.el: Hide citations and signatures.Gravatar Carl Worth2009-11-03
| | | | | The user can make these visible again by pressing 'c' or 's', (though we'd like to move to direct manipulation instead soon).
* Hide bodies of message that have already been read.Gravatar Carl Worth2009-11-03
| | | | | | | | | | | | Also hide all markers. From here, all we really need for legibility is the following: * Hide away citations and signatures * Call out the one-line summary some way, (larger font size?) * Add nesting for replies
* notmuch.el: Hide email headers by default.Gravatar Carl Worth2009-11-02
| | | | The display of the header can be toggled with the 'h' key.