Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#37 tab deletes selected text

open
nobody
None
4
2003-02-09
2003-02-08
Anonymous
No

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

Discussion

  • Andrew Hood
    Andrew Hood
    2003-02-08

    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.

     
  • Thorsten Haude
    Thorsten Haude
    2003-02-08

    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()
    }
    }

     
  • Scott Tringali
    Scott Tringali
    2003-02-09

    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.

     
  • Scott Tringali
    Scott Tringali
    2003-02-09

    • labels: 355502 -->
    • priority: 5 --> 4
     
  • Carsten Hahn
    Carsten Hahn
    2003-12-10

    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.