all repos — min @ fd4591c5b329f219b1db55c52821a14a71b92a7d

A small but practical concatenative programming language.

Improved auto-completion for files and folders.
h3rald h3rald@h3rald.com
Fri, 24 Nov 2023 14:44:10 +0100
commit

fd4591c5b329f219b1db55c52821a14a71b92a7d

parent

854ee0fc60bf897884453614040ac4ccdc082a0f

2 files changed, 6 insertions(+), 5 deletions(-)

jump to
M minpkg/core/shell.nimminpkg/core/shell.nim

@@ -94,12 +94,12 @@ if word.startsWith("\""):

var f = word[1..^1] if f == "": f = getCurrentDir().replace("\\", "/") - return toSeq(walkDir(f, true)).mapIt("\"$1" % it.path.replace("\\", "/")) + return toSeq(walkDir(f, true)).mapIt("\"$1" % it.path.replace("\\", "/")&"\"") elif f.dirExists: f = f.replace("\\", "/") if f[f.len-1] != '/': f = f & "/" - return toSeq(walkDir(f, true)).mapIt("\"$1$2" % [f, it.path.replace("\\", "/")]) + return toSeq(walkDir(f, true)).mapIt("\"$1$2\"" % [f, it.path.replace("\\", "/")]) else: var dir: string if f.contains("/") or dir.contains("\\"):

@@ -107,11 +107,11 @@ dir = f.parentDir

let file = f.extractFileName return toSeq(walkDir(dir, true)).filterIt( it.path.toLowerAscii.startsWith(file.toLowerAscii)).mapIt( - "\"$1/$2" % [dir, it.path.replace("\\", "/")]) + "\"$1/$2\"" % [dir, it.path.replace("\\", "/")]) else: dir = getCurrentDir() return toSeq(walkDir(dir, true)).filterIt( - it.path.toLowerAscii.startsWith(f.toLowerAscii)).mapIt("\"$1" % [ + it.path.toLowerAscii.startsWith(f.toLowerAscii)).mapIt("\"$1\"" % [ it.path.replace("\\", "/")]) return symbols
M next-release.mdnext-release.md

@@ -1,7 +1,6 @@

### BREAKING CHANGES * SSL is now enabled by default when installing via nimble and when compiling by default. Use `-d:nossl` to disable. -* The min shell no longer attempts to auto-complete executables (it never worked properly anyway). ### New Features

@@ -12,4 +11,6 @@ * Added syntax highlighting to code examples on min site.

### Fixes and Improvements +* Auto-completions for files and folders now automatically end with `"`. +* The min shell no longer attempts to auto-complete executables (it never worked properly anyway).