Add sorting by custom column (#2019)
This commit is contained in:
1 parent
017951fd6b
commit
e47600e428
6 files changed
+35
-7
No files matched your search
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user