Author Topic: project file names  (Read 6034 times)

Offline DynV

  • Multiple posting newcomer
  • *
  • Posts: 10
    • DynV homepage
project file names
« on: October 25, 2011, 07:25:04 pm »
I just made a search and read Project_file#Project_options but couldn't find how to rename the file name in the tab. I'm adding files from another folder so it add ~60 characters before the file name making each tab about 3 times what a non-project tab width. I have to compare files so switch tab, and I have to keep scrolling the tab bar which won't react to the scroll wheel as Firefox do, making the process long.

I thought of modifying the file properties but the field of In project: isn't modifiable as far as I can tell. I'd also directly change the XML but I don't know which property to change ; I figure it would be something alike <Unit filename="..\..\..\..\..\folder1\folder2\folder3\folder4\name.ext" in_project_filename="name.ext" />

Is there a way to shorten the tab width of a file? Is there a way to really quickly scroll the tab bar?

Thank you for your help

In case the administrator wasn't in #codeblocks when I vehemently talked about the captcha, it's quite difficult. :(

Update 1:

title s/priject file names/project file names/
« Last Edit: October 25, 2011, 09:24:29 pm by DynV »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: priject file names
« Reply #1 on: October 25, 2011, 09:00:34 pm »
The option in the recent builds is Settings -> Editor -> General -> Others settings -> Editor title is the file's -> name only
In 10.05 should be something similar.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: priject file names
« Reply #2 on: October 25, 2011, 09:02:38 pm »
I just made a search and read Project_file#Project_options but couldn't find how to rename the file name in the tab. I'm adding files from another folder so it add ~60 characters before the file name making each tab about 3 times what a non-project tab width. I have to compare files so switch tab, and I have to keep scrolling the tab bar which won't react to the scroll wheel as Firefox do, making the process long.

I thought of modifying the file properties but the field of In project: isn't modifiable as far as I can tell. I'd also directly change the XML but I don't know which property to change ; I figure it would be something alike <Unit filename="..\..\..\..\..\folder1\folder2\folder3\folder4\name.ext" in_project_filename="name.ext" />

Is there a way to shorten the tab width of a file? Is there a way to really quickly scroll the tab bar?

Thank you for your help

In case the administrator wasn't in #codeblocks when I vehemently talked about the captcha, it's quite difficult. :(

You do not tell anything about the version of C::B you use, so I guess it's the 10.05-release.
Look into "Settings -> Editor -> General settings" there should be someting named "The editor's title is" (or something similar, I'm niot sure, as I use C::B from trunk).
Chose the seting that fits your needs.

In recent revisions you can advance through the tabs with the mousewheel or move the tab-bar with mousewheel+Ctrl.
It's configurable via "Settings -> Environment -> Notebooks appearance".
If you have 10.05-release, you can either switch to a nightly build or wait for the next release.

Nice to hear, that the captcha is hard to use :wink: .
Okay not nice for real users, but for the admins/moderators, because we have less spambots that register here.

Offline DynV

  • Multiple posting newcomer
  • *
  • Posts: 10
    • DynV homepage
Re: priject file names
« Reply #3 on: October 25, 2011, 09:18:04 pm »
Right on! :D No combination of modifier key with the scroll wheel will scroll the tab bar.

I use Code::Blocks 10.05 rev 6283.

Well if I wasn't so much annoyed, I most likely would have abandoned the forum subscription after 3 tries, it took me 5... Would OpenID slow down the spam? Or perhaps Google/Yahoo/MSN login (please do NOT use Facebook) I got an account on those.

Thanks for the IDE ; I was apprehensive of my teacher to use this one as I was using Eclipse but I find this quite nice.