tab deletes selected text
Brought to you by:
tringali
Highlight (select) a few lines of text. Press tab. The
selected text is deleted.
I don't know if this is expected and desired behaviour,
but I expected (hoped) it would indent the selection by
one tab stop.
I've seen this behaviour in Linux, on versions 5.1-5.3
Logged In: YES
user_id=36856
In NEdit tab is a character just like any other displayable
ASCII.
To achieve what you are trying to do use Ctrl-Shift-)
FYI Ctrl-) will only indent by one character.
Logged In: YES
user_id=119143
This is what I would expect, if I want the tab to be a
regular character. However, I don't, so I use these macros:
define SmartTab
{
if ($selection_start == -1)
{
process_tab()
} else
{
shift_right_by_tab()
}
}
define SmartUntab
{
if ($selection_start == -1)
{
insert_string("\t")
} else
{
shift_left_by_tab()
}
}
Logged In: YES
user_id=11321
This is intended behavior. The indent functions are not
invoked by tab. However, lots of editors seem to use tab
nowadays to invoke indentation features, so it seems like a
good idea to be compatible with them. As it stands, our
keyboard method of invoking indentation is unique.
Change to feature request for future consideration.
Logged In: YES
user_id=262140
the mentioned behaviour is IMHO very useful when
editing/fixing makefiles and the like where it happens quite
often that you have to replace something (some spaces...)
by a tab character. I'd prefer to leave it unchanged.