The idea of separating text highlighting from moving the caret is a good one that I hadn't considered. I think it would conform to the _why approach to Shoes.

+1 for highlight_text(start_index, final_index)
+1 for caret_to(index)


On Dec 20, 2013, at 7:05 AM, Tobias Pfeiffer <notifications@github.com> wrote:

> In lib/shoes/input_box.rb:
> 
> > @@ -37,6 +37,10 @@ def text
> >      def text=(value)
> >        @gui.text = value.to_s
> >      end
> > +
> > +    def selected_text(start_index, final_index=nil)
> So the question would most likely be "what would why have done" - we don't care about the SWT method names as the DSL should be agnostic of the backend.
> 
> I think right now I personally like highlight_text the best but accompanied with a move_caret/caret_to method for moving the caret (e.g. one purpose for each method).
> 
> What do you think?
> 
> Anyone wanna chime in? @wasnotrice @jasonrclark @jrgifford @ashbb @fism88 @davorb ?
> 
> —
> Reply to this email directly or view it on GitHub.
>