atom / status-bar

Status bar for Atom
MIT License
100 stars 72 forks source link

Add soft tab and tab width #36

Open kevinsawicki opened 10 years ago

kevinsawicki commented 10 years ago
mik01aj commented 9 years ago

+1.

I mentioned the same enhancement in https://github.com/atom/atom/issues/5497:

I would love to have some status bar icon showing the current status of this flag (tabs or spaces). Something like a warning icon that says "hey, you have chosen to use spaces in the preferences, but this file uses tabs, so Atom will indent your lines with tabs". The current behaviour is far from intuitive.

Imho just a small icon with tabs/spaces (» or ···) symbol would be enough. And it could be grayed out if Atom is just using the default set in preferences.

ricardograca commented 9 years ago

There's this package which ticks all of those options except the last one, which I'd also like to have.

rbu commented 9 years ago

indentation-indicator is doing the right thing. Instead of thinking of a smart icons you have to learn and understand, just put "Spaces: 4" or "Tabs: 2" in there. Could that package just be merged into the default status bar?

Abdillah commented 9 years ago

Solving this issue is very important IMO, once this pull request is merged. It implements scoped setting of new tabType.

benogle commented 9 years ago

@Abdillah would you be interested in creating a PR to add this functionality?

Abdillah commented 9 years ago

@benogle sure, let me try on this.

garygreen commented 8 years ago

Check out the tab control package which allows you to do everything in this issue. It would be nice if this was in core though, it's in sublime and I'm pretty sure a lot of people would like it too.

memeplex commented 5 years ago

The tab-control package works great, but this surely is a core feature, every other editor I used, and I used a lot of them along the last 20 years, includes this feature one way or another. Tab width assumptions change from file to file, from project to project, not only from language to language. The flexibility to change tab width on-the-fly is a must have.