all repos — min @ a4fcf29c7c33cdfb16f0c5cde817f6d6861bdbd3

A small but practical concatenative programming language.

Replaced nimline with minline.
h3rald h3rald@h3rald.com
Mon, 31 Jul 2023 11:22:03 +0200
commit

a4fcf29c7c33cdfb16f0c5cde817f6d6861bdbd3

parent

3d4e44385ef0c7b5d7d90a3849df20ee0e96258a

M help.jsonhelp.json

@@ -1224,7 +1224,7 @@ "name": "map-reduce",

"signature": "quot1 quot2 quot3 ==> int" }, "mapkey": { - "description": "Maps the named key/key combination 'sym to the quotation quot, so that quot is executed when key 'sym is pressed. \r\n\r\n \r\n Notes\r\n\r\n * At present, only the key names and sequences defined in the [nimline](https://h3rald.com/nimline/nimline.html) library are supported.\r\n * The quotation will be executed by a copy of the min interpreter created when the mapping was defined. In other words, quotations executed by key bindings will not affect the current stack.\r\n \r\n \r\n Example\r\n \r\n The following program:\r\n \r\n (clear) 'ctrl+l mapkey \r\n \r\n causes the CTRL+L key to clear the screen.", + "description": "Maps the named key/key combination 'sym to the quotation quot, so that quot is executed when key 'sym is pressed. \r\n\r\n \r\n Notes\r\n\r\n * At present, only the key names and sequences defined in the [minline](https://h3rald.com/minline/minline.html) library are supported.\r\n * The quotation will be executed by a copy of the min interpreter created when the mapping was defined. In other words, quotations executed by key bindings will not affect the current stack.\r\n \r\n \r\n Example\r\n \r\n The following program:\r\n \r\n (clear) 'ctrl+l mapkey \r\n \r\n causes the CTRL+L key to clear the screen.", "kind": "symbol", "name": "mapkey", "signature": "quot 'sym ==> "

@@ -2200,7 +2200,7 @@ "name": "unless",

"signature": "quot1 quot2 ==> a*" }, "unmapkey": { - "description": "Unmaps a previously-mapped key or key-combination 'sym, restoring the default mapping if available.\r\n\r\n \r\n Notes\r\n\r\n * At present, only the key names and sequences defined in the [nimline](https://h3rald.com/nimline/nimline.html) library are supported.\r\n * At present, all the default mappings of min are those provided by the [nimline](https://h3rald.com/nimline/nimline.html) library.", + "description": "Unmaps a previously-mapped key or key-combination 'sym, restoring the default mapping if available.\r\n\r\n \r\n Notes\r\n\r\n * At present, only the key names and sequences defined in the [minline](https://h3rald.com/minline/minline.html) library are supported.\r\n * At present, all the default mappings of min are those provided by the [minline](https://h3rald.com/minline/minline.html) library.", "kind": "symbol", "name": "unmapkey", "signature": "'sym ==> "
M min.nimmin.nim

@@ -5,6 +5,7 @@ sequtils,

json, os, algorithm, + minline, logging, minpkg/packages/niftylogger, minpkg/core/baseutils,

@@ -23,7 +24,6 @@ minpkg/lib/min_num,

minpkg/lib/min_str, minpkg/lib/min_logic, minpkg/lib/min_time, - minpkg/packages/nimline/nimline, minpkg/lib/min_sys, minpkg/lib/min_io, minpkg/lib/min_dstore,
M minpkg/core/env.nimminpkg/core/env.nim

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

import os, - ../packages/nimline/nimline + minline var HOME*: string if defined(windows):
M minpkg/lib/min_io.nimminpkg/lib/min_io.nim

@@ -3,9 +3,9 @@ strutils,

logging, nre, critbits, + minline, terminal import - ../packages/nimline/nimline, ../core/parser, ../core/value, ../core/env,
M minpkg/lib/min_lang.nimminpkg/lib/min_lang.nim

@@ -6,11 +6,11 @@ json,

parseopt, algorithm, nre, + minline, os, logging, ../core/baseutils, - ../packages/niftylogger, - ../packages/nimline/nimline + ../packages/niftylogger import ../core/env, ../core/meta,
M site/contents/learn-shell.mdsite/contents/learn-shell.md

@@ -21,7 +21,7 @@ ...plus in can obviously leverage the entire min language for complex scripting.

## Autocompletion and shortcuts -The min shell features smart tab autocompletion and keyboard shortcut implemented using the [nimline](https://github.com/h3rald/nimline) library. +The min shell features smart tab autocompletion and keyboard shortcut implemented using the [minline](https://github.com/h3rald/minline) library. The following behaviors are implemented when pressing the `TAB` key within:
M site/contents/reference-io.mdsite/contents/reference-io.md

@@ -55,7 +55,7 @@ >

> > %note% > > Notes > > -> > * At present, only the key names and sequences defined in the [nimline](https://h3rald.com/nimline/nimline.html) library are supported. +> > * At present, only the key names and sequences defined in the [minline](https://h3rald.com/minline/minline.html) library are supported. > > * The quotation will be executed by a copy of the min interpreter created when the mapping was defined. In other words, quotations executed by key bindings will not affect the current stack. > > > %sidebar%

@@ -93,8 +93,8 @@ >

> > %note% > > Notes > > -> > * At present, only the key names and sequences defined in the [nimline](https://h3rald.com/nimline/nimline.html) library are supported. -> > * At present, all the default mappings of min are those provided by the [nimline](https://h3rald.com/nimline/nimline.html) library. +> > * At present, only the key names and sequences defined in the [minline](https://h3rald.com/minline/minline.html) library are supported. +> > * At present, all the default mappings of min are those provided by the [minline](https://h3rald.com/minline/minline.html) library. #} {#op||warn||{{any}}||{{any}}||