Author Topic: Add option to select text between matching braces  (Read 583 times)

Offline Arthur

  • Hero Member
  • *****
  • Posts: 624
  • Karma: +1/-0
  • He who is ashamed of asking is afraid of learning.
    • View Profile
    • My Blog
Add option to select text between matching braces
« on: April 23, 2009, 09:31:44 pm »
I suggest adding an option to be able to select text between braces.

E.g. my code below:

errJobCreated = objNewJob.Create _
 ( sBinDir & "Cleanup.cmd", "********110000.000000" & offset , _
 True, 64, , , JobID )

here I need to select all the text between (and)

Preferably I would like to have it available on right-click inside the file, under Selection... -> Select Between Matching Braces

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Add option to select text between matching braces
« Reply #1 on: April 23, 2009, 10:29:10 pm »
Use Expand/Shrink selection from Edit->Selection.
Repeat Expand until you get a desired region selected.

Offline Arthur

  • Hero Member
  • *****
  • Posts: 624
  • Karma: +1/-0
  • He who is ashamed of asking is afraid of learning.
    • View Profile
    • My Blog
Re: Add option to select text between matching braces
« Reply #2 on: April 24, 2009, 03:25:14 am »
Did not think about that, cool, I used Alt-Down Arrow straight while inside braces [works inside any braces, BTW] and it does what I need.
A hip-hip hooray to HippoEdit - the smartest editor of all!!

Offline urlwolf

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Add option to select text between matching braces
« Reply #3 on: May 02, 2009, 03:35:58 pm »
very useful!
however, for interacting with REPL like ipython, R etc (scratch python; currently HE doesn't support scopes that do not use {}), it'd be more useful if the scope selected didn't stop in the {} but selected from beginning of line.

Say I want to select an entire function... I need the begining, not only what's inside {}. Possible?

Offline JJK

  • Full Member
  • ***
  • Posts: 151
  • Karma: +2/-0
    • View Profile
Re: Add option to select text between matching braces
« Reply #4 on: May 02, 2009, 06:59:00 pm »
Yes, until now outlining .py files doesn't yet work, neither.
See here.
I hope that it will be enhanced with 1.50.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Add option to select text between matching braces
« Reply #5 on: May 03, 2009, 05:42:17 pm »
Hello urlwolf,

can you please provide an example, then for me would be more easier to udertand what you mean ;)
If the question was about selection of the indentation scope (as python uses), then expand selection should be available automatically as I would add support of such type of outlining. Hope (as JJK it owuld come with 1.50 :) )

Best regards,
Alex.

 

Related Topics

  Subject / Started by Replies Last post
13 Replies
1131 Views
Last post April 18, 2009, 08:10:43 pm
by Arthur
3 Replies
565 Views
Last post April 20, 2009, 08:28:28 pm
by alex
3 Replies
469 Views
Last post June 29, 2009, 08:34:29 am
by alex
2 Replies
579 Views
Last post June 05, 2010, 03:15:11 pm
by cichlasoma
2 Replies
67 Views
Last post March 23, 2012, 03:30:00 pm
by alex