Bug 372209

Summary: Feature request: full path in tab names & auto locate current file in project view
Product: [Applications] kdevelop Reporter: Fran <phegoruthi>
Component: generalAssignee: kdevelop-bugs-null
Status: REOPENED ---    
Severity: wishlist CC: badbuddha91, igorkuo
Priority: NOR Keywords: junior-jobs
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: new options locations

Description Fran 2016-11-08 10:43:35 UTC
In many cases the names of the files are the same, at least in PHP, like:

  -rootdir
      index.php 
      -dir1 
          index.php 
      -dir2 
          index.php

Then all your opened document tabs appear with the name "index.php", which makes it very difficult to identify them. It would help the full path in the name of the tab or at least part of it "...dir1/index.php"

Adding confusion that the open file is not automatically located in the project view, would be interesting the same behavior as the documents tool view.
Comment 1 Kevin Funk 2016-11-08 11:26:30 UTC
Regarding your first issue: I think using the full path in the tab title is not feasible, it'll require way too much space (and you'd end up being able to just display one tab after all...). Which kind of defeats the purpose of a tab bar.

Did you think about just disabling the tab bar (Settings -> Configure KDevelop -> User Interface -> [ ] Show Tabs)? This in combination with the "Documents" tool view would probably solve all your issues.

Regarding your second issue: This is on purpose, there's an extra action which allows you to sync the currently open file with the project tree view; but by default it is intentionally not in sync. The project tree view allows you to keep the selection on a particular item which is used as the default build target when there's no build sequence specified.
Comment 2 Fran 2016-11-08 11:57:03 UTC
Currently I have the tabs disabled, as you comment, since they are useless, it would suffice to be able to include part of the route. I also use the view of documents and projects at the same time.

I pointed out that it was PHP because actually in other types of projects, the tabs and synchronized the current behavior is desirable, not for PHP or for another script/interpreted language.
Comment 3 Fran 2016-11-08 12:11:38 UTC
An argument in favor of this is that other IDEs include these options, but I understand the need to prioritize ... I wish it were not completely discarded.

Thank you.
Comment 4 Kevin Funk 2016-11-08 12:44:48 UTC
Maybe we could use the same feature we have in the Document Switcher widget (Ctrl+Tab), i.e. that we show 'more parts' of the file path in case path segments are ambiguous. That could make sense IMO.

Marking as a junior-job. Thanks for your feedback.
Comment 5 Fran 2016-11-08 14:29:36 UTC
Created attachment 102122 [details]
new options locations

In my opinion it would be ideal to include an option for the tabs in "Settings -> Configure KDevelop -> User Interface" and a button in the projects view, see attached images.

The option of tabs can be made to show the path of the file up to a maximum of X characters, this maximum could be set by the user or fixed set in the application.

In this way the current behavior would not be affected.
Comment 6 badbuddha91 2016-12-12 04:05:56 UTC
Can you I pick up this, under people's guidance ? 
I start the kde with kdestart using the script. 
Using what application should I open the document ? gedit ?
Comment 7 Igor Kushnir 2024-05-21 18:13:57 UTC
> Adding confusion that the open file is not automatically located in the project view,
> would be interesting the same behavior as the documents tool view.
An auto-sync option exists for several years now and is on by default. The option can be accessed by mouse-clicking and holding the leftmost action on the Project tool view's toolbar. A short click on the leftmost action synchronizes to the currently active tab once (on demand), as before.