very important feature missing - Backspace Unindents !

Working on new editor enhancements?
User avatar
nase09
User
User
Posts: 33
Joined: Sat Jun 07, 2008 11:45 am

very important feature missing - Backspace Unindents !

Post by nase09 »

Hi there,

My 1st prog. language is Delphi - the Delphi Editor is great. The 'feature' I miss the most in Purebasic is 'Backspace Unindents' (so is it called in the Delph(7) Editor Options - other ide's have it, too). Its very useful(and very 'intuitive').

Code: Select all

Example:
   a=123
   if b<>a
        b=123
        |  <-- cursor
[after 1 backspace :]
   a=123
   if b<>a
       b=123
   | <-- new cursor pos.
[after 1 more backspace :]
   a=123
   if b<>a
       b=123
| <-- new cursor pos.
not very impressive, eh ? But you'll get used to this very quickly, and I bet you'll LOVE it!
I like Purebasic a lot, this feature would make it even better. (Please please give it a try.. and implement it asap)
milan1612
Addict
Addict
Posts: 894
Joined: Thu Apr 05, 2007 12:15 am
Location: Nuremberg, Germany
Contact:

Post by milan1612 »

I support this request as I miss this feature too. An optional setting for it would be great!
Windows 7 & PureBasic 4.4
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Backspace unindents is good, but Delphi doesn't have all this stuff either. Does Ctrl+Delete work in Delphi by now? Without it I feel like I'm working with only one arm.
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

enable this option : 'Preferences > editor > use real tab'
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
nase09
User
User
Posts: 33
Joined: Sat Jun 07, 2008 11:45 am

Post by nase09 »

Trond wrote:Backspace unindents is good, but Delphi doesn't have all this stuff either. Does Ctrl+Delete work in Delphi by now? Without it I feel like I'm working with only one arm.
They removed it ?? In Delphi 7 it works (also Ctrl+Del).
User avatar
nase09
User
User
Posts: 33
Joined: Sat Jun 07, 2008 11:45 am

Post by nase09 »

eddy wrote:enable this option : 'Preferences > editor > use real tab'
no thats not the way it should work :(
(this only 'deletes' tabs you entered before..)
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

nase09 wrote:
Trond wrote:Backspace unindents is good, but Delphi doesn't have all this stuff either. Does Ctrl+Delete work in Delphi by now? Without it I feel like I'm working with only one arm.
They removed it ?? In Delphi 7 it works (also Ctrl+Del).
I have only tried older Delphi versions. It good that they finally added it.
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

I added this option in my plugin :)

[edited]
You can test it...
http://www.purebasic.fr/english/viewtopic.php?t=31689
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
nase09
User
User
Posts: 33
Joined: Sat Jun 07, 2008 11:45 am

Post by nase09 »

eddy wrote:I added this option in my plugin :)
hmmm.. looks interesting.
(with all options enabled it's a bit "too much auto" for me.., but
I really like some of them)

But 'Backspace Unindents' doesn't work how it should do (but I think you can correct it easily).
Backspace Unindent is not "one Tab to the left". It's more like "find the first character in the previous line(s)"

example 2 :

Code: Select all

   
  a=123 
  if (a<>b) or (b=0) 
                b=123 
                |  <-- cursor 
[after 1 backspace :] 
  a=123 
  if (a<>b) or (b=0) 
                b=123 
  |  <-- cursor 
[after 1 more backspace :] 
  a=123 
  if (a<>b) or (b=0) 
                b=123 
|  <-- cursor 
I hope you know what I mean.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

It should be one "tab to the left". If you have indented your code properly (with only one tab) then they work mostly the same.
Post Reply