After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 610387 - Tabbing auto-indent does not work
Tabbing auto-indent does not work
Status: RESOLVED OBSOLETE
Product: anjuta
Classification: Applications
Component: plugins: language-support-c-cpp-java
git master
Other Linux
: Low enhancement
: ---
Assigned To: Naba Kumar
Anjuta maintainers
Depends on:
Blocks:
 
 
Reported: 2010-02-18 18:58 UTC by Naba Kumar
Modified: 2020-11-07 12:12 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Naba Kumar 2010-02-18 18:58:20 UTC
Steps

1. Open a project
2. Open a C file
3. Make sure smart indentation is enabled in preferences.
4. Move the cursor to a line (anywhere in the line).
5. Press tab.

Expected outcome: Autoindents the line, ala emacs.

Actual outcome: Inserts a tab.

I am using sourceview editor. Is it that it's not implemented for it? or autoindent in general is not working? Without this, writing code is really laborious.
Comment 1 Naba Kumar 2010-02-18 19:29:16 UTC
Looking at source, there is no hook from tab press to autoindent. Perhaps, we can introduce a preference to enable-disable this. Enabling this means user is never able insert a literal tab in his source file (which is the trade off).
Comment 2 Johannes Schmid 2010-02-18 19:48:04 UTC
This is an additional feature, reduced severity.

It's probably not difficult to implement this if someone wants it but it definitly needs an additional preference option. "Smart indentation" just means that the next line is indented correctly when you press Enter. "Edit->Autoindent" does exactly the same, you can probably set its shortcut to "Tab".
Comment 3 Naba Kumar 2010-02-18 20:00:49 UTC
Reduced priority as well. ctrl-i does for now.
Comment 4 André Klapper 2020-11-07 12:12:54 UTC
bugzilla.gnome.org is being replaced by gitlab.gnome.org. We are closing all
old feature requests in Bugzilla which have not seen updates for many years.

If you are still requesting this feature in a currently supported version of GNOME (currently that would be 3.38), then please feel free to report it at https://gitlab.gnome.org/GNOME/anjuta/-/issues/

Thank you for reporting this issue and we are sorry it could not be implemented.