Add sorting by custom column (#2019)

This commit is contained in:
CatsDeservePets authored and GitHub committed 2025-06-26 11:12:58 +10:00
1 parent 017951fd6b
commit e47600e428
6 files changed
+35 -7

No files matched your search

+7 -2
View File
@@ -2288,9 +2288,14 @@ func (e *callExpr) eval(app *app, args []string) {
}
if len(strings.Trim(v, " ")) == 0 {
f.customInfo = ""
} else {
v = ""
}
if f.customInfo != v {
f.customInfo = v
// only sort when order changes
if getSortBy(dir) == customSort {
d.sort()
}
}
default:
cmd, ok := gOpts.cmds[e.name]