all repos — min @ 8c6cae3e68aad18aeb01c50482c90f5799efd0d1

A small but practical concatenative programming language.

Sorted tab completions.
h3rald h3rald@h3rald.com
Sat, 07 Oct 2023 21:24:10 +0200
commit

8c6cae3e68aad18aeb01c50482c90f5799efd0d1

parent

86aa2512a94430227900b12b69157a63e2fecc74

2 files changed, 4 insertions(+), 1 deletions(-)

jump to
M min.nimmin.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.mdnext-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.