Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
From: Rich Lane <rlane@club.cc.cmu.edu>
To: Eric Sherman <hyperbolist@gmail.com>
Cc: sup-devel <sup-devel@rubyforge.org>
Subject: Re: [sup-devel] [PATCH] Saved Search Support
Date: Tue, 19 Jan 2010 13:00:32 -0500	[thread overview]
Message-ID: <1263920054-sup-9400@zyrg.net> (raw)
In-Reply-To: <1263858172-sup-547@changeling.local>

Excerpts from Eric Sherman's message of 2010-01-18 18:44:37 -0500:
> Start an index search with a \ backslash and press enter to get a list
> of searches that were previously saved from search-results-mode with %
> percent or added from search-list-mode directly.  Saved searches may be
> used in other searches by enclosing their names in {} curly braces.
> Search names may contain letters, numbers, underscores and dashes.

This is a nice feature. A few comments:

I'd like it better if shrinking went away and the only time we expanded
was right before giving it to parse_query. I'd rather not have the
expand-on-delete or rename-tracking behaviors. These changes would
simplify the code quite a bit. I think attempting to expand a
nonexistent saved search should result in something false ("type:false",
maybe), send a warning to the log, and perhaps flash an error message.

On Ruby 1.9.1 I get:
lib/sup/search.rb:69: warning: Hash#index is deprecated; use Hash#key

SearchListMode#regen_text: looks like a mixup of each and map

SearchListMode#add_new_search:
Should flash an error message on name collisions, or allow overwriting.

SearchListMode#rename_selected_search, SearchListMode#save_search:
Name collision handling should be consistent with add_new_search.

SearchManager:
I'd replace the duplicated name checking regexes with a method.

SearchManager#rename:
I think the strip should be done by the caller.
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel


  reply	other threads:[~2010-01-19 18:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-18 23:44 Eric Sherman
2010-01-19 18:00 ` Rich Lane [this message]
2010-01-20  3:46   ` Eric Sherman
2010-01-20  3:48   ` [sup-devel] [PATCHv2] " Eric Sherman
2010-01-20  6:14     ` Rich Lane
2010-01-20 14:25       ` Eric Sherman
2010-01-20 14:28       ` [sup-devel] [PATCHv3] " Eric Sherman
2010-01-23 13:01         ` William Morgan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1263920054-sup-9400@zyrg.net \
    --to=rlane@club.cc.cmu.edu \
    --cc=hyperbolist@gmail.com \
    --cc=sup-devel@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox