Text Indentation in Pharo editor

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Text Indentation in Pharo editor

Torsten Bergmann
Hi,

in most code editors I know one can select a (multiline) block of code/text and then hit
TAB to indent and move it from the position to the right side.

Using SHIFT+TAB one can move it back to the left. In Pharo the selected text unfortunately
is always deleted instead of moved/indented when hitting TAB.

Is such an editor mode or special key combination available? If not could this easily be
brought into the current text/code editor(s) in Pharo 7? Or will a possible upcoming Bloc
text/code editor support such behavior?

This would be really nice to have and move Pharo editor away from being like Notepad. Because
editors in Eclipse, NetBeans, VS, Brackets, Atom, Notepad++ all support this TAB Indentation
out of the box. ;)

Thanks
T.



Reply | Threaded
Open this post in threaded view
|

Re: Text Indentation in Pharo editor

Pavel Krivanek-3

2017-12-07 16:19 GMT+01:00 Torsten Bergmann <[hidden email]>:
Hi,

in most code editors I know one can select a (multiline) block of code/text and then hit
TAB to indent and move it from the position to the right side.

Using SHIFT+TAB one can move it back to the left. In Pharo the selected text unfortunately
is always deleted instead of moved/indented when hitting TAB.

Is such an editor mode or special key combination available? If not could this easily be
brought into the current text/code editor(s) in Pharo 7? Or will a possible upcoming Bloc
text/code editor support such behavior?

Ctrl + Shift + L or Ctrl + Shift + R

-- Pavel 

This would be really nice to have and move Pharo editor away from being like Notepad. Because
editors in Eclipse, NetBeans, VS, Brackets, Atom, Notepad++ all support this TAB Indentation
out of the box. ;)

Thanks
T.




Reply | Threaded
Open this post in threaded view
|

Re: Text Indentation in Pharo editor

Sean P. DeNigris
Administrator
Pavel Krivanek-3 wrote
> Ctrl + Shift + L or Ctrl + Shift + R

Mac: Cmd + …



-----
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Developers-f1294837.html

Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: Text Indentation in Pharo editor

Torsten Bergmann
In reply to this post by Pavel Krivanek-3
Hi Pavel,

so we do it with different shortcuts than regular editors - but at least it is there.
Thanks for the hint!

Bye
T.
 
 

Gesendet: Donnerstag, 07. Dezember 2017 um 16:22 Uhr
Von: "Pavel Krivanek" <[hidden email]>
An: "Pharo Development List" <[hidden email]>
Betreff: Re: [Pharo-dev] Text Indentation in Pharo editor

 
2017-12-07 16:19 GMT+01:00 Torsten Bergmann <[hidden email][mailto:[hidden email]]>:Hi,

in most code editors I know one can select a (multiline) block of code/text and then hit
TAB to indent and move it from the position to the right side.

Using SHIFT+TAB one can move it back to the left. In Pharo the selected text unfortunately
is always deleted instead of moved/indented when hitting TAB.

Is such an editor mode or special key combination available? If not could this easily be
brought into the current text/code editor(s) in Pharo 7? Or will a possible upcoming Bloc
text/code editor support such behavior?
 
Ctrl + Shift + L or Ctrl + Shift + R
 
-- Pavel 
This would be really nice to have and move Pharo editor away from being like Notepad. Because
editors in Eclipse, NetBeans, VS, Brackets, Atom, Notepad++ all support this TAB Indentation
out of the box. ;)

Thanks
T.


 

Reply | Threaded
Open this post in threaded view
|

Re: Text Indentation in Pharo editor

Sean P. DeNigris
Administrator
Torsten Bergmann wrote
> so we do it with different shortcuts than regular editors

I wonder if it makes sense to allow the standard shortcut. The current one
is a bit like playing twister ;)



-----
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Developers-f1294837.html

Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: Text Indentation in Pharo editor

Ben Coman


On 8 December 2017 at 11:37, Sean P. DeNigris <[hidden email]> wrote:
Torsten Bergmann wrote
> so we do it with different shortcuts than regular editors

I wonder if it makes sense to allow the standard shortcut. The current one
is a bit like playing twister ;)

We should be different if there is a good reason, 
but where possible (especially on UI interface) we should align with the majority.  
I feel this case is the latter.

cheers -ben


Reply | Threaded
Open this post in threaded view
|

Re: Text Indentation in Pharo editor

Stephane Ducasse-3
I would love to have Ctrl E and Ctrl A.
And yes we should not be different for the sake of it.
For the moment the reason is simple: we are full of work and even more.

FYI: I'm starting at regular crash of the VM and regular superbad
behavior of the debugger (like hundred of debuggers, like spawing many
process)
there is a really bad problem there.

Setf

On Fri, Dec 8, 2017 at 10:52 AM, Ben Coman <[hidden email]> wrote:

>
>
> On 8 December 2017 at 11:37, Sean P. DeNigris <[hidden email]> wrote:
>>
>> Torsten Bergmann wrote
>> > so we do it with different shortcuts than regular editors
>>
>> I wonder if it makes sense to allow the standard shortcut. The current one
>> is a bit like playing twister ;)
>
>
> We should be different if there is a good reason,
> but where possible (especially on UI interface) we should align with the
> majority.
> I feel this case is the latter.
>
> cheers -ben
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Text Indentation in Pharo editor

Tudor Girba-2
Hi Stef,

Do you get the debugger issue even in a plain Pharo image?

Doru


> On Dec 8, 2017, at 3:40 PM, Stephane Ducasse <[hidden email]> wrote:
>
> I would love to have Ctrl E and Ctrl A.
> And yes we should not be different for the sake of it.
> For the moment the reason is simple: we are full of work and even more.
>
> FYI: I'm starting at regular crash of the VM and regular superbad
> behavior of the debugger (like hundred of debuggers, like spawing many
> process)
> there is a really bad problem there.
>
> Setf
>
> On Fri, Dec 8, 2017 at 10:52 AM, Ben Coman <[hidden email]> wrote:
>>
>>
>> On 8 December 2017 at 11:37, Sean P. DeNigris <[hidden email]> wrote:
>>>
>>> Torsten Bergmann wrote
>>>> so we do it with different shortcuts than regular editors
>>>
>>> I wonder if it makes sense to allow the standard shortcut. The current one
>>> is a bit like playing twister ;)
>>
>>
>> We should be different if there is a good reason,
>> but where possible (especially on UI interface) we should align with the
>> majority.
>> I feel this case is the latter.
>>
>> cheers -ben
>>
>>
>

--
www.tudorgirba.com
www.feenk.com

"Don't give to get. Just give."







Reply | Threaded
Open this post in threaded view
|

Re: Text Indentation in Pharo editor

NorbertHartl


> Am 08.12.2017 um 21:24 schrieb Tudor Girba <[hidden email]>:
>
> Hi Stef,
>
> Do you get the debugger issue even in a plain Pharo image?
>
I do

Norbert

> Doru
>
>
>> On Dec 8, 2017, at 3:40 PM, Stephane Ducasse <[hidden email]> wrote:
>>
>> I would love to have Ctrl E and Ctrl A.
>> And yes we should not be different for the sake of it.
>> For the moment the reason is simple: we are full of work and even more.
>>
>> FYI: I'm starting at regular crash of the VM and regular superbad
>> behavior of the debugger (like hundred of debuggers, like spawing many
>> process)
>> there is a really bad problem there.
>>
>> Setf
>>
>>> On Fri, Dec 8, 2017 at 10:52 AM, Ben Coman <[hidden email]> wrote:
>>>
>>>
>>>> On 8 December 2017 at 11:37, Sean P. DeNigris <[hidden email]> wrote:
>>>>
>>>> Torsten Bergmann wrote
>>>>> so we do it with different shortcuts than regular editors
>>>>
>>>> I wonder if it makes sense to allow the standard shortcut. The current one
>>>> is a bit like playing twister ;)
>>>
>>>
>>> We should be different if there is a good reason,
>>> but where possible (especially on UI interface) we should align with the
>>> majority.
>>> I feel this case is the latter.
>>>
>>> cheers -ben
>>>
>>>
>>
>
> --
> www.tudorgirba.com
> www.feenk.com
>
> "Don't give to get. Just give."

Reply | Threaded
Open this post in threaded view
|

Re: Text Indentation in Pharo editor

Stephane Ducasse-3
I think so too.
Yesterday we got a crazy stuff spawning UI processes like hell.
In fact I have the impression that a crazy progress is running from
time to time.
I wonder if it is not linked to tests.

Stef

On Sat, Dec 9, 2017 at 7:48 AM, Norbert Hartl <[hidden email]> wrote:

>
>
>> Am 08.12.2017 um 21:24 schrieb Tudor Girba <[hidden email]>:
>>
>> Hi Stef,
>>
>> Do you get the debugger issue even in a plain Pharo image?
>>
> I do
>
> Norbert
>> Doru
>>
>>
>>> On Dec 8, 2017, at 3:40 PM, Stephane Ducasse <[hidden email]> wrote:
>>>
>>> I would love to have Ctrl E and Ctrl A.
>>> And yes we should not be different for the sake of it.
>>> For the moment the reason is simple: we are full of work and even more.
>>>
>>> FYI: I'm starting at regular crash of the VM and regular superbad
>>> behavior of the debugger (like hundred of debuggers, like spawing many
>>> process)
>>> there is a really bad problem there.
>>>
>>> Setf
>>>
>>>> On Fri, Dec 8, 2017 at 10:52 AM, Ben Coman <[hidden email]> wrote:
>>>>
>>>>
>>>>> On 8 December 2017 at 11:37, Sean P. DeNigris <[hidden email]> wrote:
>>>>>
>>>>> Torsten Bergmann wrote
>>>>>> so we do it with different shortcuts than regular editors
>>>>>
>>>>> I wonder if it makes sense to allow the standard shortcut. The current one
>>>>> is a bit like playing twister ;)
>>>>
>>>>
>>>> We should be different if there is a good reason,
>>>> but where possible (especially on UI interface) we should align with the
>>>> majority.
>>>> I feel this case is the latter.
>>>>
>>>> cheers -ben
>>>>
>>>>
>>>
>>
>> --
>> www.tudorgirba.com
>> www.feenk.com
>>
>> "Don't give to get. Just give."
>

Reply | Threaded
Open this post in threaded view
|

Re: Text Indentation in Pharo editor

EstebanLM
In reply to this post by Stephane Ducasse-3


> On 8 Dec 2017, at 15:40, Stephane Ducasse <[hidden email]> wrote:
>
> I would love to have Ctrl E and Ctrl A.
> And yes we should not be different for the sake of it.
> For the moment the reason is simple: we are full of work and even more.
>
> FYI: I'm starting at regular crash of the VM and regular superbad
> behavior of the debugger (like hundred of debuggers, like spawing many
> process)
> there is a really bad problem there.
>
> Setf
>
> On Fri, Dec 8, 2017 at 10:52 AM, Ben Coman <[hidden email]> wrote:
>>
>>
>> On 8 December 2017 at 11:37, Sean P. DeNigris <[hidden email]> wrote:
>>>
>>> Torsten Bergmann wrote
>>>> so we do it with different shortcuts than regular editors
>>>
>>> I wonder if it makes sense to allow the standard shortcut. The current one
>>> is a bit like playing twister ;)
>>
>>
>> We should be different if there is a good reason,
>> but where possible (especially on UI interface) we should align with the
>> majority.

+1000
this is my work motto, and what I’m trying to do with my work on Pharo every day :)
and of course, lot of work is still needed.

>> I feel this case is the latter.

agreed.

Esteban

>>
>> cheers -ben
>>
>>
>