Page MenuHomePhabricator

Option to allow tab key to indent text [T3965]
AbandonedPublic

Authored by skyronic on Jul 20 2014, 11:54 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 17, 2:49 PM
Unknown Object (File)
Fri, Apr 5, 4:55 PM
Unknown Object (File)
Fri, Apr 5, 4:31 PM
Unknown Object (File)
Fri, Apr 5, 4:22 PM
Unknown Object (File)
Mar 13 2024, 6:01 PM
Unknown Object (File)
Feb 17 2024, 3:11 AM
Unknown Object (File)
Feb 12 2024, 10:03 PM
Unknown Object (File)
Feb 4 2024, 4:47 AM
Tokens
"Evil Spooky Haunted Tree" token, awarded by skyronic.

Details

Summary

All programming text editors have "Tab" key to insert indentation.
Additionally, while discussing code related changes, we might need to
insert whitespace, and remarkup also uses tab for code.

This patch makes the tab key simply indent 4 spaces. However it
keeps this optional and can be enabled by a new panel in the preferences.

If this is accepted I will add additional features like:

  • Preserving indentation when "Enter" is pressed
  • "Shift+Tab" de-indenting the line
Test Plan

Tried disabling the option and confirmed that the behavior stops

Diff Detail

Repository
rP Phabricator
Branch
tab_indents
Lint
Lint Errors
Unit
Tests Passed
Build Status
Buildable 1793
Build 1794: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

skyronic retitled this revision from to Option to allow tab key to indent text [T3965].
skyronic updated this object.
skyronic edited the test plan for this revision. (Show Details)
skyronic added a reviewer: epriestley.
skyronic added subscribers: chad, timor.
epriestley edited edge metadata.

We aren't interested in bringing this upstream any time soon. See T3965. See also T8227 for discussion of the enormous barrier faced by changes which introduce options.

This revision now requires changes to proceed.May 17 2015, 2:09 PM