Does not always intelligently handle closing characters

Started by joshbenner, June 19, 2010, 05:30:06 PM

Previous topic - Next topic

joshbenner

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.

alex

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.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]