Skip to content
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

Closed
gered opened this issue Jan 7, 2014 · 7 comments
Closed

Namespace in tabs: option to revert to old tab naming? #224

gered opened this issue Jan 7, 2014 · 7 comments
Milestone

Comments

@gered
Copy link

gered commented Jan 7, 2014

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?

@cursive-ide
Copy link
Owner

Yeah, this should be pretty straightforward. Do you think you would prefer a shortened namespace, as discussed in #8?

@gered
Copy link
Author

gered commented Jan 9, 2014

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.

@hutch
Copy link

hutch commented Jan 9, 2014

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.

@gered
Copy link
Author

gered commented Jan 9, 2014

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).

@cursive-ide
Copy link
Owner

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.

@cursive-ide
Copy link
Owner

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.

@cursive-ide cursive-ide modified the milestones: 0.1.17, Shortlist Mar 8, 2014
@cursive-ide
Copy link
Owner

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 clojure.tools.nrepl.middleware.interruptible-eval will be rendered as c.t.n.m.interruptible-eval which is 26 chars due to the large number of segments and the long last segment name. But hopefully those cases are rare. Config is at Settings→Clojure→Editor tab style, and the default is now Truncated namespace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants