Summary: | show read-only files in "File List" and editor tabs | ||
---|---|---|---|
Product: | [Developer tools] kdevplatform | Reporter: | Rob L <robert.leathley> |
Component: | general | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | abirvalg, adymo, aleixpol, foss, gabrimonfa, kfunk |
Priority: | NOR | Keywords: | junior-jobs |
Version: | 0.9.94 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 5.0.0 | |
Sentry Crash Report: |
Description
Rob L
2006-09-29 15:34:03 UTC
Same here with KDevelop 4.2.3 I have a lot of Read-Only Tabs open. When I want to make a change to a file, the only way of knowing if it is Read-Only is focus the editor and try to type something. There is no icon on the tab for indication. This is a major annoyance since I toggle Read-Only on/off a lot. Note: This has been just implemented in Kate: https://bugs.kde.org/show_bug.cgi?id=154897 *** Bug 310757 has been marked as a duplicate of this bug. *** *** Bug 294243 has been marked as a duplicate of this bug. *** Still not implemented. Should be super trivial to do a similar patch as in https://bugs.kde.org/show_bug.cgi?id=154897 for KDevelop. -> Junior job. Steps to reproduce: - Open a file - Tools -> [x] Read Only Mode What happens: - No indicator Should happen: - [read only] in KDevelop caption Fixed. Note that the KTextEditor bug is *still* not resolved. I.e. the read-only state of a file is not deduced from its access rights represented on disk. You still have to mark a file as "read only" yourself. -> KTextEditor issue, though. commit abfa9b80fb61e74cd604473b7ec5810feb7ed5ff Author: Artur Puzio <cytadela88@gmail.com> Date: Tue Jan 19 22:12:50 2016 +0100 MainWindow: Add indicator for read-only files Summary: This fixes the [[ https://bugs.kde.org/show_bug.cgi?id=134854 | Bug 134854 ]] If current file is read-only (checked with `ReadWritePart::isReadWrite()`) the window title changes - "(read only)" is added. To check if the read-only status changed `KTextEditor::Document::readWriteChanged` signal is used. Note: chmod-ing a file won't make in read only for `ReadWritePart::isReadWrite()`. Test Plan: Seams to work fine. BUG: 134854 Reviewers: kfunk Reviewed By: kfunk Subscribers: kdevelop-devel Differential Revision: https://phabricator.kde.org/D794 |