Author Topic: Select the matching brace via double-clicking a brace (SE 14.0.2.2)  (Read 4761 times)

gixxer

  • Community Member
  • Posts: 10
  • Hero Points: 0
Re: Select the matching brace via double-clicking a brace (SE 14.0.2.2)
« Reply #15 on: August 07, 2018, 10:15:57 pm »
From what I can tell mou-select-word is a superset (feature set wise) of select_matching_brace which was never intended to be bound as a mouse event.

For example, mou-select-word supports selecting a brace block, selecting a word, or selecting multiple words (double click and drag).

That works for me.

But what am i doing wrong with mou-select-word? 

In c/c++, mou-select-word does nothing either double-click or mou-select-word as command, like select-matching-brace.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4896
  • Hero Points: 399
Re: Select the matching brace via double-clicking a brace (SE 14.0.2.2)
« Reply #16 on: August 07, 2018, 10:21:34 pm »
The "mou-" commands are typically intended only to be invoked by mouse events.

Likewise, commands that don't have "mou-" should typically never be bound to a mouse event.

We haven't enforced this restriction. This has confused users. You're not the only one.

gixxer

  • Community Member
  • Posts: 10
  • Hero Points: 0
Re: Select the matching brace via double-clicking a brace (SE 14.0.2.2)
« Reply #17 on: August 07, 2018, 10:26:28 pm »
Ok, thanks.

I'm not looking to create any new precedence.  I'm okay working within the guidelines.

But can you help with how to get mou-select-word to do selecting of brace block?

How do i accomplish this?  I've reset to default configuration for testing sake.