Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Add settings to enable and disable softTabs autodetection #8186

Closed
wants to merge 17 commits into from

Conversation

Abdillah
Copy link
Contributor

@Abdillah Abdillah commented Aug 1, 2015

This solved the issue (partly), discussed on #3719.

I create new config item to specify tabType used by default. But, it clearly conflicting with softTabs config item. I didn't remove it, even I think it's safe to be removed, is it?

tabtype

Behaviour of tabType functions is discussed on issue atom#3719.

Also, introduce userTabTypeOverride variable which hold temporary
user preference on current editor.
@mnquintana
Copy link
Contributor

Thanks for contributing! This seems to break a lot of specs – you'll need to fix those before this can be considered for merging.

@Abdillah
Copy link
Contributor Author

Abdillah commented Aug 1, 2015

Ok, I don't aware of that tailing spec test and neither I have test it myself.
Thanks for pointing.

@Abdillah Abdillah changed the title 🐛 Fix toggle softTabs doesn't override current TextEditor autodetection setting Add settings to enable and disable softTabs autodetection Aug 3, 2015
Originally, it always autodetects. Now, it's only autodetect softTabs
when no @softTabs supplied on TextEditor construction or `editor.tabType`
has value 'auto'.
Originally, any value supplied will just be a fallback. Now, this
value is regarded as first priority. If this value not specified,
then autodetection will occurs.

Specification changes included.
@Abdillah
Copy link
Contributor Author

Abdillah commented Aug 7, 2015

Checkpoint One
Up to this point is test-error free, at least in my computer.
If travis say so, I'm ready for review..

@maxbrunsfeld
Copy link
Contributor

/cc @benogle, since you had some ideas about this one in #3719.

@benogle benogle self-assigned this Aug 12, 2015
@benogle benogle mentioned this pull request Aug 13, 2015
@benogle
Copy link
Contributor

benogle commented Aug 13, 2015

I've created a new PR to add this setting at #8356. This PR is trying to do too much (new API methods, setting config in the editor), and it is lacking specs. I have used a couple commits from this PR in the new one.

@Abdillah
Copy link
Contributor Author

@benogle Great! Thanks.
I will closes this, as I intent the same things as #8356.

@Abdillah Abdillah closed this Aug 13, 2015
@Abdillah Abdillah deleted the master branch August 13, 2015 01:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants