I have a feeling that while I would consider this a bug, it may be considered a feature.
Here’s the situation: I have soft tabs set to off (as like to use real tabs for indentation). My tab width is the default of 2. If I load a file in that uses spaces (in my case 4 spaces, but that’s only a side issue) then Atom will detect this and “helpfully” convert the indentation to tabs for me.
I don’t really like this because I want to leave an opened file in the format it uses (I’d have though Atom could detect and put the editor in the right mode). And the side issue is that if the file uses any multiple of my tab size for its indentation (in this case 4), it replaces the four spaces (one tab’s worth in the file) with two tabs (two tabs’ worth in Atom terms). This is bad.
Any idea if this would be considered a bug, or if it’s a feature and I’d need to raise a feature request to add in a “detect indentation” mode? To me it seems like a bug only in that it can mess with something that works, and it’s hopefully generally agreed that indentation detection is good, but the effort to detect indentation is probably too much for a <1 release.
I’d like to hear people’s thoughts either way.