Ticket #1751 (new enhancement)

Opened 15 years ago

Last modified 13 years ago

Indenting should behave EXACTLY like Tab/Backspace

Reported by: dborca Owned by:
Priority: major Milestone: Future Releases
Component: mcedit Version: 4.7.0-pre3
Keywords: Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

part of #1489

  1. Indenting should behave EXACTLY like Tab/Backspace? will behave when used on a single, non-selected line.

but Tab/Backspace? on a single, non-selected line work as tab / backspace
tab - insert <tab>, backspace - delete 1 char.

Or what do you mean?


Not if you have the default configuration:
[x] Fake half tabs
[ ] Backspace through tabs
[ ] Fill tabs with spaces
Tab spacing: 8

 Step0:
 text

 Step1: hit Tab
     text
 
 Step2: hit Tab
 <------>text
 
 Step3: hit Tab
 <------>    text
 
 Step4: hit Backspace
 <------>text
 
 Step5: hit Backspace
 text
 

Change History

comment:1 Changed 15 years ago by ralesk

(semi off)

Does anyone have any idea what the fake half tabs is good for? :) I have so far only created badly indented files with it.

If anything, it shouldn't be default. It is recommended that you indent with either only tabs or only spaces, mixing them only leads to trouble.

comment:2 Changed 15 years ago by ossi

the half-tabs are essentially support for 4-space indents in emacs-like mixed tabs mode. the number 4 is really pretty arbitrary, it just happens to be the most common case.

comment:3 Changed 15 years ago by angel_il

  • Type changed from defect to enhancement

comment:4 Changed 14 years ago by andrew_b

  • Component changed from mc-core to mcedit

comment:5 Changed 14 years ago by pfalcon

Half-tabs are good even in "fill tabs with spaces" mode. So, it's stable way to get 4-space indent, no matter if you use tabs or avoid them.

comment:6 Changed 13 years ago by andrew_b

  • Branch state set to no branch
  • Milestone changed from 4.7 to Future Releases
Note: See TracTickets for help on using tickets.