The default behavior is retained if there are more than one projects.
It is generally more useful to have the konsole opened with the project root,
instead of the default which is kdevelop's working directory.
Details
- Reviewers
brauch - Group Reviewers
KDevelop - Commits
- R32:144ab70c5d40: Open konsole with the active document's project root or it's directory
Diff Detail
- Repository
- R32 KDevelop
- Branch
- konsole-switch
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 255 Build 255: arc lint + arc unit
I thinks that's a good idea, although it is only a matter of typing s! to access the current file's working directory.
Could you think of a way to start in the project directory of the currently viewed file (if it's local)? The feature would then be useful with multiple opened projects.
plugins/konsole/kdevkonsoleview.cpp | ||
---|---|---|
75 | Hm, does this make sense? I very rarely have sessions with just one project open. Maybe instead use the current document's path or, if you think that is better, the root path of the project in which the current document is? |
Open konsole with the active document's project root or it's directory
If the active document is associated with any opened projects,
that project's root directory is used, otherwise the document's directory is
used.
If there is no active directory, default behavior is retained.
Still missed checking if the document is local at one place, sorry about that.
This should be the final change.
I can't submit it myself.
You can use this comment as the commit message: https://phabricator.kde.org/D13654#282183
Thanks