Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Eye of GNOME Eye of GNOME
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 97
    • Issues 97
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • 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
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • Eye of GNOMEEye of GNOME
  • Merge requests
  • !59

Add menu option to set image sort order.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Martin van Zijl requested to merge martinvanzijl/eog:issue-74-sort-order into master Jun 14, 2020
  • Overview 8
  • Commits 4
  • Pipelines 4
  • Changes 17

Fixes #74. This adds a menu to set the sort/navigation order of the images. Based on patch from Bugzilla issue #448979.

Currently there are six options:

  • A-Z
  • Z-A
  • Modified Time Ascending
  • Modified Time Descending
  • File Size Ascending
  • File Size Descending

This is also saved as a preference. I.e. if you set the sort order to "Z-A", the next time you start the program it will still sort by "Z-A". However, since this requires a change to the gsettings schema, you currently have to set the schema directory manually to test this. From the "build" directory:

GSETTINGS_SCHEMA_DIR=data ./src/eog

Screenshot below:

sort-order-option-screenshot-v2

Video below:

sort-order-option-video-v2

Still to do:

  • Store the selected sort order as a preference.
  • Add a command line option for initial sort order.
  • (Future) Add an option to match the Nautilus file browser sort setting for the directory (if possible).
  • (Future) Use radio-buttons for the menu instead of check-boxes.
  • (Future) Perhaps simplify options, e.g. to just "Alphabetically" and "By Date Modified", both ascending.
Edited Jun 26, 2020 by Martin van Zijl
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: issue-74-sort-order