Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • K KTextEditor
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Bugzilla
    • Bugzilla
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • FrameworksFrameworks
  • KTextEditor
  • Merge requests
  • !279

Differentiate docs with identical filenames

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Waqar Ahmed requested to merge work/381532 into master Feb 05, 2022
  • Overview 13
  • Commits 1
  • Pipelines 14
  • Changes 2

Currently if you have files with same name for example:

src/CMakeLists.txt
addons/CMakeLists.txt

opened in Kate, they show up as:

CMakeLists.txt | CMakeLists.txt (1)

This is very unhelpful. We can do slightly better by appending the dir name of the document for every such doc making the above:

CMakeLists.txt - src | CMakeLists.txt - addons

This isn't perfect either, but imo, it is definitely more helpful than placing a number beside the doc name, so maybe we can start here.

Further improvement could be to loop through all the files and find uncommon suffix and use that for the "- dir" part.

Screenshot:

image

BUG: 381532

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: work/381532