Completion for search queries

View: New views
4 Messages — Rating Filter:   Alert me  

Completion for search queries

by Christopher Bertels :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


_______________________________________________
sup-talk mailing list
sup-talk@...
http://rubyforge.org/mailman/listinfo/sup-talk

signature.asc (920 bytes) Download Attachment

Re: Completion for search queries

by William Morgan-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...>
_______________________________________________
sup-talk mailing list
sup-talk@...
http://rubyforge.org/mailman/listinfo/sup-talk

Re: Completion for search queries

by Christopher Bertels :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


_______________________________________________
sup-talk mailing list
sup-talk@...
http://rubyforge.org/mailman/listinfo/sup-talk

signature.asc (852 bytes) Download Attachment

Re: Completion for search queries

by William Morgan-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...>
_______________________________________________
sup-talk mailing list
sup-talk@...
http://rubyforge.org/mailman/listinfo/sup-talk