[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sup-talk] next search in buffer view..



buffer.rb

  def handle_input c
    if @focus_buf
      if @focus_buf.mode.in_search? && c != CONTINUE_IN_BUFFER_SEARCH_KEY[0]
        @focus_buf.mode.cancel_search!
        @focus_buf.mark_dirty
      end
      @focus_buf.mode.handle_input c
    end
  end

Why is the search canceled when typing any other char?

That's really annoying because there are some mails I have to use the
same search multiple times. However I also have to scroll up /down to
see enough context.

So why has this been implemented? Is it safe to remove that if
statement?
Seems to work for me.


It would be better if the next search would continue from the current
line rather than the last search result.

I'd like to see 'N' (search backward) as well.

If you like these ideas I'm going to supply a patch.

Comments?

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