feat: add numbercursorfmt option (#2395)
* feat: add `numbercursorfmt` option * docs: add documentation * docs: update `CHANGELOG.md`
This commit is contained in:
1 parent
b2f23e6078
commit
59494d1ff8
7 files changed
+27
-8
No files matched your search
@@ -450,7 +450,11 @@ func (win *win) printDir(ui *ui, dir *dir, context *dirContext, dirStyle *dirSty
|
||||
}
|
||||
}
|
||||
|
||||
win.print(ui.screen, 0, i, tcell.StyleDefault, fmt.Sprintf(optionToFmtstr(gOpts.numberfmt), ln))
|
||||
fmtStr := optionToFmtstr(gOpts.numberfmt)
|
||||
if i == dir.pos && gOpts.numbercursorfmt != "" {
|
||||
fmtStr = optionToFmtstr(gOpts.numbercursorfmt)
|
||||
}
|
||||
win.print(ui.screen, 0, i, tcell.StyleDefault, fmt.Sprintf(fmtStr, ln))
|
||||
}
|
||||
|
||||
path := filepath.Join(dir.path, f.Name())
|
||||
|
||||
Reference in new issue
Block a user