#596 Tab key can't insert Tab characters

open-accepted
nobody
General (289)
5
2014-08-14
2010-12-08
fantasai
No

I use spaces to indent, but I sometimes need to type a tab character. For example, in Makefiles, or in tab-separated data files. So I have my indentation settings set to "indent with spaces", and I unchecked the "Tab key indents" box. But the Tab key still only inserts spaces.

Steps to Reproduce:
1. Make sure "Tab key indents" preference checkbox is unchecked.
2. Set indentation mode to Spaces (2 spaces)
3. Open a new document.
4. Press Tab.
5. Type some letters.
6. Press Tab again.

Expected Results:
Pressing Tab key inserts a Tab character (both times).

Actual Results:
Pressing Tab key inserts spaces that align with the tab stops.

Using Geany 0.19.1 on Linux.

Discussion

  • Nobody/Anonymous

    I met same problem, and even worse. I couldn't insert tab charachers with any configuration, whether "indent with spaces", "Tab key indents" checked or not.
    Geany-INFO: Geany 0.21, en_US.UTF-8
    Geany-INFO: GTK 2.24.4, GLib 2.28.6
    Ubuntu 11.04

     
  • Lex Trotman

    Lex Trotman - 2012-09-13

    Bug still present in Geany 1.23 (git >= c05f1bd), in fact the whole relationship of tab and indents seems wrong. Can't insert tab characters at all unless tab indents is chosen.

     
  • Lex Trotman

    Lex Trotman - 2012-09-13
    • status: open --> open-accepted
     
  • Colomban Wendling

    (FTR, one can always insert a tab in a file indented with spaces using the "edit->insert alternative whitespace" command)

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks