Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • Files Files
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 396
    • Issues 396
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 60
    • Merge requests 60
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • FilesFiles
  • Merge requests
  • !478

Nautilus remember view

  • Review changes

  • Download
  • Patches
  • Plain diff
Closed wfpoulet requested to merge wfpoulet/nautilus:my_work into master Aug 13, 2019
  • Overview 17
  • Commits 1
  • Pipelines 1
  • Changes 1

Currently the View toggle is global.

The problem is when a user wants to always view some directories by list (example: ~/Projects/src) and others by icons (example: ~/Pictures). When going from one directory to another, in such a context, the user must always click the toggle again to get the desired view back. Doing something again and again isn't productive.

To fix this, the chosen view is saved in a ".directory" file complying with the FreeDesktop specification. The new code is isolated as much as possible (at the end of the file) and is designed like an independent unit with an API. Only 2 functions make use of the API. This fix supports / as well as Recent, Starred, Trash, Etc. The compilation and execution generate no warnings.

Edited Aug 13, 2021 by António Fernandes
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: my_work