Author Topic: [Solved] "Surround Selection on (,{,[" issues  (Read 2667 times)

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 775
  • Karma: +6/-0
[Solved] "Surround Selection on (,{,[" issues
« on: October 10, 2009, 10:13:54 PM »
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">
      <FilePattern mask="*.txt;*.diz;*.log;*.trc"/>
(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.
« Last Edit: October 11, 2009, 05:01:20 PM by Stefan »
Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2224
  • Karma: +37/-3
    • HippoEDIT
Re: "Surround Selection on (,{,[" issues
« Reply #1 on: October 11, 2009, 12:53:24 AM »
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,

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 775
  • Karma: +6/-0
Re: "Surround Selection on (,{,[" issues
« Reply #2 on: October 11, 2009, 05:00:46 PM »
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.