Author Topic: Does not always intelligently handle closing characters  (Read 411 times)

Offline joshbenner

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Does not always intelligently handle closing characters
« on: June 19, 2010, 04:30:06 pm »
HippoEDIT has a magnificent feature where if you type a character that opens a pair, such as a quote or bracket, it automatically inserts the closing character. Then, when you get to the point where you would type the closing character, if you type it, HippoEDIT does NOT insert a new character, but simply skips over the auto-inserted one -- this is wonderful!

However, if you open a pair, then open a pair inside it, HippoEDIT will not auto-skip the closing of the outside pair.

This works as expected when typing:

myFunction(myVar)

However, this does not:

myFunction("string")

If you type what you would expect to work given HippoEDIT's feature, this is what actually ends up in the editor:

myFunction("string"))

Because the pair of quotes was auto-closed, the pair of parentheses are no longer automatically handled by HippoEDIT, leading to a distracting and unexpected insertion of an unwanted parenthesis.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Does not always intelligently handle closing characters
« Reply #1 on: June 19, 2010, 08:27:55 pm »
Hi Josh,

welcome on forum. Here are details how auto brackets feature works in HE (I have added some information about your problem).

Briefly: editor remembers only last pair of auto close symbols. This is from one side. From another side, feature with eating of auto added symbol added for fast typing, but if you want to add close symbol already after inserting quotes, this is not a fast typing. You at least need to move one symbol left, and probably look on the screen. So, I have doubts that this feature worse development ;) but you can describe scenario once more, step by step. Maybe reason will be more clear.
Something like:
- press (
- press "
- type abc
...
and where problem occurs.

When problem is clear, solution is not complex and behavior is transparent for users - I will do it.

Best regards,
Alex.

 

Related Topics

  Subject / Started by Replies Last post
5 Replies
1027 Views
Last post February 01, 2009, 06:13:00 pm
by Stefan
2 Replies
452 Views
Last post February 17, 2009, 10:48:50 pm
by alex
3 Replies
800 Views
Last post March 17, 2009, 12:17:53 pm
by alex
1 Replies
600 Views
Last post June 18, 2009, 04:21:31 pm
by alex
1 Replies
153 Views
Last post July 24, 2011, 06:52:04 pm
by alex