[Cuis-dev] Surround selection for special characters

Gerald Klix Gerald.Klix.Secure at klix.ch
Tue Oct 18 14:49:32 PDT 2022


Hi Juan,

see below.

On 18.10.22 21:15, Juan Vuletich via Cuis-dev wrote:
> Apologies for not answering before.
> 
> I don't have a preference wrt requiring ctrl or not. Actually, having it 
> both ways is ok with me. But I'm not really happy about duplicating the 
> functionality in two different places.
> 
> BTW, has anybody checked VS Code, Eclipse, or some other mainstream code 
> editor?
Yes and no.

Yes, I checked Emacs.
At least it has something called “electric-pair-mode”,
which, when activated, inserts parenthesis in pairs,
even if there is no selection.

No, I know from the top of my head, that the JetBrains' products
insert pairs of parenthesis around a selection.

IHMO, Cuis does it in the right way. Sometimes I do want
to overwrite the selection, even with parenthesis, brackets
etc. pp.


HTH,

Gerald


> Thanks,
> 
> On 10/13/2022 11:28 AM, Luciano Notarfrancesco via Cuis-dev wrote:
>> Another suggestion: look at how VS Code does it. I haven’t used it in 
>> a while and I don’t have it handy right now, but it has 14 million 
>> users and maybe it is a good starting point to decide the option with 
>> best usability.
>>
>> On Thu, 13 Oct 2022 at 21:16 Hernán Wilkinson 
>> <hernan.wilkinson at 10pines.com <mailto:hernan.wilkinson at 10pines.com>> 
>> wrote:
>>
>>     Yeah, I agree with the one option idea.
>>     Juan, what do you think?
>>     Any others?
>>
>>
>>     On Thu, Oct 13, 2022 at 11:13 AM Luciano Notarfrancesco
>>     <luchiano at gmail.com <mailto:luchiano at gmail.com>> wrote:
>>
>>         I don’t have a preference for ctrl or not. It might be weird
>>         at the beginning if one is not used to it, since I sometimes
>>         make a selection and write over it, but if I stared typing (
>>         maybe I’ll get some unexpected behavior. But it’s ok, I can
>>         get used to it.
>>
>>         I just suggest that we should chose one option instead of
>>         having both with duplicated code.
>>
>>         On Thu, 13 Oct 2022 at 20:50 Hernán Wilkinson via Cuis-dev
>>         <cuis-dev at lists.cuis.st <mailto:cuis-dev at lists.cuis.st>> wrote:
>>
>>             I did not know we had that functionality!!
>>             Ah Hilaire says, the one I send (made by Matias) works
>>             without pressing ctrl or cmd (depending on the platform),
>>             just pressing the character and I think that behavior is
>>             better, don't you think?
>>
>>
>>             On Thu, Oct 13, 2022 at 4:13 AM Hilaire Fernandes via
>>             Cuis-dev <cuis-dev at lists.cuis.st
>>             <mailto:cuis-dev at lists.cuis.st>> wrote:
>>
>>                 The difference is you don't need to press the [Ctrl]
>>                 key to insert.
>>
>>                 Le 13/10/2022 à 06:26, Luciano Notarfrancesco a écrit :
>>>                 As Hilaire said, we already have that functionality,
>>>                 see TextEditor>>#enclose:
>>>
>>                 --                 GNU Dr. Geo
>>                 http://drgeo.eu
>>                 http://blog.drgeo.eu
>>
>>                 --                 Cuis-dev mailing list
>>                 Cuis-dev at lists.cuis.st <mailto:Cuis-dev at lists.cuis.st>
>>                 https://lists.cuis.st/mailman/listinfo/cuis-dev
>>
>>
>>
>>             --             *Hernán Wilkinson
>>             Agile Software Development, Teaching & Coaching*
>>             *Phone: +54-011*-4893-2057
>>             *Twitter: @HernanWilkinson*
>>             *site: http://www.10Pines.com <http://www.10pines.com/>*
>>             Address: Alem 896, Floor 6, Buenos Aires, Argentina
>>             --             Cuis-dev mailing list
>>             Cuis-dev at lists.cuis.st <mailto:Cuis-dev at lists.cuis.st>
>>             https://lists.cuis.st/mailman/listinfo/cuis-dev
>>
>>
>>
>>     --     *Hernán Wilkinson
>>     Agile Software Development, Teaching & Coaching*
>>     *Phone: +54-011*-4893-2057
>>     *Twitter: @HernanWilkinson*
>>     *site: http://www.10Pines.com <http://www.10pines.com/>*
>>     Address: Alem 896, Floor 6, Buenos Aires, Argentina
>>
> 
> 
> 


More information about the Cuis-dev mailing list