Hi, I just came up with an idea (don''t know if this has been requested yet). What I''d really like to see is some kind of query-completion when searching in sup. Often, when I want to search for messages, I don''t know all the supported query operators (like from:, +label: etc.) It would be super cool if you''d get some kind of completion (or even a list of possible completions?) when hitting tab. Anyone else who would like to have this feature in sup? Cheers, Christopher. -- ===============================Christopher Bertels http://www.adztec-independent.de GPG Key ID: 0x2345b203 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 902 bytes Desc: not available URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091022/91c55c7a/attachment.bin>
Reformatted excerpts from Christopher Bertels''s message of 2009-10-22:> Anyone else who would like to have this feature in sup?Sounds good to me. Probably wouldn''t be too hard since we have a fairly general tab-completion mechanism in place already. -- William <wmorgan-sup at masanjin.net>
Excerpts from William Morgan''s message of Mo Nov 02 16:58:45 +0100 2009:> Reformatted excerpts from Christopher Bertels''s message of 2009-10-22: > > Anyone else who would like to have this feature in sup? > > Sounds good to me. Probably wouldn''t be too hard since we have a fairly > general tab-completion mechanism in place already.Cool, anyone who knows how & wants to implement this? ;) -- ===============================Christopher Bertels http://www.adztec-independent.de GPG Key ID: 0x2345b203 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 835 bytes Desc: not available URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091103/012a1929/attachment.bin>
Reformatted excerpts from Christopher Bertels''s message of 2009-11-03:> Cool, anyone who knows how & wants to implement this? ;)If anyone is interested, I would suggest this approach: have each index (Ferret and Xapian) have a method that returns a list of query terms, and then look at how BufferManager#ask_many_emails_with_completions works, and implement something similar called ask_for_search_query or the like. Then have bin/sup circa line 275 call that instead of #ask. -- William <wmorgan-sup at masanjin.net>