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

Re: [sc-dev] Document:selectedString_ delegates to prinsertText?

On Nov 18, 2013 3:47 PM, "Scott Wilson" <i@xxxxxxxxxxxxxx> wrote:
> The problem is actually that selection behaviour remains an unresolved issue. How that should behave in a situation where you have multiple views, no one of which is 'active' when none has focus, is not clear. I've asked for suggestions, but there's been no consensus.

Hm, right, good point, and I didn't follow that discussion carefully.

My use case is a GUI object browser with buttons to insert identifiers into the active code window at the cursor position. It's unfortunate that this use case is not supportable without handling the ambiguous case as well. (In my scenario, there never is any ambiguity.)

I'm wondering if any temporary measures might help? If you're calling methods on Document.current or any document with no splits, then it's easy, right?