Bug 386345 - There is no simple way how to focus/highlight/select currently edited file in the "Projects" toolview
Summary: There is no simple way how to focus/highlight/select currently edited file in...
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: UI: general (show other bugs)
Version: 5.1.2
Platform: Neon Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-30 07:36 UTC by Venca B Spam
Modified: 2017-10-30 08:14 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Venca B Spam 2017-10-30 07:36:03 UTC
This is feature request, not a bug. I did not find suitable place for feature request.

Feature request: 
"Focus/highlight/select currently edited file in the project view."

Current state:
There is no simple way how to focus/highlight/select currently* edited file in the "Projects" toolview"(*or any file opened in the editor tab).

Business requirement:
The user shall be able to quickly find currently opened or edited file in the "Projects" toolview in order to get context of the file. The immediate action "Select in projects view" should be accessible:
- from editor context menu, 
- from editor tab context menu, 
- have the possibility to bind to user defined "shortcut".

User story:
- Bob opens large project
- Bob will start build of the project
- There are multiple errors in CMakeList.txt files, which Bob opens by clicking on the error messages showed in the "Build" toolview.
- Bob finds that there are so many CMakeList.txt files opened in the editor
- Bob wants to identify context of actually opened file
- Bob press "Ctrl+Alt+P" and get the current file highlighted/selected in the "Projects" toolview.

Notes:
The shortcut "Ctrl+Alt+P" is just example/placeholder for more appropriate shortcut.

Instead using the shortcut, Bob may want to use particular context menu.

Alternatively if the file is not part of any project, the file may be highlighted in the Filesystem toolview.
Comment 1 Kevin Funk 2017-10-30 07:42:00 UTC
Hmm, isn't that what the "Locates current document ..." action in the projects toolview's tool bar does?

It also has a default shortcut:
  Ctrl+<

You can search for the action in the shortcut editor dialog:
  Settings -> Configure Shortcuts
Comment 2 Venca B Spam 2017-10-30 08:06:44 UTC
Thank you!

Yes, it is exactly what I was looking for.

My toolview had disabled toolbar so I did not see the icon and did not find it elsewhere.

Once it is here :-) what do you think about to have it in the context menu?
Comment 3 Friedrich W. H. Kossebau 2017-10-30 08:13:17 UTC
You can find the action in the context menu of the tool view itself (RMB click either on title bar of the tool view or the view tool toggle button at the window border).

IMHO adding it as well to the context menu shown when invoking that menu inside the Projects tool view would have disadvantages:
a) clutters that menu some more
b) mixes different contexts
Comment 4 Kevin Funk 2017-10-30 08:14:44 UTC
Yep, I don't think this action needs to be added in more places.