Commit graph

48 commits

Author SHA1 Message Date
vindarel
b23214917c init file: add --no-userinit
and add --noinform that was missing in Clingon options.

Move the useful load-without-shebang in utils.lisp, now available for
all systems.

"make" alone calls make build
2023-05-04 16:53:40 +02:00
vindarel
ef9ef8d72e CI: we want the latest cl-str 2023-03-11 15:25:12 +01:00
vindarel
2ca812a9cc fix repl.lisp for CI? 2022-12-09 15:43:14 +01:00
vindarel
c6a47f66a6 repl: add --noinform (prepare for scripting) 2022-12-09 14:18:05 +01:00
vindarel
82ca7b7ed8 Developer utilities: add Quicksearch 2022-01-07 17:41:20 +01:00
vindarel
3d1a4fc998 cleanup 2021-06-04 13:29:30 +02:00
vindarel
cb36169ef5 re-export repl-utilities in ciel/repl only ("summary" is too common) 2021-06-04 13:22:18 +02:00
vindarel
f66744d2d9 REPL: special commands start with % (%help)
instead of : which is for lisp symbols proper.
2021-02-19 10:24:50 +01:00
vindarel
4bdc69a179 REPL: very tolerant shell pass-through
for #12
2021-02-19 00:20:28 +01:00
vindarel
db259c7f56 REPL: run visual commands in a terminal window
[ci skip]
2021-02-07 20:09:51 +01:00
vindarel
71fba4d411 add :edit special command (magic-ed) 2020-12-15 13:24:34 +01:00
vindarel
5bd42c7d62 REPL: print multiple values, save *, **, *** and all 2020-11-24 12:18:04 +01:00
vindarel
642470e61b (minor) REPL: rename *ret* -> *result-indicator* 2020-11-24 11:21:34 +01:00
vindarel
65521ff36c (minor) REPL: rename add-res -> history-add 2020-11-24 11:18:05 +01:00
vindarel
baaa5bd389 REPL: quick -h/--help 2020-11-11 14:46:09 +01:00
vindarel
a2a6af879a Shell pass-through with Clesh
fixes #8
2020-11-11 12:49:13 +01:00
vindarel
691de0d882 lisp-critic: smaller code with backquote
for #7
2020-11-10 00:40:25 +01:00
vindarel
1d8ea0404e lisp-critic: criticize AND eval
for #7
2020-11-10 00:09:31 +01:00
vindarel
28ce34a9e4 Use the lisp-critic
fixes #7

fun stuff.

missing: criticize files.
2020-11-09 23:31:19 +01:00
vindarel
f88b4c3df4 REPL symbol documentation boundp check 2020-11-03 23:51:54 +01:00
vindarel
a800a99532 REPL: catch a C-c 2020-11-03 23:47:32 +01:00
vindarel
451854cb7e (minor) style + str:starts-with-p 2020-11-03 13:34:29 +01:00
vindarel
79a8953114 (minor) princ vs print 2020-11-03 13:34:02 +01:00
vindarel
6f42cd4835 REPL: print result as is, not æsthetically
~a "foo" prints foo
~p "foo" prints "foo"

same with :symbols etc
2020-11-02 12:24:38 +01:00
vindarel
fa79625d50 REPL: highlighting sb-ext -> uiop 2020-10-28 12:50:39 +01:00
vindarel
f75e29f4c2 REPL: *pygmentize-options* 2020-10-28 12:35:42 +01:00
vindarel
79e63d780c REPL: *syntax-highlighting* and *pygmentize* 2020-10-28 12:32:56 +01:00
vindarel
5ed72b3f72 REPL: syntax highlighting with pygments 2020-10-28 12:28:28 +01:00
vindarel
e472084ed6 REPL " ?" trick works with nested expressions 2020-10-28 12:02:27 +01:00
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