New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Namespace in tabs: option to revert to old tab naming? #224
Comments
Yeah, this should be pretty straightforward. Do you think you would prefer a shortened namespace, as discussed in #8? |
The shortened namespaces idea seems like it would be nicer, yeah. I don't think the filename part of the entire tab text should be shortened though. e.g. foo.bar.core, the "core" part should never be shortened down. The main problem I have right now is that before this change I could fit somewhere around 8 or 9 tabs without IntelliJ forcing some of them off the side and having to use the little menu it displays to access the rest (which is super annoying), or having bump everything down to 2 lines of tabs (eww! plus the way it reshuffles/organizes them when you close one is kind of confusing I find). I don't have the problem some of the people in #8 seem to have with working on a lot of similarly named files so a lack of namespace in the tab text never bothered me. |
I've taken to having the tabs on the left of the editing window rather than the top (they appear as a column between the project window and the main editor window). This allows for many more open tabs without strange behaviour. I've also got a wide screen so there's more room there anyway. I know many people don't like this arrangement, but it's worth a try if you haven't already. |
Yeah, I'm usually running on a 24" 1080p monitor, and work with IntelliJ having (from left to right) the project pane, code editor, and repl open. Right now I can only have 3-4 tabs open (depending on the namespace) without them wrapping or getting pushed out. I briefly toyed with having the REPL open across the bottom instead of on the right, but I found I preferred having more vertical space visible at once in that window, and didn't like that it took away from the vertical space in the main code window either. And I use the project pane a bit too often to want to have it hidden. Unfortunately doesn't leave enough horizontal room to have tabs along the sides (especially with the full namespaces). |
Or of course you could just turn tabs off entirely as documented here :-). I'll add a config switch for this in the next drop. |
Actually, this is slightly more complicated than I thought, so it won't be in the next drop. There's an unfortunate interaction between the name displayed in the editor tab, and the name displayed in the Recent Files list. I can't revert one easily without affecting the other, and the config will be very confusing. I'm going to see if I can come up with a better solution. |
This is fixed in the next build. There are now three options, File name, Full namespace and Truncated namespace. Truncated namespace will try to fit the name into a maximum of 16 chars by truncating the earlier segments in the namespace. In extreme cases, this can still produce names longer than 16 chars, for example |
I remember reading the original request for adding namespaces to tabs and thinking something along the lines of "sounds reasonable." But now that I've been using it for a while in 0.1.12, I actually think I preferred it the old way. With the namespaces showing in the tabs, the tab bar becomes cluttered quite a bit sooner then before. I realize that this is largely a matter of personal preference though. :)
Any chance of adding an option to allow toggling of whether the namespace is always shown in the tab text?
The text was updated successfully, but these errors were encountered: