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 401
    • Issues 401
    • 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
  • !680

nautilus-toolbar-view-menu: Sort by creation time for icon view

  • Review changes

  • Download
  • Patches
  • Plain diff
Open Abhijeet Patil requested to merge abhijeet/nautilus:abhijeet/sort-view into master Jun 17, 2021
  • Overview 5
  • Commits 1
  • Pipelines 2
  • Changes 1

given sort options is not useful in the case of commonly used directories when downloading/resuming a torrent changes the modification date. Adding a "sort by creation time" option will be helpful for sorting directories with a lot of folders in it where you keep changing the contents of the folders.

added an option in toolbar-view-menu "First Created" using which user can sort by creation time (NAUTILUS_FILE_SORT_BY_BTIME).

for this, created GtkModelButton object with id:"sort_creation_date" in nautilus-toolbar-view-menu.ui and action is specified via “action-name” and “action-target” properties.with 'creation-date' as a “action-target" and NautilusFileSortType NAUTILUS_FILE_SORT_BY_BTIME we compared files using compare_by_time() method, and sorted by creation time.

Closes : #1859

Edited Jun 17, 2021 by Abhijeet Patil
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: abhijeet/sort-view