Sorted tab completions.
h3rald h3rald@h3rald.com
Sat, 07 Oct 2023 21:24:10 +0200
2 files changed,
4 insertions(+),
1 deletions(-)
M
min.nim
→
min.nim
@@ -319,7 +319,9 @@ echo "$# shell v$#" % [exeName, pkgVersion]
while true: let symbols = toSeq(i.scope.symbols.keys) EDITOR.completionCallback = proc(ed: LineEditor): seq[string] = - return ed.getCompletions(symbols) + var completions = ed.getCompletions(symbols) + completions.sort() + return completions # evaluate prompt i.push(i.newSym("prompt")) let vals = i.expect("str")
M
next-release.md
→
next-release.md
@@ -15,3 +15,4 @@ ### Fixes and Improvements
* Now requiring `checksums` unless OpenSSL is used. * Prepended `std/` to standard library modules. +* REPL tab-completions are now sorted alphabetically.