I noticed that when something is selected in TextMate and you right- click *anywhere* in the document the pop-up menu contains items referring to the selection (filer thru command, etc.). This strikes me as odd because it's not how the rest of the OS behaves.
Everywhere else (that I know of) re-focuses the selection depending on where you right-click. If you right-click in the existing selection you are shown options for that selection, but if you right- click outside the current selection the selection re-focuses and moves to the word that was clicked on.
While this not really a big deal, it's caused me some confusion when trying to correct spelling when some other bit of text is selected. I've even gone so far as to unconsciously make sure to always select the word I'm trying to spell-check.
I personally would prefer if the behavior was in-line with the rest of the OS, but I could imagine there would be some cases when this is not desirable.
Was this a design choice? What are the benefits of this?
—oliver
On 7/6/2006, at 0:55, Oliver Taylor wrote:
[...] Was this a design choice? What are the benefits of this?
Changing the selection, when the user asks for a context sensitive menu (about the selection) just didn’t seemed right to me -- but for users who are used to that behavior, there is no harm in it, I wasn’t at the time, nor actually sure NSTextView did this back then!?!
Anyway, I can change it to align with NSTextView.