Commit graph

19 commits

Author SHA1 Message Date
vindarel
606018a3de REPL: always print the ARGLIST, fix formatting for long ones 2020-10-20 16:04:57 +02:00
vindarel
b0d82c31a0 fix disable reset
sorry
2020-10-20 15:48:22 +02:00
vindarel
ed1f99bc0a (minor) REPL version bump, beginning to diverge from sbcli
(although I port changes)
2020-10-19 14:44:32 +02:00
vindarel
2d1d45dee1 REPL: disable reset 2020-10-19 14:42:29 +02:00
vindarel
8f7af9eb6e REPL: allow to in-package another package, and change the prompt 2020-10-19 14:40:42 +02:00
vindarel
35901a2d1c REPL: add completion for local nicknames
We could not TAB-complete "csv" or "match". We could type them and
call their functions though.
2020-10-19 14:10:58 +02:00
vindarel
946c9bcc9f REPL: fix default package, so as to find package local nicknames
The REPL's package when reading the user input should be ciel-user.

We could not type (csv:read-csv …) at the (sbcli) REPL: "package CSV does
not exist", despite "csv" being a nickname.
(of course it worked in Slime)
2020-10-19 14:10:58 +02:00
vindarel
1c54bf1613 REPL: ? at the end of the line trick
we can start typing a function name, add a "?" and get the documentation.

(uiop:file-exists-p ?
=> doc
2020-10-19 14:10:58 +02:00
vindarel
1f11275b0d REPL: better completion according to the package
previously:

1- searching "(file-e" listed ALL existing symbols of ALL packages,
  and returned a lot of results.
2- while searching "(uiop:file-e" didn't return uiop's functions.

now:

1 returns one symbol,
2 completes uiop's external symbols, as expected.
 (also works with internal symbols)

Largely adapted from cl-repl. Commited to sbcli.
2020-10-19 14:10:58 +02:00
vindarel
a8d87a682a JSON with cl-json 2020-10-16 14:54:53 +02:00
vindarel
51be374af8 REPL :doc prevent bad usage warning 2020-10-15 16:09:27 +02:00
vindarel
07e9a88056 REPL: print arglist with :doc 2020-10-15 13:55:42 +02:00
vindarel
79b7f72fd1 fix sbcli REPL sometimes writing garbage
as in
ff2ee54dbd

thanks to https://github.com/hellerve/sbcli/pull/9
2020-10-14 22:51:44 +02:00
vindarel
8e13979e39 (minor) repl++ 2020-10-14 16:21:12 +02:00
vindarel
30895f4d74 REPL: add :doc to print the symbol documentation, be it variable, function or other 2020-10-13 23:03:30 +02:00
vindarel
8c160a56be REPL: print "error" in red 2020-10-13 19:31:11 +02:00
vindarel
f1ec529901 fix REPL completion 2020-10-13 19:30:49 +02:00
vindarel
9f09a539e7 REPL++
- green prompt
- print system info
- banner
- summary and readme

We should have completion of symbols with TAB but I don't.
2020-10-13 07:22:01 +02:00
vindarel
a6c2958454 Build a binary with a REPL from sbcli 2020-10-13 07:09:57 +02:00