Use Tree View as the default view mode in the Filesystem Browser plugin
ClosedPublic

Authored by ngraham on Apr 15 2018, 12:47 PM.

Details

Summary

Previously, Kate's Filesystem Browser plugin was replying on a bug in KDirOperator that was just fixed: the fact that columns perviously did not auto-size correctly and did not stick to the right edge when the view was resized. This was fixed in D11993.

Now that this bug is fixed, the plugin needs to default to a more sensible view mode--one that does not have additional columns. This patch does that.

Test Plan

Create and log into a new user accountopen KateSettingsConfigure KatePluginsturn on "Filesystem Browser" pluginhit Applyclick "Filesystem Browser" on the sidebar

Before:

After:

Diff Detail

Repository
R40 Kate
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
ngraham created this revision.Apr 15 2018, 12:47 PM
Restricted Application added a project: Kate. · View Herald TranscriptApr 15 2018, 12:47 PM
ngraham requested review of this revision.Apr 15 2018, 12:47 PM
ngraham edited the test plan for this revision. (Show Details)Apr 15 2018, 12:51 PM
ngraham edited the summary of this revision. (Show Details)

I think this is nice, but is this patch a problem if you have new Kate with KTextEditor < 5.46?

No, There should be no issue with switching to tree view by default for Kate when using older Frameworks. In some sense it's an upgrade for those users too since the filesystem browser then won't have a horizontal scrollbar and will focus on its primary purpose: files.

Also, the other two panels available in the sidebar currently display their content in Tree View, so this would make Filesystem Browser consistent with them.

dhaumann accepted this revision.Apr 15 2018, 4:26 PM

Ok, then thanks & please go ahead in master branch.

This revision is now accepted and ready to land.Apr 15 2018, 4:26 PM

Thanks, will do!

This revision was automatically updated to reflect the committed changes.