Page 1 of 1

very important feature missing - Backspace Unindents !

Posted: Sat Jun 07, 2008 12:22 pm
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)

Posted: Sat Jun 07, 2008 12:29 pm
by milan1612
I support this request as I miss this feature too. An optional setting for it would be great!

Posted: Sat Jun 07, 2008 12:31 pm
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.

Posted: Sat Jun 07, 2008 1:56 pm
by eddy
enable this option : 'Preferences > editor > use real tab'

Posted: Sat Jun 07, 2008 4:14 pm
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).

Posted: Sat Jun 07, 2008 4:20 pm
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..)

Posted: Sat Jun 07, 2008 4:29 pm
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.

Posted: Sat Jun 14, 2008 3:26 pm
by eddy
I added this option in my plugin :)

[edited]
You can test it...
http://www.purebasic.fr/english/viewtopic.php?t=31689

Posted: Mon Jun 16, 2008 2:19 pm
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.

Posted: Mon Jun 16, 2008 4:05 pm
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.