[Solved] "Surround Selection on (,{,[" issues

Started by Stefan, October 10, 2009, 10:13:54 PM

Previous topic - Next topic

Stefan

Alex, FYI, just for the record.

1.) Surrounding with ' + ' in cmd-files:

If i select an word from right-to-left
and press Shift+# on german keybord to insert an ' -sign
this doesn't works, i get an '  on the left side only , not on both.
If i select from left-to-right or with double-click it works, i get ' on both sides.

Then i have tested this with *.txt - here R-to-L selection with '  works.




2.)  Surrounding with " + " in txt-files:

Then i have added "+" to "txt_spec.xml" to test "-surrounding:
 <SYNTAX id="text" name="Plain Text" inherit="def_text" inherit_url="deftext_spec.xml">
   <SPECIFICATION>
     <FilePattern mask="*.txt;*.diz;*.log;*.trc"/>
     <OpenClose>()[]{}''
""</OpenClose>
     
(The same as found in batch_spec.xml)

but doing an selection and press Shift+2 on german keyboard to get an "-surround didin't work.
The selection is deleted and an single  "-sign  is inserted instead.
The same test with *.cmd files works, the selection is surrounded by "-signs.


3.) this surrounding didn't works for %-signs?!
I guess because there is no extra opening and closing sign.
So i use an "Code Template": %%%CurrentWord%%% for that issue.


Tested with 726.
Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-

alex

Hi Stefan,

here can be work as defined...

That is rather hard to handle correctly symmetric braces, because HE does not know is it open or close brace inserted. This is true, but this is not a case here, just checked the coding ;)

1) I need example. By me works. Probably bug, but as far I see both direction are considered.
2) I think once problem comes from context ;) Example text.
3) Also works for me in txt file after adding %% to OpenClose.

Best regards,
Alex.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

Stefan

Today it works for me too.  All '  '  and "  "  and % % works.
Tested with the new build. So yesterday evening smtg was puzzled up with my old setting. Sorry.
Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-