Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[dir-] sort by filename, after sorting by modtime #2606

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion visidata/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class DirSheet(Sheet):
Column('filetype', width=0, cache='async', getter=lambda col,row: subprocess.Popen(['file', '--brief', row], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0].strip()),
]
nKeys = 2
_ordering = [('modtime', True)] # sort by reverse modtime initially
_ordering = [('modtime', True), ('filename', False)] # sort by reverse modtime initially

@staticmethod
def colorOwner(sheet, col, row, val):
Expand Down
Loading